src/work/jacint/makefile
author jacint
Tue, 27 Apr 2004 23:01:15 +0000
changeset 453 f6731902c702
parent 452 6636be9bc35e
child 454 0cd33e3e60cb
permissions -rw-r--r--
(none)
jacint@452
     1
CXX3 := $(shell type -p g++-3.3 || type -p g++-3.2 || type -p g++-3.0 || type -p g++-3 || echo g++)
jacint@452
     2
CXX2 = g++-2.95
jacint@452
     3
CXX=$(CXX3)
jacint@452
     4
CC=$(CXX)
jacint@453
     5
INCLUDEDIRS ?= -I../../include -I.. -I../{marci,jacint,alpar,klao,akos,athos,johanna} 
jacint@452
     6
CXXFLAGS = -W -Wall -ansi -pedantic -O3 $(INCLUDEDIRS)
jacint@452
     7
LEDAROOT ?= /ledasrc/LEDA-4.1
jacint@452
     8
jacint@453
     9
BINARIES = preflow
jacint@452
    10
jacint@452
    11
jacint@452
    12
all: $(BINARIES)
jacint@452
    13
jacint@452
    14
.depend dep depend:
jacint@452
    15
	-$(CXX) $(INCLUDEDIRS) -M $(BINARIES:=.cc) > .depend #2>/dev/null
jacint@452
    16
jacint@452
    17
makefile: .depend
jacint@452
    18
sinclude .depend
jacint@452
    19
jacint@452
    20
clean:
jacint@452
    21
	$(RM) *.o $(BINARIES) .depend
jacint@452
    22
jacint@452
    23
.PHONY: all clean dep depend