Revision 1408 trunk/contrib/ecolib/GNUmakefile

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

  
1 5
include objects.lst
2 6

  
3 7
all: $(addprefix $(PREFIX_OBJ), $(OBJECTS))
......
3 7

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

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

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

Also available in: Unified diff