-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
executable file
·54 lines (37 loc) · 1.07 KB
/
Makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
########################################################################
#
## --- CAEN SpA - Computing Division ---
#
## CAENDigitizer Software Project
#
## Created : October 2009 (Rel. 1.0)
#
## Auth: A. Lucchesi
#
#########################################################################
ARCH = `uname -m`
OUTDIR = ./bin/
OUTNAME = DAQ
OUT = $(OUTDIR)/$(OUTNAME)
CC = g++
COPTS = -fPIC -DLINUX -O2
#FLAGS = -soname -s
#FLAGS = -Wall,-soname -s
#FLAGS = -Wall,-soname -nostartfiles -s
#FLAGS = -Wall,-soname
DEPLIBS =
LIBS = -L.
INCLUDEDIR = -I./inc
OBJS = DAQ.o src/DAQVConfig.o src/DT5202Config.o src/DT5202.o src/utlConfigParser.o src/utlMessageBus.o
INCLUDES = ./inc/*
#########################################################################
all : $(OUT)
clean :
/bin/rm -f $(OBJS) $(OUT)
$(OUT) : $(OBJS)
/bin/rm -f $(OUT)
if [ ! -d $(OUTDIR) ]; then mkdir -p $(OUTDIR); fi
$(CC) $(FLAGS) -o $(OUT) $(OBJS) $(DEPLIBS)
$(OBJS) : $(INCLUDES) Makefile
%.o : %.cc
$(CC) $(COPTS) $(INCLUDEDIR) -c -o $@ $<