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

Last change on this file since 5113 was 5110, checked in by moralejo, 20 years ago
Commited to CVS all changes to adapt headers to current C++ syntaxis
File size: 2.0 KB
Line 
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
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
27LIBS = -L${RANLIBDIR} -L/usr/local/lib -L/usr/lib -lm
28
29
30#------------------------------------------------------------------------------
31
32.SILENT:
33
34.SUFFIXES: .cxx .o
35
36SRCS = 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
46HEADERS = 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
59OBJS = 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
71all: starfield
72
73#If you type 'make depend' this will update the dependencies listed below
74
75depend:
76 @makedepend $(SRCS) -fMakefile 2> /dev/null
77
78starfield: $(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
87lclean:
88 @echo "Cleaning..."
89 @rm -f *.o core
90
91clean:
92 @echo "Cleaning..."
93 @rm -f $(OBJS) core
94
95mrproper: clean
96 @echo "Mr.Proper in action . . ."
97 @rm -f $(PROGRAM)
98
99ctags:
100 @echo "Creating CTAGS file . . ."
101 @ctags -txw $(SRCS) $(HEADERS) > CTAGS
102
103etags:
104 @echo "Creating TAGS file . . ."
105 @/usr/local/bin/etags -C $(SRCS) $(HEADERS)
106
107listsrc:
108 @ls -m $(SRCS) $(HEADERS) | sed 's/,//g'
109
110redo: clean all
111
112# @endcode
113
114# DO NOT DELETE THIS LINE -- make depend depends on it.
Note: See TracBrowser for help on using the repository browser.