initial
[prop.git] / lib-src / backend-tools / Makefile
blobbe9e01659020db793259751da87d7fe9d71cfbe2
1 #############################################################################
2 # The following parameters must be altered for each platform and compiler.
3 # The default is for g++ on Unix and MSDOG.
4 #############################################################################
5 ADLIB_PATH = ../../include
6 CC = g++
7 COPTS = -O6
8 CINCLUDE = -I$(ADLIB_PATH)
10 ad = $(ADLIB_PATH)/AD
11 D = $(ADLIB_PATH)/AD/backend-tools
13 OBJS = codeemit.o
15 all: $(OBJS)
17 codeemit.o: codeemit.cc $D/codeemit.h ${ad}/hash/lhash.h
19 %.o: %.cc
20 $(CC) -c $(COPTS) $(CINCLUDE) $(@:.o=.cc)
22 %.o: %.C
23 $(CC) -c $(COPTS) $(CINCLUDE) $(@:.o=.C)
25 %.o: %.cpp
26 $(CC) -c $(COPTS) $(CINCLUDE) $(@:.o=.cpp)
28 %.o: %.cxx
29 $(CC) -c $(COPTS) $(CINCLUDE) $(@:.o=.cxx)