3 # Define rules and targets for libmoof.
6 objects = $(patsubst %.c,$(builddir)/%.o,$(patsubst %.cc,$(builddir)/%.o,$(wildcard $d/*.c $d/*.cc)))
7 $(objects): TGT_CFLAGS := -I$b -I$b/.. -I$d -I$d/..
8 $(objects): config.h | $b
10 library = $b/libmoof.a
11 $(library): $(objects)
15 pchfile := $b/precompile.hh
16 exec += $(pchfile) $(pchfile).gch
17 $(pchfile).gch: TGT_CFLAGS := -I$b -I$b/.. -I$d -I$d/..
18 $(pchfile).gch: $(pchfile)
19 $(pchfile): config.mk | $b
20 $(objects): $(pchfile).gch
23 exec += $(objects) $(library)