Statistics
| Revision:

root / trunk / contrib / ad2csv / GNUmakefile @ 1438

History | View | Annotate | Download (504 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
	del ad2csv ad2csv.exe main.obj ad2csv.obj
23
	del main.o ad2csv.o
24
else
25
	rm -f ad2csv ad2csv.exe main.obj ad2csv.obj
26
	rm -f main.o ad2csv.o
27
endif