need the configure script
[chaz/yoink] / src / moof / rules.mk
1
2 #########################
3 sp := $(sp).x
4 dirstack_$(sp) := $(d)
5 d := $(dir)
6 #########################
7
8 #
9 # Define rules and targets for libmoof.
10 #
11
12 OBJECTS_$(d) := $(patsubst %.c,%.o,$(wildcard $(d)/*.c)) \
13 $(patsubst %.cc,%.o,$(wildcard $(d)/*.cc))
14 D_FILES_$(d) := $(OBJECTS_$(d):%=%.d)
15
16 LIBRARY_$(d) := $(d)/libmoof.a
17
18 CLEAN := $(CLEAN) $(OBJECTS_$(d)) $(D_FILES_$(d)) $(LIBRARY_$(d))
19
20 $(OBJECTS_$(d)): CF_TGT := -I$(d) -I$(d)/..
21 $(OBJECTS_$(d)): $(d)/rules.mk
22
23 $(LIBRARY_$(d)): $(OBJECTS_$(d))
24 $(DO_AR)
25
26
27 ########################
28 -include $(D_FILES_$(d))
29 d := $(dirstack_$(sp))
30 sp := $(basename $(sp))
31 ########################
32
This page took 0.029228 seconds and 4 git commands to generate.