X-Git-Url: https://plomlompom.com/repos/berlin_corona.txt?a=blobdiff_plain;ds=sidebyside;f=build%2Fbuild_template;fp=build%2Fbuild_template;h=087edfdcc2329a1550b0cbdf5ed5fbd098562afc;hb=5fd4be90f125e318a2fcaa0b92329511cb178f5a;hp=0000000000000000000000000000000000000000;hpb=3025c786c59a304babaae2b1b7e3eae01e43fe5e;p=plomrogue diff --git a/build/build_template b/build/build_template new file mode 100644 index 0000000..087edfd --- /dev/null +++ b/build/build_template @@ -0,0 +1,9 @@ +redo-ifchange build/compiler_flags +. ./build/compiler_flags +mkdir -p build/$TARGET +mkdir -p build/common +for file in src/${TARGET}/*.c src/common/*.c; do + file=build/${file#src/} + redo-ifchange ${file%.*}.o +done +gcc $CFLAGS -o $3 -g build/${TARGET}/*.o build/common/*.o $LIBRARY_LINKS