Revision 1450 trunk/contrib/ecolib/Makefile

Makefile (revision 1450)
1
.PHONY: all
2
.SUFFIXES: .obj .cpp
3

  
4 1
include objects.lst
5 2

  
6
all: $(OBJECTS)
7
	copy ..\..\..\contrib\ecolib\ecolib.h $(DISKDIR)
3
OPT=$(OBJECTS: = ..\..\..\build\objects\contrib\optlp-contrib-ecolib-)
4
SAF=$(OBJECTS: = ..\..\..\build\objects\contrib\saflp-contrib-ecolib-)
8 5

  
6
all: $(OPT) $(SAF)
7

  
8
$(OPT):: $(@B:optlp-contrib-ecolib-=).cpp
9
	..\..\..\admb -c -f $?
10
	copy $(?:.cpp=.obj) $@
11

  
12
$(SAF):: $(@B:saflp-contrib-ecolib-=).cpp
13
	..\..\..\admb -c $?
14
	copy $(?:.cpp=.obj) $@
15

  
16
includes: $(HEADERS)
17
	copy $(HEADERS) $(CONTRIB_INCLUDE)
18

  
9 19
clean:
10

  
11
{..\..\..\contrib\ecolib}.cpp.obj:
12
	$(CXX) -c $(CXXFLAGS) -I"..\..\dist\include" $<
20
	del /Q $(OBJECTS)

Also available in: Unified diff