Resolving Conflicts ... Still there're errors that should be fixed
[satune.git] / src / Test / Makefile
1 BASE := ..
2
3 OBJECTS := $(patsubst %.c, ../bin/%, $(wildcard *.c))
4
5 include $(BASE)/common.mk
6
7 DEPS := $(join $(addsuffix ., $(dir $(OBJECTS))), $(addsuffix .d, $(notdir $(OBJECTS))))
8
9 CPPFLAGS += -I$(BASE) -I$(BASE)/AST -I$(BASE)/Collections
10
11 all: $(OBJECTS) ../bin/run.sh
12
13 -include $(DEPS)
14
15 ../bin/%: %.c
16         $(CC) -MMD -MF $(@D)/.$(@F).d -o ../bin/$@ $< $(CPPFLAGS) -L$(BASE)/bin/ -l_cons_comp
17
18 ../bin/run.sh: run.sh
19         cp run.sh ../bin/run.sh
20
21 clean::
22         rm -f $(OBJECTS) $(DEPS) ../bin/run.sh