| 1 |
# $Id: Makefile 235 2008-08-15 20:10:08Z daaugusto $ |
| 2 |
# Copyright (C) 2005-2008 Douglas A. Augusto ([email protected]) |
| 3 |
|
| 4 |
CPPFILES = Params.cc DiskUsage.cc Input.cc Optimizer.cc \ |
| 5 |
optimizers/GeneticAlgorithm.cc \ |
| 6 |
optimizers/BestFit.cc optimizers/Split.cc \ |
| 7 |
util/CmdLineParser.cc |
| 8 |
|
| 9 |
INCLUDES = -I/usr/local/include -I. |
| 10 |
CXX = g++ |
| 11 |
CXXFLAGS = -O3 -Wno-long-long $(INCLUDES) |
| 12 |
LIBPATH = |
| 13 |
LIBS = |
| 14 |
LDFLAGS = $(LIBPATH) $(LIBS) |
| 15 |
|
| 16 |
########################################################################### |
| 17 |
|
| 18 |
OBJS = $(CPPFILES:.cc=.o) |
| 19 |
|
| 20 |
.SUFFIXES: .o .cc |
| 21 |
|
| 22 |
.cc.o: |
| 23 |
@echo $<: |
| 24 |
$(CXX) $(CXXFLAGS) -c $*.cc -o $*.o |
| 25 |
|
| 26 |
default: gaffitter |
| 27 |
|
| 28 |
|
| 29 |
gaffitter: $(OBJS) gaffitter.cc Params.h |
| 30 |
$(CXX) $(CXXFLAGS) [email protected] $(OBJS) -o $@ $(LDFLAGS) |
| 31 |
########################################################################### |
| 32 |
|
| 33 |
objs: $(OBJS) |
| 34 |
|
| 35 |
########################################################################### |
| 36 |
|
| 37 |
install: |
| 38 |
install -D -m 0755 gaffitter $(DESTDIR)$(prefix)/bin/gaffitter |
| 39 |
|
| 40 |
uninstall: |
| 41 |
rm $(DESTDIR)$(prefix)/bin/gaffitter |
| 42 |
|
| 43 |
clean: |
| 44 |
rm -f *.o gaffitter optimizers/*.o util/*.o |
| 45 |
|
| 46 |
# rule for building dependency lists, and writing them to this Makefile |
| 47 |
depend: |
| 48 |
makedepend -Y -- $(CXXFLAGS) -- $(CPPFILES) |
| 49 |
|
| 50 |
# DO NOT DELETE |
| 51 |
|
| 52 |
Params.o: Params.h util/Exception.h util/CmdLineParser.h |
| 53 |
Params.o: util/CmdLineException.h |
| 54 |
DiskUsage.o: DiskUsage.h Params.h util/Exception.h |
| 55 |
Input.o: Input.h Params.h DiskUsage.h util/Exception.h |
| 56 |
Optimizer.o: Optimizer.h Input.h Params.h util/Exception.h |
| 57 |
optimizers/GeneticAlgorithm.o: optimizers/GeneticAlgorithm.h Input.h Params.h |
| 58 |
optimizers/GeneticAlgorithm.o: util/Random.h Optimizer.h Input.h |
| 59 |
optimizers/GeneticAlgorithm.o: util/Exception.h |
| 60 |
optimizers/BestFit.o: optimizers/BestFit.h Optimizer.h Input.h Params.h |
| 61 |
optimizers/BestFit.o: util/Exception.h |
| 62 |
optimizers/Split.o: optimizers/Split.h Optimizer.h Input.h Params.h |
| 63 |
optimizers/Split.o: util/Exception.h |
| 64 |
util/CmdLineParser.o: util/CmdLineParser.h util/CmdLineException.h |