From: Brian Demsky Date: Thu, 22 Jun 2017 20:03:47 +0000 (-0700) Subject: edits X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=5248ad897d0155c35c134062b5ff9cfccca62592;p=satune.git edits --- diff --git a/src/Test/Makefile b/src/Test/Makefile index ca9a632..b3b7cb3 100644 --- a/src/Test/Makefile +++ b/src/Test/Makefile @@ -1,6 +1,6 @@ BASE := .. -OBJECTS := $(patsubst %.c, %, $(wildcard *.c)) +OBJECTS := $(patsubst %.c, ../bin/%, $(wildcard *.c)) include $(BASE)/common.mk @@ -8,12 +8,15 @@ DEPS := $(join $(addsuffix ., $(dir $(OBJECTS))), $(addsuffix .d, $(notdir $(OBJ CPPFLAGS += -I$(BASE) -I$(BASE)/AST -I$(BASE)/Collections -all: $(OBJECTS) +all: $(OBJECTS) ../bin/run.sh -include $(DEPS) -%: %.c - $(CC) -MMD -MF $(@D)/.$(@F).d -o $@ $< $(CPPFLAGS) -L$(BASE)/bin/ -l_cons_comp +../bin/%: %.c + $(CC) -MMD -MF $(@D)/.$(@F).d -o ../bin/$@ $< $(CPPFLAGS) -L$(BASE)/bin/ -l_cons_comp + +../bin/run.sh: run.sh + cp run.sh ../bin/run.sh clean:: - rm -f $(OBJECTS) $(DEPS) + rm -f $(OBJECTS) $(DEPS) ../bin/run.sh