Line | |
---|
1 | ##################################################################
|
---|
2 | #
|
---|
3 | # makefile
|
---|
4 | #
|
---|
5 | # for the MARS software
|
---|
6 | #
|
---|
7 | ##################################################################
|
---|
8 | # @maintitle
|
---|
9 |
|
---|
10 | # @code
|
---|
11 |
|
---|
12 | #
|
---|
13 | # ----->>> settings for compiler
|
---|
14 | #
|
---|
15 |
|
---|
16 | CC = gcc
|
---|
17 | CXX = g++
|
---|
18 | AR = ar -rc
|
---|
19 | AS = as
|
---|
20 | LD = ld
|
---|
21 | RANLIB = ranlib
|
---|
22 |
|
---|
23 | #
|
---|
24 | # ----->>> settings for compilation
|
---|
25 | #
|
---|
26 |
|
---|
27 | PROGRAMS = cosy
|
---|
28 |
|
---|
29 |
|
---|
30 | ROOTFLAGS = `root-config --cflags`
|
---|
31 | ROOTGLIBS = `root-config --glibs`
|
---|
32 |
|
---|
33 | #
|
---|
34 | # connect the include files defined in the config.mk file
|
---|
35 | #
|
---|
36 | # WARNING: the result (whether the linkage works or not) depends on the
|
---|
37 | # order of the libraries
|
---|
38 | #
|
---|
39 | #
|
---|
40 | LIBS = -L/usr/lib -lstdc++ -lpthread
|
---|
41 | INCLUDES = -Iincl -I.
|
---|
42 |
|
---|
43 | WARNING = -Wall -fno-rtti -fno-exceptions
|
---|
44 | OPTIM = -O2
|
---|
45 | DEBUG = -g
|
---|
46 | DEFINES = -DCPU=486 -DBUS_LITTLE_ENDIAN -DDEBUG=0 -DLINUX -DSHOW
|
---|
47 |
|
---|
48 | CFLAGS = $(OPTIM) $(DEBUG) $(WARNING) $(INCLUDES) $(ROOTFLAGS) $(DEFINES)
|
---|
49 | CXXFLAGS = $(CFLAGS)
|
---|
50 |
|
---|
51 | #
|
---|
52 | # uncomment this for quiet compilation
|
---|
53 | #
|
---|
54 |
|
---|
55 |
|
---|
56 | include Makefile.conf.general
|
---|
57 |
|
---|
58 | # @endcode
|
---|
59 |
|
---|
60 | # @code
|
---|
61 |
|
---|
62 | CINT = M
|
---|
63 |
|
---|
64 | #
|
---|
65 | # ----->>> mars libraries
|
---|
66 | #
|
---|
67 |
|
---|
68 | #------------------------------------------------------------------------------
|
---|
69 | .SILENT:
|
---|
70 |
|
---|
71 | .SUFFIXES: .c .cc .h .o
|
---|
72 |
|
---|
73 | SRCFILES =
|
---|
74 |
|
---|
75 | SRCS = $(SRCFILES)
|
---|
76 | HEADERS = $(SRCFILES:.cc=.h)
|
---|
77 | OBJS = $(SRCFILES:.cc=.o)
|
---|
78 |
|
---|
79 | ############################################################
|
---|
80 |
|
---|
81 | all: rmlib $(PROGRAMS)
|
---|
82 |
|
---|
83 | #dox:
|
---|
84 | # @echo " Creating html documentation:"
|
---|
85 | # root -b -q dohtml.C
|
---|
86 |
|
---|
87 |
|
---|
88 | include Makefile.rules
|
---|
89 |
|
---|
90 | clean: rmlib rmcint rmobjs rmcore rmbin
|
---|
91 |
|
---|
92 | mrproper: clean rmbak
|
---|
93 | @rm -f macros/*~
|
---|
94 | @rm -rf htmldoc
|
---|
95 | @echo "cd mbase"
|
---|
96 | @cd mbase; make mrproper; cd ..
|
---|
97 | @echo "cd .."
|
---|
98 | @echo "cd mraw"
|
---|
99 | @cd mraw; make mrproper; cd ..
|
---|
100 | @echo "cd .."
|
---|
101 | @echo "cd mgui"
|
---|
102 | @cd mgui; make mrproper; cd ..
|
---|
103 | @echo "cd .."
|
---|
104 | @echo "cd mdatacheck"
|
---|
105 | @cd mdatacheck; make mrproper; cd ..
|
---|
106 | @echo "cd .."
|
---|
107 |
|
---|
108 |
|
---|
109 | # @endcode
|
---|
Note:
See
TracBrowser
for help on using the repository browser.