diff options
| author | Aldrik Ramaekers <aldrikboy@gmail.com> | 2024-11-23 21:52:24 +0100 |
|---|---|---|
| committer | Aldrik Ramaekers <aldrikboy@gmail.com> | 2024-11-23 21:52:24 +0100 |
| commit | 6f7374c2fa58c8692b51018864b802e6b876d305 (patch) | |
| tree | a7e8ead757e9f4de1920395336dcac1c8a989576 /Makefile | |
A new start
Diffstat (limited to 'Makefile')
| -rw-r--r-- | Makefile | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/Makefile b/Makefile new file mode 100644 index 0000000..0e82448 --- /dev/null +++ b/Makefile @@ -0,0 +1,19 @@ +
+main:
+ mkdir -p "build/"
+ cp -a "data/." "build/data"
+ gcc -m64 -Wall -g -DMODE_DEBUG src/main.c -o build/truckerx.exe -Llibs/ -lprojectbase-debug -lSDL2 -lSDL2_mixer
+ ./build/truckerx.exe
+
+debug:
+ mkdir -p "build/"
+ cp -a "data/." "build/data"
+ gcc -m64 -Wall -g -DMODE_DEBUG src/main.c -o build/truckerx.exe -Llibs/ -lprojectbase-debug -lSDL2 -lSDL2_mixer
+ gdb -q -ex='set confirm on' -ex=run -ex=quit --args ./build/truckerx.exe
+
+linux:
+ mkdir -p "build/"
+ cp -a "data/." "build/data"
+ gcc -m64 -Wall -g -DMODE_DEBUG src/main.c -o build/truckerx -lprojectbase-debug -lX11 -lm -ldl -lSDL2 -lSDL2_mixer
+ sudo chmod +x ./build/truckerx
+ ./build/truckerx
\ No newline at end of file |
