source: trunk/MagicSoft/Simulation/Detector/Starfield/Makefile.osf

Last change on this file 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.osf,v 1.2 2004-09-17 17:36:25 moralejo Exp $
6##
7##################################################################
8
9# @T \newpage
10
11INCLUDE = ../include-GENERAL
12INCLUDE_COR = ../include-CORSIKA
13
14CXX = cxx
15
16INCLUDES = -I${INCLUDE} \
17 -I${INCLUDE_COR} \
18 -I/usr/include/cxx
19
20WARNINGS = -Wall
21
22CXXFLAGS = ${WARNINGS} ${INCLUDES}
23
24LIBS = -L${ROOTSYS}/lib -L/usr/local/lib -L/usr/lib -lm
25
26
27#------------------------------------------------------------------------------
28
29.SILENT:
30
31.SUFFIXES: .cxx .o
32
33SRCS = 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
43HEADERS = 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
56OBJS = 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
68all: starfield
69
70#If you type 'make depend' this will update the dependencies listed below
71
72depend:
73 @makedepend $(SRCS) -fMakefile 2> /dev/null
74
75starfield: $(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
84lclean:
85 @echo "Cleaning..."
86 @rm -f *.o core
87
88clean:
89 @echo "Cleaning..."
90 @rm -f $(OBJS) core
91
92mrproper: clean
93 @echo "Mr.Proper in action . . ."
94 @rm -f $(PROGRAM)
95
96ctags:
97 @echo "Creating CTAGS file . . ."
98 @ctags -txw $(SRCS) $(HEADERS) > CTAGS
99
100etags:
101 @echo "Creating TAGS file . . ."
102 @/usr/local/bin/etags -C $(SRCS) $(HEADERS)
103
104listsrc:
105 @ls -m $(SRCS) $(HEADERS) | sed 's/,//g'
106
107redo: clean all
108
109# @endcode
110
111# DO NOT DELETE THIS LINE -- make depend depends on it.
Note: See TracBrowser for help on using the repository browser.