source: trunk/MagicSoft/Simulation/Detector/ReflectorII/Makefile@ 9492

Last change on this file since 9492 was 5139, checked in by moralejo, 20 years ago
*** empty log message ***
File size: 3.3 KB
Line 
1##################################################################
2#
3# makefile
4#
5# @file makefile
6# @title Simulation of the camera and trigger logic
7# @author J C Gonz\'alez
8# @email gonzalez@mppmu.mpg.de
9# @date Fri Mar 12 11:51:11 MET 1999
10#
11#_______________________________________________________________
12#
13# Created: Fri Mar 12 11:51:11 MET 1999
14# Author: Jose Carlos Gonzalez
15# Purpose: Makefile for the compilation of the camera program
16# Notes:
17#
18#---------------------------------------------------------------
19#
20# $RCSfile: Makefile,v $
21# $Revision: 1.7 $
22# $Author: moralejo $
23# $Date: 2004-09-27 14:45:47 $
24#
25##################################################################
26# @maintitle
27
28# @code
29
30INCLUDEMK = config.mk.${OSTYPE}
31include ${INCLUDEMK}
32
33# @endcode
34
35# @code
36
37# common flags
38INCLUDES = -I/usr/include -I/usr/include/cxx
39
40RANLIB = -L${RANLIBDIR} -lranlib
41
42# special flags
43
44osf_FORLIBS = -L/usr/lib -lUfor -lFutil -lfor -lutil -lots -lm
45linux_FORLIBS = -lm
46generic_FORLIBS = -lm
47
48FORLIBS = ${${SYSTEM}_FORLIBS}
49
50# compilation and linking flags
51
52#CXXFLAGS = -D__${SYSTEM}__ ${INCLUDES} ${OPTIM} ${DEBUG}
53CXXFLAGS = -D__${SYSTEM}__ ${INCLUDES} ${OPTIM}
54#CXXFLAGS = -D__${SYSTEM}__ ${INCLUDES} ${DEBUG}
55
56CFLAGS = ${CXXFLAGS}
57FFLAGS = ${CXXFLAGS}
58LIBS = ${RANLIB} ${FORLIBS}
59
60#------------------------------------------------------------------------------
61
62#.SILENT:
63
64.SUFFIXES: .c .cxx .C .c++ .h .hxx .H .h++ .o .so .f
65
66SRCS = \
67 attenu.f \
68 diag.c \
69 init.c \
70 parms.c \
71 geometry.c \
72 atm.c \
73 ph2cph.c \
74 header.c \
75 attach.c \
76 reflector.c
77
78HEADERS = \
79 atm.h \
80 diag.h \
81 geometry.h \
82 header.h \
83 init.h \
84 lagrange.h \
85 parms.h \
86 version.h
87
88OBJS = \
89 attenu.o \
90 diag.o \
91 init.o \
92 parms.o \
93 geometry.o \
94 atm.o \
95 ph2cph.o \
96 header.o \
97 attach.o \
98 reflector.o
99
100PROGRAM=reflector
101
102############################################################
103
104all: ${PROGRAM}
105
106depend:
107 @makedepend $(SRCS) -fMakefile 2> /dev/null
108
109doc: reflector-doc
110
111reflector-doc:
112 @echo "Generating documentation for camera . . . "
113 $(DOCUM) -latex -o reflector.tex \
114 reflector.cxx reflector.h \
115 readparam.cxx readparam.h \
116 atm.cxx atm.h
117 latex "\nonstopmode\input{reflector.tex}" && \
118 makeindex reflector && \
119 latex "\nonstopmode\input{reflector.tex}" && \
120 latex "\nonstopmode\input{reflector.tex}"
121 @echo "Files reflector.tex and reflector.dvi generated."
122
123rate:
124 @echo "Rating documentation inside code . . . "
125 $(RATE) \
126 reflector.cxx reflector.h \
127 readparam.cxx readparam.h \
128 atm.cxx atm.h
129
130${PROGRAM}: $(OBJS)
131 @echo "Linking..." $@
132 $(CXX) $(CXXFLAGS) $(OBJS) $(LIBS) -o $@
133 @echo "done."
134
135.cxx.o:
136 @echo "Compiling " $<
137 $(CXX) $(CXXFLAGS) -c $< -o $@
138
139.c.o:
140 @echo "Compiling " $<
141 $(CC) $(CFLAGS) -c $< -o $@
142
143.f.o:
144 @echo "Compiling " $<
145 $(F77) $(FFLAGS) -c $< -o $@
146
147lclean:
148 @echo "Cleanning..."
149 @rm -f *.o core
150
151clean:
152 @echo "Cleanning..."
153 @rm -f $(OBJS) core
154
155mrproper: clean
156 @echo "Mr.Proper in action . . ."
157 @rm -f $(PROGRAM)
158
159ctags:
160 @echo "Creating CTAGS file . . ."
161 @ctags -txw $(SRCS) $(HEADERS) > CTAGS
162
163etags:
164 @echo "Creating TAGS file . . ."
165 @etags -C $(SRCS) $(HEADERS)
166
167listsrc:
168 @ls -m $(SRCS) $(HEADERS) | sed 's/,//g'
169
170redo: clean all
171
172# @endcode
173
174# DO NOT DELETE THIS LINE -- make depend depends on it.
175
Note: See TracBrowser for help on using the repository browser.