- Makefile added, batch files removed
This commit is contained in:
24
Makefile
Normal file
24
Makefile
Normal file
@@ -0,0 +1,24 @@
|
||||
executable = mini
|
||||
source = *.cpp ./lua/*.c
|
||||
|
||||
windows:
|
||||
@echo off
|
||||
g++ $(source) -Wall -Os -ffunction-sections -fdata-sections -Wl,--gc-sections -lmingw32 -lSDL2main -lSDL2 -o "$(executable).exe"
|
||||
strip -s -R .comment -R .gnu.version --strip-unneeded "$(executable).exe"
|
||||
|
||||
windows_debug:
|
||||
@echo off
|
||||
g++ $(source) -D DEBUG -g -Wall -Os -lmingw32 -lSDL2main -lSDL2 -o "$(executable)_debug.exe"
|
||||
|
||||
macos:
|
||||
clang++ $(source) -Wall -Os -ffunction-sections -fdata-sections -lSDL2 -o "$(executable)"
|
||||
|
||||
macos_debug:
|
||||
clang++ $(source) -D DEBUG -g -Wall -Os -ffunction-sections -fdata-sections -lSDL2 -o "$(executable)_debug"
|
||||
|
||||
linux:
|
||||
g++ $(source) -Wall -Os -ffunction-sections -fdata-sections -Wl,--gc-sections -lSDL2 -o "$(executable)"
|
||||
strip -s -R .comment -R .gnu.version --strip-unneeded "$(executable)"
|
||||
|
||||
linux_debug:
|
||||
g++ $(source) -D DEBUG -g -Wall -Os -ffunction-sections -fdata-sections -Wl,--gc-sections -lSDL2 -o "$(executable)_debug"
|
||||
2
opti.bat
2
opti.bat
@@ -1,2 +0,0 @@
|
||||
g++ *.cpp ./lua/*.c -Os -ffunction-sections -fdata-sections -Wl,--gc-sections -lmingw32 -lSDL2main -lSDL2 -o mini.exe
|
||||
strip -s -R .comment -R .gnu.version --strip-unneeded mini.exe
|
||||
4
opti.sh
4
opti.sh
@@ -1,4 +0,0 @@
|
||||
#!/bin/bash
|
||||
g++ *.cpp ./lua/*.c -Os -ffunction-sections -fdata-sections -Wl,--gc-sections -lSDL2 -o mini
|
||||
strip -s -R .comment -R .gnu.version --strip-unneeded mini
|
||||
|
||||
@@ -1,3 +0,0 @@
|
||||
#!/bin/bash
|
||||
g++ *.cpp ./lua/*.c -Os -ffunction-sections -fdata-sections -lSDL2 -o mini
|
||||
|
||||
Reference in New Issue
Block a user