COIN-OR::LEMON - Graph Library

source: lemon-0.x/src/work/makefile @ 417:4ce3d5f675ea

Last change on this file since 417:4ce3d5f675ea was 417:4ce3d5f675ea, checked in by marci, 17 years ago

Better control of gcc version

File size: 833 bytes
RevLine 
[149]1INCLUDEDIRS ?= -I../include -I. -I./{marci,jacint,alpar,klao,akos}
[409]2CXXFLAGS = -g -O3 -W -Wall $(INCLUDEDIRS) -ansi -pedantic
[3]3
[347]4BINARIES ?= bin_heap_demo
[3]5
[34]6# Hat, ez elismerem, hogy nagyon ronda, de mukodik minden altalam
7# ismert rendszeren :-)  (Misi)
[417]8ifdef GCCVER
9CXX := g++-$(GCCVER)
10else
11CXX := $(shell type -p g++-3.3 || type -p g++-3.2 || type -p g++-3.0 || type -p g++-3 || echo g++)
12endif
13
[34]14CC := $(CXX)
15
16
17all: $(BINARIES)
18
19################
20# Minden binarishoz egy sor, felsorolva, hogy mely object file-okbol
21# all elo.
22# Kiveve ha siman file.cc -> file  esetrol van szo, amikor is nem kell
23# irni semmit.
24
25#proba: proba.o seged.o
26
27################
28
[132]29
30.depend dep depend:
[301]31        -$(CXX) $(CXXFLAGS) -M $(BINARIES:=.cc) > .depend
[34]32
33makefile: .depend
34sinclude .depend
[3]35
36clean:
[34]37        $(RM) *.o $(BINARIES) .depend
[7]38
[34]39.PHONY: all clean dep depend
Note: See TracBrowser for help on using the repository browser.