source: trunk/MagicSoft/Cosy/Makefile.mk@ 2388

Last change on this file since 2388 was 738, checked in by tbretz, 24 years ago
*** empty log message ***
File size: 1.8 KB
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
16CC = gcc
17CXX = g++
18AR = ar -rc
19AS = as
20LD = ld
21RANLIB = ranlib
22
23#
24# ----->>> settings for compilation
25#
26
27PROGRAMS = cosy
28
29
30ROOTFLAGS = `root-config --cflags`
31ROOTGLIBS = `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#
40LIBS = -L/usr/lib -lstdc++ -lpthread
41INCLUDES = -Iincl -I.
42
43WARNING = -Wall -fno-rtti -fno-exceptions
44OPTIM = -O2
45DEBUG = -g
46DEFINES = -DCPU=486 -DBUS_LITTLE_ENDIAN -DDEBUG=0 -DLINUX -DSHOW
47
48CFLAGS = $(OPTIM) $(DEBUG) $(WARNING) $(INCLUDES) $(ROOTFLAGS) $(DEFINES)
49CXXFLAGS = $(CFLAGS)
50
51#
52# uncomment this for quiet compilation
53#
54
55
56include Makefile.conf.general
57
58# @endcode
59
60# @code
61
62CINT = M
63
64#
65# ----->>> mars libraries
66#
67
68#------------------------------------------------------------------------------
69.SILENT:
70
71.SUFFIXES: .c .cc .h .o
72
73SRCFILES =
74
75SRCS = $(SRCFILES)
76HEADERS = $(SRCFILES:.cc=.h)
77OBJS = $(SRCFILES:.cc=.o)
78
79############################################################
80
81all: rmlib $(PROGRAMS)
82
83#dox:
84# @echo " Creating html documentation:"
85# root -b -q dohtml.C
86
87
88include Makefile.rules
89
90clean: rmlib rmcint rmobjs rmcore rmbin
91
92mrproper: 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.