source: trunk/MagicSoft/Simulation/Detector/Starfield/Makefile@ 8266

Last change on this file since 8266 was 5165, checked in by moralejo, 20 years ago
Added ROOTLIBS = root-config --libs to the compilation flags
File size: 2.1 KB
Line 
1##################################################################
2##
3## Starfield Generator Makefile
4##
5## $Id: Makefile,v 1.5 2004-10-04 11:25:01 moralejo Exp $
6##
7##################################################################
8
9# @T \newpage
10
11# Linux
12
13INCLUDE = ../include-GENERAL
14INCLUDE_COR = ../include-CORSIKA
15
16CXX = g++
17
18
19INCLUDES = -I${INCLUDE} \
20 -I${INCLUDE_COR} \
21 -I${ROOTSYS}/include
22
23WARNINGS = -Wall
24
25CXXFLAGS = ${WARNINGS} ${INCLUDES}
26
27ROOTLIBS = `root-config --libs`
28LIBS = -L${RANLIBDIR} -L/usr/local/lib -L/usr/lib -lm ${ROOTLIBS}
29
30
31#------------------------------------------------------------------------------
32
33.SILENT:
34
35.SUFFIXES: .cxx .o
36
37SRCS = starfield.cxx\
38 star.cxx\
39 photon.cxx\
40 convertcorsika.cxx\
41 rand_un_gen.cxx\
42 parameters.cxx\
43 ${INCLUDE_COR}/COREventHeader.cxx\
44 ${INCLUDE_COR}/CORParticle.cxx\
45 ${INCLUDE_COR}/CORStatfile.cxx
46
47HEADERS = starfield.h\
48 star.hxx\
49 photon.hxx\
50 convertcorsika.h\
51 parameters.h\
52 COREventHeader.hxx\
53 CORParticle.hxx\
54 CORStatfile.hxx\
55 DllImport.h\
56 RConfig.h\
57 Rtypes.h\
58 ranlib.h
59
60OBJS = starfield.o\
61 star.o\
62 photon.o\
63 convertcorsika.o\
64 rand_un_gen.o\
65 parameters.o\
66 ${INCLUDE_COR}/COREventHeader.o\
67 ${INCLUDE_COR}/CORParticle.o\
68 ${INCLUDE_COR}/CORStatfile.o
69
70###########################################################
71
72all: starfield
73
74#If you type 'make depend' this will update the dependencies listed below
75
76depend:
77 @makedepend $(SRCS) -fMakefile 2> /dev/null
78
79starfield: $(OBJS)
80 @echo "Linking..." $(OBJS)
81 $(CXX) $(CXXFLAGS) $(OBJS) $(LIBS) -o $@
82 @echo "done."
83
84.cxx.o:
85 @echo "Compiling " $<
86 $(CXX) $(CXXFLAGS) -c $< -o $@
87
88lclean:
89 @echo "Cleaning..."
90 @rm -f *.o core
91
92clean:
93 @echo "Cleaning..."
94 @rm -f $(OBJS) core
95
96mrproper: clean
97 @echo "Mr.Proper in action . . ."
98 @rm -f $(PROGRAM)
99
100ctags:
101 @echo "Creating CTAGS file . . ."
102 @ctags -txw $(SRCS) $(HEADERS) > CTAGS
103
104etags:
105 @echo "Creating TAGS file . . ."
106 @/usr/local/bin/etags -C $(SRCS) $(HEADERS)
107
108listsrc:
109 @ls -m $(SRCS) $(HEADERS) | sed 's/,//g'
110
111redo: clean all
112
113# @endcode
114
115# DO NOT DELETE THIS LINE -- make depend depends on it.
Note: See TracBrowser for help on using the repository browser.