X-Git-Url: https://git.ucc.asn.au/?a=blobdiff_plain;f=agents%2Framen%2FMakefile;fp=agents%2Framen%2FMakefile;h=06068b3fec7fec39a2248b2ab6a31add424fe6c2;hb=3b7e8befa3c75a9ac0aac03dc527c6637dd5fcd7;hp=0000000000000000000000000000000000000000;hpb=9ff3dd5f6a7d0b7a97f9f498346464c146d730f1;p=progcomp2012.git diff --git a/agents/ramen/Makefile b/agents/ramen/Makefile new file mode 100644 index 0000000..06068b3 --- /dev/null +++ b/agents/ramen/Makefile @@ -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 $@.dep + +-include $(DEPFILES) +