Revision 1408 trunk/contrib/src/GNUmakefile

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

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

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

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

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

Also available in: Unified diff