Revision 468

trunk/contrib/ad2csv/Makefile (revision 468)
1
ad2csv: ad2csv.cpp
2
	$(CXX) $(CXXFLAGS) -o${DISKDIR}/../bin/$@ $^
1
.PHONY: ad2csv
2

  
3
ad2csv:
4
	echo $(PATH)
5
	adcomp ad2csv
6
	adlink ad2csv
trunk/contrib/GNUmakefile (revision 468)
6 6
CXXFLAGS:=-c $(CXXFLAGS) -Wall -DUSE_LAPLACE -D__SPDLL__ -D__GNUDOS__ -Dlinux -I../${DISK}/include
7 7
endif
8 8

  
9
all: disk ad2csv  statslib ecolib qfclib libcontribo.a libcontribs.a
9
all: disk statslib ecolib qfclib libcontribo.a libcontribs.a ad2csv
10 10

  
11 11
disk:
12 12
	mkdir -p ${DISK}/contrib
......
15 15
	cp contrib.h ${DISK}/contrib
16 16

  
17 17
ad2csv:
18
	$(MAKE) --directory=$@ CXX=$(CXX) CXXFLAGS="-DOPT_LIB $(CXXFLAGS)" LIBPATH=../${LIBPATH}/contrib-olp DISKDIR=../${DISK}/contrib
18
	ADMB_HOME=../${DISK} PATH=../${DISK}/bin:$(PATH) $(MAKE) --directory=$@
19 19

  
20 20
statslib:
21 21
	$(MAKE) --directory=$@ CXX=$(CXX) CXXFLAGS="-DOPT_LIB $(CXXFLAGS)" LIBPATH=../${LIBPATH}/contrib-olp DISKDIR=../${DISK}/contrib

Also available in: Unified diff