src/work/marci/lp/makefile
author alpar
Thu, 07 Oct 2004 07:39:42 +0000
changeset 939 1559584ca634
child 1014 aae850a2394d
permissions -rw-r--r--
- Change version 0.2 -> 0.3
- Doxyfile change for right #include< >'s (in Doxygen 1.9 only)
     1 #INCLUDEDIRS ?= -I.. -I. -I./{marci,jacint,alpar,klao,akos}
     2 GLPKROOT = /usr/local/glpk-4.4
     3 INCLUDEDIRS ?= -I../../{marci,alpar,klao,akos,athos} -I. -I../../.. -I../.. -I.. -I$(GLPKROOT)/include
     4 #INCLUDEDIRS ?= -I../.. -I../.. -I../../{marci,jacint,alpar,klao,akos} -I/usr/local/glpk-4.4/include
     5 CXXFLAGS = -g -O2 -W -Wall $(INCLUDEDIRS) -ansi -pedantic
     6 LDFLAGS  = -L$(GLPKROOT)/lib -lglpk
     7 
     8 BINARIES = max_flow_by_lp sample sample2 sample11 sample15
     9 
    10 #include ../makefile
    11 
    12 # Hat, ez elismerem, hogy nagyon ronda, de mukodik minden altalam
    13 # ismert rendszeren :-)  (Misi)
    14 ifdef GCCVER
    15 CXX := g++-$(GCCVER)
    16 else
    17 CXX := $(shell type -p g++-3.3 || type -p g++-3.2 || type -p g++-3.0 || type -p g++-3 || echo g++)
    18 endif
    19 
    20 ifdef DEBUG
    21 CXXFLAGS += -DDEBUG
    22 endif
    23 
    24 CC := $(CXX)
    25 
    26 
    27 all: $(BINARIES)
    28 
    29 ################
    30 # Minden binarishoz egy sor, felsorolva, hogy mely object file-okbol
    31 # all elo.
    32 # Kiveve ha siman file.cc -> file  esetrol van szo, amikor is nem kell
    33 # irni semmit.
    34 
    35 #proba: proba.o seged.o
    36 
    37 ################
    38 
    39 
    40 # .depend dep depend:
    41 # 	-$(CXX) $(CXXFLAGS) -M $(BINARIES:=.cc) > .depend
    42 
    43 #makefile: .depend
    44 #sinclude .depend
    45 #moert nem megy az eredeti /usr/bin/ld-vel?
    46 
    47 # %: %.o
    48 # 	$(CXX) -o $@ $< $(LDFLAGS)
    49 
    50 # %.o: %.cc
    51 # 	$(CXX) $(CXXFLAGS) -c $<
    52 
    53 %: %.cc
    54 	$(CXX) $(CXXFLAGS) -o $@ $< $(LDFLAGS)
    55 
    56 sample11prof: sample11prof.o
    57 	 $(CXX) -pg -o sample11prof sample11prof.o -L$(GLPKROOT)/lib -lglpk
    58 sample11prof.o: sample11.cc
    59 	$(CXX) -pg $(CXXFLAGS) -c -o sample11prof.o sample11.cc
    60 
    61 # sample.o: sample.cc
    62 # 	$(CXX) $(CXXFLAGS) -c -o sample.o sample.cc
    63 
    64 # sample2: sample2.o
    65 # 	$(CXX) -o sample2 sample2.o -L/usr/local/glpk-4.4/lib -lglpk
    66 # sample2.o: sample2.cc
    67 # 	$(CXX) $(CXXFLAGS) -c -o sample2.o sample2.cc
    68 
    69 
    70 clean:
    71 	$(RM) *.o $(BINARIES) .depend
    72 
    73 .PHONY: all clean dep depend