From 5248ad897d0155c35c134062b5ff9cfccca62592 Mon Sep 17 00:00:00 2001 From: Brian Demsky Date: Thu, 22 Jun 2017 13:03:47 -0700 Subject: [PATCH] edits --- src/Test/Makefile | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-) 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 -- 2.34.1