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 |
|
---|
13 | INCLUDE = ../include-GENERAL
|
---|
14 | INCLUDE_COR = ../include-CORSIKA
|
---|
15 |
|
---|
16 | CXX = g++
|
---|
17 |
|
---|
18 |
|
---|
19 | INCLUDES = -I${INCLUDE} \
|
---|
20 | -I${INCLUDE_COR} \
|
---|
21 | -I${ROOTSYS}/include
|
---|
22 |
|
---|
23 | WARNINGS = -Wall
|
---|
24 |
|
---|
25 | CXXFLAGS = ${WARNINGS} ${INCLUDES}
|
---|
26 |
|
---|
27 | ROOTLIBS = `root-config --libs`
|
---|
28 | LIBS = -L${RANLIBDIR} -L/usr/local/lib -L/usr/lib -lm ${ROOTLIBS}
|
---|
29 |
|
---|
30 |
|
---|
31 | #------------------------------------------------------------------------------
|
---|
32 |
|
---|
33 | .SILENT:
|
---|
34 |
|
---|
35 | .SUFFIXES: .cxx .o
|
---|
36 |
|
---|
37 | SRCS = 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 |
|
---|
47 | HEADERS = 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 |
|
---|
60 | OBJS = 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 |
|
---|
72 | all: starfield
|
---|
73 |
|
---|
74 | #If you type 'make depend' this will update the dependencies listed below
|
---|
75 |
|
---|
76 | depend:
|
---|
77 | @makedepend $(SRCS) -fMakefile 2> /dev/null
|
---|
78 |
|
---|
79 | starfield: $(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 |
|
---|
88 | lclean:
|
---|
89 | @echo "Cleaning..."
|
---|
90 | @rm -f *.o core
|
---|
91 |
|
---|
92 | clean:
|
---|
93 | @echo "Cleaning..."
|
---|
94 | @rm -f $(OBJS) core
|
---|
95 |
|
---|
96 | mrproper: clean
|
---|
97 | @echo "Mr.Proper in action . . ."
|
---|
98 | @rm -f $(PROGRAM)
|
---|
99 |
|
---|
100 | ctags:
|
---|
101 | @echo "Creating CTAGS file . . ."
|
---|
102 | @ctags -txw $(SRCS) $(HEADERS) > CTAGS
|
---|
103 |
|
---|
104 | etags:
|
---|
105 | @echo "Creating TAGS file . . ."
|
---|
106 | @/usr/local/bin/etags -C $(SRCS) $(HEADERS)
|
---|
107 |
|
---|
108 | listsrc:
|
---|
109 | @ls -m $(SRCS) $(HEADERS) | sed 's/,//g'
|
---|
110 |
|
---|
111 | redo: clean all
|
---|
112 |
|
---|
113 | # @endcode
|
---|
114 |
|
---|
115 | # DO NOT DELETE THIS LINE -- make depend depends on it.
|
---|