diff options
author | kartofen <mladenovnasko0@gmail.com> | 2022-12-21 01:06:18 +0200 |
---|---|---|
committer | kartofen <mladenovnasko0@gmail.com> | 2022-12-21 01:06:18 +0200 |
commit | 85601f555a3a57db44631706a25e0f933afd8551 (patch) | |
tree | 576f7f7518ebd6f7d1b6f3534218c747d2a14a43 /build.sh | |
parent | 88dd7e5fb0798d441dab81e9173d0e2d63f0b75e (diff) |
works with different connections
Diffstat (limited to 'build.sh')
-rwxr-xr-x | build.sh | 9 |
1 files changed, 5 insertions, 4 deletions
@@ -6,6 +6,7 @@ FLAGS="-Wall -Wextra -g -pedantic" SRCD="src" ODIR="obj" BIN="bin" +FILES="files" VALGRND="" RUN=0 @@ -21,8 +22,7 @@ function __leak__ { function __clean__ { rm -rf $BIN rm -rf $ODIR - rm -rf files/tiles - rm -f files/file* + rm -rf $FILES kill $( ps -q $$ -o pgid= ) # exit } @@ -33,8 +33,9 @@ then __$1__ fi -mkdir -p $ODIR mkdir -p $BIN +mkdir -p $ODIR +mkdir -p $FILES gcc -c $SRCD/gen_tiles.c -o $ODIR/gen_tiles.o $FLAGS gcc -c $SRCD/ppm.c -o $ODIR/ppm.o $FLAGS @@ -43,7 +44,7 @@ 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 +gcc -o $BIN/gen_tiles $ODIR/gen_tiles.o $FLAGS if ! { [[ $RUN -eq 0 ]]; } 2> /dev/null then |