source: branches/AddingGoogleTestEnvironment/mtemp/mwuerzburg/tools/dcconverter/Makefile@ 19779

Last change on this file since 19779 was 4091, checked in by merck, 21 years ago
Merck: First commit to CVS
File size: 2.2 KB
Line 
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
24CC = gcc
25CXX = g++
26F77 = g77
27
28INCLUDES = -I.
29
30OPTIM =
31DEBUG = -g
32
33# compilation and linking flags
34
35CXXFLAGS = ${INCLUDES} ${OPTIM} ${DEBUG}
36CFLAGS = ${CXXFLAGS}
37FFLAGS = ${CXXFLAGS}
38LIBS =
39
40#------------------------------------------------------------------------------
41
42#.SILENT:
43
44.SUFFIXES: .c .cxx .cpp .C .c++ .h .hxx .H .h++ .o .so .f
45
46SRCS = \
47 main.cpp \
48 DCCurrentEvent.cpp
49
50HEADERS = \
51 DCCurrentEvent.h \
52 Globals.h
53
54OBJS = \
55 DCCurrentEvent.o \
56 main.o
57
58PROGRAM=dcconvertor
59
60############################################################
61
62all: ${PROGRAM}
63
64depend:
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
84lclean:
85 @echo "Cleanning..."
86 @rm -f *.o core
87
88clean:
89 @echo "Cleanning..."
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 @etags -C $(SRCS) $(HEADERS)
103
104listsrc:
105 @ls -m $(SRCS) $(HEADERS) | sed 's/,//g'
106
107redo: clean all
108
109# @endcode
110# DO NOT DELETE
111
112main.o: Globals.h /usr/include/stdlib.h /usr/include/features.h
113main.o: /usr/include/sys/cdefs.h /usr/include/gnu/stubs.h
114main.o: /usr/lib/gcc-lib/i486-suse-linux/3.3/include/stddef.h
115main.o: DCCurrentEvent.h
116DCCurrentEvent.o: DCCurrentEvent.h Globals.h
Note: See TracBrowser for help on using the repository browser.