1 #############################################################################
3 # This Makefile is used to compile the library source code.
5 #############################################################################
7 ADLIB_PATH
:= ..
/include
10 #COPTS = -O6 -fexternal-templates
12 #COPTS = -g -fexternal-templates
13 CINCLUDE
= -I
$(ADLIB_PATH
)
19 PROP_OPTS
= -strict
-report
-I..
/..
/include
23 #############################################################################
24 # A list of all ADLib areas
25 #############################################################################
26 AREAS
:= automata contain \
29 graph graphtype hash memory \
31 persist pretty prettypr \
33 rewrite strings symbolic \
34 trees tries backend-tools visualize
38 #look for include files in
40 # CFLAGS += $(patsubst %,-I%,$(MODULES))
41 #extra libraries if required
43 #each module will add to this
45 #include the description for
47 include $(patsubst %, %/Makefile.mk
,$(AREAS
))
48 #determine the object files
49 OBJS
:= $(patsubst %.
cc,%.
$(OBJ
),$(filter %.
cc,$(SRC
)))
52 #$(CC) -o $@ $(OBJ) $(LIBS)
53 #include the C include
59 $(CC
) /Fo
$@
-c
$(COPTS
) $(CINCLUDE
) $<
62 $(CC
) -c
$(COPTS
) $(CINCLUDE
) $<
65 $(CC
) -c
$(COPTS
) $(CINCLUDE
) $<
68 $(CC
) -c
$(COPTS
) $(CINCLUDE
) $<
79 link
/LIB
/OUT
:$(LIBRARY
) $(OBJS
)
83 # $(PROP) $(PROP_OPTS) $(CINCLUDE) $<
86 # $(PROP) $(PROP_OPTS) $(CINCLUDE) $<
90 # for dir in $(AREAS); do \
91 # if [ -d $$dir ]; then $(RM) -f $$dir/*.o; fi; \