Last change
on this file since 514:fd991a24c857 was
490:ceb56ff9d07f,
checked in by Mihaly Barasz, 20 years ago
|
The -W gcc option _does_ matter even if you use -Wall!
Minor changes.
|
File size:
526 bytes
|
Rev | Line | |
---|
[483] | 1 | INCLUDEDIRS ?= -I../include |
---|
[490] | 2 | CXXFLAGS += -W -Wall -O3 -ansi -pedantic $(INCLUDEDIRS) |
---|
[483] | 3 | #LEDAROOT ?= /ledasrc/LEDA-4.1 |
---|
| 4 | |
---|
[489] | 5 | BINARIES = dijkstra_heap_test unionfind_test error_test |
---|
[483] | 6 | |
---|
| 7 | ifdef GCCVER |
---|
| 8 | CXX := g++-$(GCCVER) |
---|
| 9 | else |
---|
| 10 | CXX := $(shell type -p g++-3.3 || type -p g++-3.2 || type -p g++-3.0 || type -p g++-3 || echo g++) |
---|
| 11 | endif |
---|
| 12 | |
---|
[384] | 13 | CC=$(CXX) |
---|
| 14 | |
---|
| 15 | all: $(BINARIES) |
---|
| 16 | |
---|
| 17 | .depend dep depend: |
---|
[483] | 18 | $(CXX) $(INCLUDEDIRS) -M $(BINARIES:=.cc) > .depend |
---|
[384] | 19 | |
---|
| 20 | makefile: .depend |
---|
| 21 | sinclude .depend |
---|
| 22 | |
---|
| 23 | clean: |
---|
| 24 | $(RM) *.o $(BINARIES) .depend |
---|
| 25 | |
---|
| 26 | .PHONY: all clean dep depend |
---|
Note: See
TracBrowser
for help on using the repository browser.