[PRELIMINARY ROUND 2]
[progcomp2012.git] / agents / ramen / src / Makefile
diff --git a/agents/ramen/src/Makefile b/agents/ramen/src/Makefile
new file mode 100644 (file)
index 0000000..06068b3
--- /dev/null
@@ -0,0 +1,25 @@
+
+OBJ = main.o ai.o db.o
+BIN = ../ramen
+
+CFLAGS = -Wall -Wextra -g -std=gnu99
+LINKFLAGS = -g -lm
+
+DEPFILES = $(OBJ:%=%.dep)
+
+.PHONY: all clean
+
+all: $(BIN)
+
+clean:
+       $(RM) $(BIN) $(OBJ) $(DEPFILES)
+
+$(BIN): $(OBJ)
+       $(CC) -o $@ $(OBJ) $(LINKFLAGS)
+
+%.o: %.c
+       $(CC) -o $@ -c $< $(CFLAGS) $(CPPFLAGS)
+       $(CPP) $(CPPFLAGS) $< -MM -o [email protected]
+
+-include $(DEPFILES)
+

UCC git Repository :: git.ucc.asn.au