| 1 |
# Author: Maurizio Loreti, aka MLO or (HAM) I3NOO |
| 2 |
# Work: University of Padova - Department of Physics |
| 3 |
# Via F. Marzolo, 8 - 35131 PADOVA - Italy |
| 4 |
# Phone: +39 (049) 827-7216 FAX: +39 (049) 827-7102 |
| 5 |
# EMail: [email protected] |
| 6 |
# WWW: http://www.pd.infn.it/~loreti/mlo.html |
| 7 |
# |
| 8 |
# $Id: Makefile,v 1.9 2005/01/21 08:16:48 loreti Exp $ |
| 9 |
# |
| 10 |
###################################################### |
| 11 |
|
| 12 |
.PHONY: clean |
| 13 |
|
| 14 |
CXX = g++ |
| 15 |
#CXXFLAGS = -std=c++98 -pedantic -W -Wall -g -DDEBUG |
| 16 |
CXXFLAGS = -std=c++98 -pedantic -W -Wall -O2 |
| 17 |
|
| 18 |
#CXX = KCC |
| 19 |
#CXXFLAGS = -O -DDEBUG |
| 20 |
#CXXFLAGS = -O |
| 21 |
|
| 22 |
LDFLAGS = |
| 23 |
|
| 24 |
ltx: ltx.o cleandir.o cleanup.o file.o |
| 25 |
$(CXX) $(LDFLAGS) -o $@ ltx.o cleandir.o cleanup.o file.o |
| 26 |
|
| 27 |
ltx.o: ltx.cxx ltx.hh cleandir.hh |
| 28 |
$(CXX) $(CXXFLAGS) -o $@ -c ltx.cxx |
| 29 |
|
| 30 |
cleandir.o: cleandir.cxx cleandir.hh cleanup.hh |
| 31 |
$(CXX) $(CXXFLAGS) -o $@ -c cleandir.cxx |
| 32 |
|
| 33 |
cleanup.o: cleanup.cxx cleanup.hh file.hh |
| 34 |
$(CXX) $(CXXFLAGS) -o $@ -c cleanup.cxx |
| 35 |
|
| 36 |
file.o: file.cxx file.hh |
| 37 |
$(CXX) $(CXXFLAGS) -o $@ -c file.cxx |
| 38 |
|
| 39 |
clean: |
| 40 |
-rm *~ *.o ltx |
| 41 |
-if [ -d ti_files ]; then rm ti_files/* && rmdir ti_files; fi |