massive code move
[mussa.git] / Makefile
1 BASEDIR := ./
2
3 CXXFLAGS :=  
4 LDFLAGS := -lfltk
5
6 # each module will add to this, .os are derived from it
7 SRC := 
8
9 include module.mk
10 include gui/module.mk
11
12
13 # process what the module.mks defined
14 OBJ := $(patsubst %.cxx,%.o, $(filter %.cxx,$(SRC)))
15 DEPS := $(OBJ:.o=.d)
16
17 mussa: $(OBJ)
18         g++ -o $@ $(CXXFLAGS) $(LDFLAGS) $^
19
20 %.d: %.cxx
21         makedepend -o.d $(dirname $^) $(CFLAGS) $(CXXFILAGS) $^ -f- > $@
22
23 %.o: %.cxx
24         g++ -c -o $@ $(CXXFLAGS) $^
25
26 include $(DEPS)
27
28 clean:
29         -rm $(OBJ) $(DEPS)
30
31