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