1 | ##################################################################
|
---|
2 | ##
|
---|
3 | ## Starfield Generator Makefile
|
---|
4 | ##
|
---|
5 | ## $Id: Makefile,v 1.4 2004-09-17 17:36:25 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 | LIBS = -L${RANLIBDIR} -L/usr/local/lib -L/usr/lib -lm
|
---|
28 |
|
---|
29 |
|
---|
30 | #------------------------------------------------------------------------------
|
---|
31 |
|
---|
32 | .SILENT:
|
---|
33 |
|
---|
34 | .SUFFIXES: .cxx .o
|
---|
35 |
|
---|
36 | SRCS = starfield.cxx\
|
---|
37 | star.cxx\
|
---|
38 | photon.cxx\
|
---|
39 | convertcorsika.cxx\
|
---|
40 | rand_un_gen.cxx\
|
---|
41 | parameters.cxx\
|
---|
42 | ${INCLUDE_COR}/COREventHeader.cxx\
|
---|
43 | ${INCLUDE_COR}/CORParticle.cxx\
|
---|
44 | ${INCLUDE_COR}/CORStatfile.cxx
|
---|
45 |
|
---|
46 | HEADERS = starfield.h\
|
---|
47 | star.hxx\
|
---|
48 | photon.hxx\
|
---|
49 | convertcorsika.h\
|
---|
50 | parameters.h\
|
---|
51 | COREventHeader.hxx\
|
---|
52 | CORParticle.hxx\
|
---|
53 | CORStatfile.hxx\
|
---|
54 | DllImport.h\
|
---|
55 | RConfig.h\
|
---|
56 | Rtypes.h\
|
---|
57 | ranlib.h
|
---|
58 |
|
---|
59 | OBJS = starfield.o\
|
---|
60 | star.o\
|
---|
61 | photon.o\
|
---|
62 | convertcorsika.o\
|
---|
63 | rand_un_gen.o\
|
---|
64 | parameters.o\
|
---|
65 | ${INCLUDE_COR}/COREventHeader.o\
|
---|
66 | ${INCLUDE_COR}/CORParticle.o\
|
---|
67 | ${INCLUDE_COR}/CORStatfile.o
|
---|
68 |
|
---|
69 | ###########################################################
|
---|
70 |
|
---|
71 | all: starfield
|
---|
72 |
|
---|
73 | #If you type 'make depend' this will update the dependencies listed below
|
---|
74 |
|
---|
75 | depend:
|
---|
76 | @makedepend $(SRCS) -fMakefile 2> /dev/null
|
---|
77 |
|
---|
78 | starfield: $(OBJS)
|
---|
79 | @echo "Linking..." $(OBJS)
|
---|
80 | $(CXX) $(CXXFLAGS) $(OBJS) $(LIBS) -o $@
|
---|
81 | @echo "done."
|
---|
82 |
|
---|
83 | .cxx.o:
|
---|
84 | @echo "Compiling " $<
|
---|
85 | $(CXX) $(CXXFLAGS) -c $< -o $@
|
---|
86 |
|
---|
87 | lclean:
|
---|
88 | @echo "Cleaning..."
|
---|
89 | @rm -f *.o core
|
---|
90 |
|
---|
91 | clean:
|
---|
92 | @echo "Cleaning..."
|
---|
93 | @rm -f $(OBJS) core
|
---|
94 |
|
---|
95 | mrproper: clean
|
---|
96 | @echo "Mr.Proper in action . . ."
|
---|
97 | @rm -f $(PROGRAM)
|
---|
98 |
|
---|
99 | ctags:
|
---|
100 | @echo "Creating CTAGS file . . ."
|
---|
101 | @ctags -txw $(SRCS) $(HEADERS) > CTAGS
|
---|
102 |
|
---|
103 | etags:
|
---|
104 | @echo "Creating TAGS file . . ."
|
---|
105 | @/usr/local/bin/etags -C $(SRCS) $(HEADERS)
|
---|
106 |
|
---|
107 | listsrc:
|
---|
108 | @ls -m $(SRCS) $(HEADERS) | sed 's/,//g'
|
---|
109 |
|
---|
110 | redo: clean all
|
---|
111 |
|
---|
112 | # @endcode
|
---|
113 |
|
---|
114 | # DO NOT DELETE THIS LINE -- make depend depends on it.
|
---|