Revision 1409 trunk/contrib/src/GNUmakefile

GNUmakefile (revision 1409)
1
ifneq (,$(findstring sh.exe,$(SHELL)))
2
  SHELL=cmd
3
endif
4

  
5 1
all: $(PREFIX_OBJ)contrib.obj
6 2

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

  
16 12
test:
17
ifeq ($(SHELL),cmd)
13
ifeq ($(SHELL),sh.exe)
18 14
	..\..\admb $(OPTION) simple.tpl
19 15
	simple
20 16
else
......
23 19
endif
24 20

  
25 21
clean:
26
ifeq ($(SHELL),cmd)
22
ifeq ($(SHELL),sh.exe)
27 23
	del contrib.obj
28 24
	del contrib.o
29 25
	del simple.obj

Also available in: Unified diff