Statistics
| Revision:

root / trunk / contrib / ad2csv / GNUmakefile @ 2008

History | View | Annotate | Download (653 Bytes)

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

    
10
ifeq ($(SHELL),cmd)
11
$(CONTRIB_BIN)\ad2csv.exe: ad2csv.cpp main.cpp
12
	..\..\admb $(OPTION) $^
13
	copy ad2csv.exe $@
14
else
15
$(CONTRIB_BIN)/ad2csv: ad2csv.cpp main.cpp
16
	../../admb$(EXT) $(OPTION) $^
17
	cp ad2csv $@
18
endif
19

    
20
clean:
21
ifeq ($(SHELL),cmd)
22
	if exist ad2csv del /Q ad2csv
23
	if exist ad2csv.exe del /Q ad2csv.exe
24
	if exist main.o del /Q main.o
25
	if exist main.obj del /Q objmain.obj
26
	if exist ad2csv.o del /Q ad2csv.o
27
	if exist ad2csv.obj del /Q ad2csv.obj
28
else
29
	rm -f ad2csv ad2csv.exe main.obj ad2csv.obj
30
	rm -f main.o ad2csv.o
31
endif