Revision 1389 trunk/contrib/src/GNUmakefile

GNUmakefile (revision 1389)
1
$(PREFIX_OBJ)contrib.obj: contrib.cpp
1
all: $(PREFIX_OBJ)contrib.obj
2

  
3
$(PREFIX_OBJ)%.obj: %.cpp
2 4
ifeq ($(SHELL),sh.exe)
3
	..\..\admb -c contrib.cpp
4
	copy contrib.obj $(PREFIX_OBJ)contrib.obj
5
	..\..\admb -c $(OPTION) $<
6
	copy $(basename $<).obj $@
5 7
else
6
	../../admb -c contrib.cpp
7
	cp contrib.o $(PREFIX_OBJ)contrib.o
8
	../../admb -c $(OPTION) $<
9
	cp $(basename $<).obj $@
8 10
endif
9 11

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

  
19 15
clean:
20 16
ifeq ($(SHELL),sh.exe)
17
	del contrib.obj
18
	del contrib.o
21 19
	del simple.obj
22 20
	del simple.o
23 21
	del simple.std
......
37 35
	del simple.cor
38 36
	del admodel.dep
39 37
else
38
	@rm -f contrib.obj
39
	@rm -f contrib.o
40 40
	@rm -f simple.obj
41 41
	@rm -f simple.o
42 42
	@rm -f simple.std

Also available in: Unified diff