aboutsummaryrefslogtreecommitdiff
path: root/build.sh
diff options
context:
space:
mode:
authorkartofen <mladenovnasko0@gmail.com>2022-08-10 17:18:45 +0300
committerkartofen <mladenovnasko0@gmail.com>2022-08-10 17:18:45 +0300
commit851a3f34efd456295b21849199c3eaf4e70f9fb9 (patch)
tree7eff274bf1ea6b144254a0ebb063257ab2b33af0 /build.sh
parentbb820d973e9f53d33a32c46659e2a163e68be4ba (diff)
big refactor
Diffstat (limited to 'build.sh')
-rwxr-xr-xbuild.sh7
1 files changed, 4 insertions, 3 deletions
diff --git a/build.sh b/build.sh
index 13b73b1..20c5f0a 100755
--- a/build.sh
+++ b/build.sh
@@ -38,10 +38,11 @@ mkdir -p $BIN
gcc -c $SRCD/gen_tiles.c -o $ODIR/gen_tiles.o $FLAGS
gcc -c $SRCD/ppm.c -o $ODIR/ppm.o $FLAGS
-gcc -c $SRCD/tiles.c -o $ODIR/tiles.o $FLAGS
-gcc -c $SRCD/main.c -o $ODIR/main.o $FLAGS
-gcc -o $BIN/wfc $ODIR/main.o $ODIR/ppm.o $ODIR/tiles.o $FLAGS
+gcc -c $SRCD/tilemap.c -o $ODIR/tilemap.o $FLAGS
+gcc -c $SRCD/tiles.c -o $ODIR/tiles.o $FLAGS
+gcc -c $SRCD/main.c -o $ODIR/main.o $FLAGS
+gcc -o $BIN/wfc $ODIR/main.o $ODIR/ppm.o $ODIR/tiles.o $ODIR/tilemap.o $FLAGS
gcc -o $BIN/gen_tiles $ODIR/gen_tiles.o $ODIR/ppm.o $FLAGS
if ! { [[ $RUN -eq 0 ]]; } 2> /dev/null