Revision 1385 trunk/contrib/src/GNUmakefile

GNUmakefile (revision 1385)
1
all: $(addprefix $(PREFIX_OBJ), contrib.obj)
1
$(PREFIX_OBJ)contrib.obj: contrib.cpp
2
ifeq ($(SHELL),sh.exe)
3
	..\..\admb -c contrib.cpp
4
	copy contrib.obj $(PREFIX_OBJ)contrib.obj
5
else
6
	../../admb -c contrib.cpp
7
	cp contrib.obj $(PREFIX_OBJ)contrib.obj
8
endif
2 9

  
3 10
test:
11
ifeq ($(SHELL),sh.exe)
12
	..\..\admb.cmd simple.tpl
13
	simple.exe
14
else
4 15
	../../admb simple.tpl
5 16
	./simple
17
endif
6 18

  
7 19
clean:
20
ifeq ($(SHELL),sh.exe)
21
	del simple.obj
22
	del simple.o
23
	del simple.std
24
	del simple.htp
25
	del admodel.hes
26
	del variance
27
	del simple
28
	del simple.exe
29
	del admodel.cov
30
	del simple.bar
31
	del eigv.rpt
32
	del simple.eva
33
	del fmin.log
34
	del simple.log
35
	del simple.cpp
36
	del simple.par
37
	del simple.cor
38
	del admodel.dep
39
else
8 40
	@rm -f simple.obj
9 41
	@rm -f simple.o
10 42
	@rm -f simple.std
......
23 55
	@rm -f simple.par
24 56
	@rm -f simple.cor
25 57
	@rm -f admodel.dep
26

  
27
$(PREFIX_OBJ)%.obj: %.cpp
28
ifeq ($(CXX),cl)
29
	$(CXX) /c $(CXXFLAGS) /Fo$@ $<
30
else
31
	$(CXX) -c $(CXXFLAGS) -o $@ $<
32 58
endif

Also available in: Unified diff