1 | ##################################################################
|
---|
2 | #
|
---|
3 | # makefile
|
---|
4 | #
|
---|
5 | # @file makefile
|
---|
6 | # @title Converter of DCCurrent files to new format
|
---|
7 | # @author M Merck
|
---|
8 | # @email merck@astro.uni-wuerzburg.de
|
---|
9 | # @date Wed Dec 17 11:51:11 MET 2003
|
---|
10 | #
|
---|
11 | #_______________________________________________________________
|
---|
12 | #
|
---|
13 | # Created: Wed Dec 17 11:51:11 MET 2003
|
---|
14 | # Author: Martin Merck
|
---|
15 | # Purpose: Makefile for the compilation of dcconvertor
|
---|
16 | # Notes:
|
---|
17 | #
|
---|
18 | ##################################################################
|
---|
19 |
|
---|
20 | # @code
|
---|
21 |
|
---|
22 | # compilers & tools
|
---|
23 |
|
---|
24 | CC = gcc
|
---|
25 | CXX = g++
|
---|
26 | F77 = g77
|
---|
27 |
|
---|
28 | INCLUDES = -I.
|
---|
29 |
|
---|
30 | OPTIM =
|
---|
31 | DEBUG = -g
|
---|
32 |
|
---|
33 | # compilation and linking flags
|
---|
34 |
|
---|
35 | CXXFLAGS = ${INCLUDES} ${OPTIM} ${DEBUG}
|
---|
36 | CFLAGS = ${CXXFLAGS}
|
---|
37 | FFLAGS = ${CXXFLAGS}
|
---|
38 | LIBS =
|
---|
39 |
|
---|
40 | #------------------------------------------------------------------------------
|
---|
41 |
|
---|
42 | #.SILENT:
|
---|
43 |
|
---|
44 | .SUFFIXES: .c .cxx .cpp .C .c++ .h .hxx .H .h++ .o .so .f
|
---|
45 |
|
---|
46 | SRCS = \
|
---|
47 | main.cpp \
|
---|
48 | DCCurrentEvent.cpp
|
---|
49 |
|
---|
50 | HEADERS = \
|
---|
51 | DCCurrentEvent.h \
|
---|
52 | Globals.h
|
---|
53 |
|
---|
54 | OBJS = \
|
---|
55 | DCCurrentEvent.o \
|
---|
56 | main.o
|
---|
57 |
|
---|
58 | PROGRAM=dcconvertor
|
---|
59 |
|
---|
60 | ############################################################
|
---|
61 |
|
---|
62 | all: ${PROGRAM}
|
---|
63 |
|
---|
64 | depend:
|
---|
65 | @makedepend $(SRCS) -fMakefile 2> /dev/null
|
---|
66 |
|
---|
67 | ${PROGRAM}: $(OBJS)
|
---|
68 | @echo "Linking..." $@
|
---|
69 | $(CXX) $(CXXFLAGS) $(OBJS) $(LIBS) -o $@
|
---|
70 | @echo "done."
|
---|
71 |
|
---|
72 | .cxx.o:
|
---|
73 | @echo "Compiling " $<
|
---|
74 | $(CXX) $(CXXFLAGS) -c $< -o $@
|
---|
75 |
|
---|
76 | .c.o:
|
---|
77 | @echo "Compiling " $<
|
---|
78 | $(CC) $(CFLAGS) -c $< -o $@
|
---|
79 |
|
---|
80 | .f.o:
|
---|
81 | @echo "Compiling " $<
|
---|
82 | $(F77) $(FFLAGS) -c $< -o $@
|
---|
83 |
|
---|
84 | lclean:
|
---|
85 | @echo "Cleanning..."
|
---|
86 | @rm -f *.o core
|
---|
87 |
|
---|
88 | clean:
|
---|
89 | @echo "Cleanning..."
|
---|
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 | @etags -C $(SRCS) $(HEADERS)
|
---|
103 |
|
---|
104 | listsrc:
|
---|
105 | @ls -m $(SRCS) $(HEADERS) | sed 's/,//g'
|
---|
106 |
|
---|
107 | redo: clean all
|
---|
108 |
|
---|
109 | # @endcode
|
---|
110 | # DO NOT DELETE
|
---|
111 |
|
---|
112 | main.o: Globals.h /usr/include/stdlib.h /usr/include/features.h
|
---|
113 | main.o: /usr/include/sys/cdefs.h /usr/include/gnu/stubs.h
|
---|
114 | main.o: /usr/lib/gcc-lib/i486-suse-linux/3.3/include/stddef.h
|
---|
115 | main.o: DCCurrentEvent.h
|
---|
116 | DCCurrentEvent.o: DCCurrentEvent.h Globals.h
|
---|