Revision 1438 trunk/contrib/ad2csv/GNUmakefile

GNUmakefile (revision 1438)
1
.ONESHELL:
2
ifeq (sh.exe,$(findstring sh.exe,$(SHELL)))
3
SHELL = cmd
4
endif
1 5
ifeq ($(OS),Windows_NT)
2 6
EXT=.sh
3 7
endif
8
OPTION=-f
4 9

  
5
ifeq ($(SHELL),sh.exe)
6
..\..\build\dist\contrib\bin\ad2csv.exe: ad2csv.cpp main.cpp
10
ifeq ($(SHELL),cmd)
11
$(CONTRIB_BIN)\ad2csv.exe: ad2csv.cpp main.cpp
7 12
	..\..\admb $(OPTION) $^
8 13
	copy ad2csv.exe $@
9 14
else
10
../../build/dist/contrib/bin/ad2csv: ad2csv.cpp main.cpp
15
$(CONTRIB_BIN)/ad2csv: ad2csv.cpp main.cpp
11 16
	../../admb$(EXT) $(OPTION) $^
12 17
	cp ad2csv $@
13 18
endif
14 19

  
15 20
clean:
16
ifeq ($(SHELL),sh.exe)
21
ifeq ($(SHELL),cmd)
17 22
	del ad2csv ad2csv.exe main.obj ad2csv.obj
18 23
	del main.o ad2csv.o
19 24
else

Also available in: Unified diff