home · contact · privacy
Replace make build system with redo, serve erlehmann's redo as fallback.
[plomrogue] / build / build_template
diff --git a/build/build_template b/build/build_template
new file mode 100644 (file)
index 0000000..087edfd
--- /dev/null
@@ -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