Revision 1389 trunk/contrib/statslib/GNUmakefile

GNUmakefile (revision 1389)
2 2

  
3 3
all: $(addprefix $(PREFIX_OBJ), $(OBJECTS))
4 4

  
5
clean:
6

  
7 5
$(PREFIX_OBJ)%.obj: %.cpp
8
ifeq ($(CXX),cl)
9
	$(CXX) /c $(CXXFLAGS) /Fo$@ $<
6
ifeq ($(SHELL),sh.exe)
7
	..\..\admb -c $(OPTION) $<
8
	copy $(basename $<).obj $@
10 9
else
11
	$(CXX) -c $(CXXFLAGS) -o$@ $<
10
	../../admb -c $(OPTION) $<
11
	cp $(basename $<).obj $@
12 12
endif
13

  
14
clean:
15
ifeq ($(SHELL),sh.exe)
16
	-del *.obj
17
	-del *.o
18
else
19
	@rm -vf *.obj
20
	@rm -vf *.o
21
endif

Also available in: Unified diff