From 6f7374c2fa58c8692b51018864b802e6b876d305 Mon Sep 17 00:00:00 2001 From: Aldrik Ramaekers Date: Sat, 23 Nov 2024 21:52:24 +0100 Subject: A new start --- Makefile | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 Makefile (limited to 'Makefile') 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 -- cgit v1.2.3-70-g09d2