dummy for MSVC
[prop.git] / lib-src / rewrite / Makefile
blob3e97bd005e69fa0d47ec24c3fe04917a0f06dea2
2 # A sample Makefile
5 ADLIB_PATH = ../../include
6 CC = gcc
7 CINCLUDE = -I$(ADLIB_PATH)
8 COPTS = -g -O6
9 #COPTS = -g -O6 -pg
10 PROP = ../../bin/prop
11 PROP_OPTS = -s
13 D = $(ADLIB_PATH)/AD/rewrite
14 ad = $(ADLIB_PATH)/AD
16 OBJS = twig.$(OBJ) b_item.$(OBJ) b_items.$(OBJ) b_rules.$(OBJ) burs_gen.$(OBJ) \
17 twig_gen.$(OBJ) burs.$(OBJ) cache.$(OBJ)
18 SRC = b_rules.cc
20 all: $(SRC) $(OBJS)
22 src: $(SRC)
24 b_rules.cc: b_rules.pcc $(ad)/automata/treegram.ph
26 twig.$(OBJ): twig.cc $D/twig.h $(ad)/automata/topdown.h \
27 $(ad)/automata/ac.h $(ad)/automata/sparsdfa.h \
28 $(ad)/automata/compdfa.h $(ad)/automata/dfatable.h \
29 $(ad)/memory/mem.h $(ad)/memory/boundtag.h \
30 $(ad)/contain/bitset.h $(ad)/generic/generic.h
31 twig_gen.$(OBJ): twig_gen.cc $D/twig_gen.h $(ad)/automata/topdown.h \
32 $(ad)/automata/ac.h $(ad)/automata/sparsdfa.h \
33 $(ad)/automata/compdfa.h $(ad)/automata/dfatable.h \
34 $(ad)/memory/mem.h $(ad)/memory/boundtag.h \
35 $(ad)/contain/bitset.h $(ad)/generic/generic.h
36 b_item.$(OBJ): b_item.cc $D/b_item.h $(ad)/automata/treetab.h \
37 $(ad)/automata/treegram.h $(ad)/memory/mem.h \
38 $(ad)/generic/generic.h
39 b_items.$(OBJ): b_items.cc $D/b_items.h $D/b_item.h $(ad)/automata/treetab.h \
40 $(ad)/automata/treegram.h $(ad)/memory/mem.h \
41 $(ad)/generic/generic.h
42 b_rules.$(OBJ): b_rules.cc $D/b_rules.h $D/b_items.h $D/b_item.h \
43 $(ad)/automata/treetab.h \
44 $(ad)/automata/treegram.h $(ad)/memory/mem.h \
45 $(ad)/generic/generic.h
46 burs.$(OBJ): burs.cc $D/burs.h \
47 $(ad)/automata/treetab.h $(ad)/automata/treeauto.h \
48 $(ad)/automata/treegram.h $(ad)/memory/mem.h
49 burs_gen.$(OBJ): burs_gen.cc $D/burs_gen.h \
50 $D/b_items.h $D/b_item.h $D/b_rules.h \
51 $(ad)/automata/treetab.h $(ad)/automata/treeauto.h \
52 $(ad)/automata/treegram.h $(ad)/memory/mem.h \
53 $(ad)/generic/generic.h $(ad)/hash/dchash.h \
54 $(ad)/automata/dfatable.h $(ad)/automata/compdfa.h \
55 $(ad)/automata/sparsdfa.h
56 burs_gn2.$(OBJ): burs_gn2.cc $D/burs_gn2.h $D/burs_gen.h \
57 $D/b_items.h $D/b_item.h $D/b_rules.h \
58 $(ad)/automata/treetab.h $(ad)/automata/treeauto.h \
59 $(ad)/automata/treegram.h $(ad)/memory/mem.h \
60 $(ad)/generic/generic.h $(ad)/hash/dchash.h \
61 $(ad)/automata/dfatable.h $(ad)/automata/compdfa.h \
62 $(ad)/automata/sparsdfa.h
65 %.$(OBJ): %.cc
66 $(CC) -c $(COPTS) $(CINCLUDE) $(@:.$(OBJ)=.cc)
68 %.$(OBJ): %.cpp
69 $(CC) -c $(COPTS) $(CINCLUDE) $(@:.$(OBJ)=.cpp)
71 %.$(OBJ): %.c++
72 $(CC) -c $(COPTS) $(CINCLUDE) $(@:.$(OBJ)=.c++)
74 %.$(OBJ): %.c
75 $(CC) -c $(COPTS) $(CINCLUDE) $(@:.$(OBJ)=.c)
77 #%.cc: %.pcc
78 # $(PROP) $(PROP_OPTS) $(CINCLUDE) $(@:.cc=.pcc)
80 #%.h: %.ph
81 # $(PROP) $(PROP_OPTS) $(CINCLUDE) $(@:.h=.ph)