Revision 1409 trunk/contrib/ecolib/GNUmakefile

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

  
5 1
include objects.lst
6 2

  
7 3
all: $(addprefix $(PREFIX_OBJ), $(OBJECTS))
8 4

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

  
18 14
test:
19
ifneq ($(SHELL),cmd)
15
ifneq ($(SHELL),sh.exe)
20 16
	$(MAKE) --directory=tests
21 17
endif
22 18

  
23 19
clean:
24
ifneq ($(SHELL),cmd)
20
ifneq ($(SHELL),sh.exe)
25 21
	@rm -vf *.obj
26 22
	@rm -vf *.o
27 23
	@rm -vf tests/tests.log

Also available in: Unified diff