Revision 1079 trunk/src/nh99/GNUmakefile

GNUmakefile (revision 1079)
1
include objects.lst
2

  
3
ifeq ("$(CXX)","CC")
4
OBJECTS = $(filter-out dfqromb.obj, $(OBJ6))
5
else
6
OBJECTS = $(OBJ6)
7
endif
8

  
9
all: $(sort $(addprefix $(PREFIX_OBJ), $(OBJECTS)))
10

  
11 1
ifneq ($(SHELL),sh.exe)
12 2
bins: $(DISKDIR)/bin/tpl2cpp
13 3

  
......
30 20
$(DISKDIR)\bin\tpl2cpp.exe: tpl2cpp-winflex.c
31 21
	$(CC) $(CFLAGS) -Wno-format -o $@ $<
32 22
endif
33

  
34
$(PREFIX_OBJ)banner.obj: banner.cpp
35
	$(CXX) -c $(CXXFLAGS) -DADMB_VERSION=$(shell cat ../../VERSION) -DADMB_REVISION=$(shell test -e ../../REVISION && cat ../../REVISION) -o $@ $^
36

  
37
$(PREFIX_OBJ)model7.obj: model7.cpp
38
ifdef ADMB_CONFIGURE
39
	$(CXX) -c -DADMB_CONFIGURE="${ADMB_CONFIGURE}" $(CXXFLAGS) -o $@ $^
40
else
41
	$(CXX) -c $(CXXFLAGS) -o $@ $^
42
endif
43

  
44
$(PREFIX_OBJ)%.obj: %.cpp
45
	$(CXX) -c $(CXXFLAGS) -o $@ $<

Also available in: Unified diff