forked from CMSROMA/VMEDAQ
-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathMakefile
64 lines (44 loc) · 1.62 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
54
55
56
57
58
59
60
61
62
63
#------------------------------------------------------------------------------
# Title: Makefile for the CT acquisition
# Date: 2009
# Author: A.Sarti
# Platform: Linux 2.4.x
# Language: GCC 2.95 and 3.0
#------------------------------------------------------------------------------
# daq for the CAEN bridge v1718
OBJS = adc265_lib.o adc792_lib.o tdc1190_lib.o tdcV488A_lib.o v1718_lib.o vme_bridge.o V513_lib.o scaler560_lib.o
BINS = acquire count
INCLUDE_DIR = .
COPTS = -g -Wall -DLINUX -fPIC -I$(INCLUDE_DIR)
all: $(BINS)
acquire: $(OBJS) main_acquisition.o
g++ -g -DLINUX -o acquire $(OBJS) -lncurses -lm -l CAENVME main_acquisition.o
count: $(OBJS) simple_count.o
g++ -g -DLINUX -o count $(OBJS) -lncurses -lm -l CAENVME simple_count.o
main_acquisition.o: main_acquisition.c
g++ $(COPTS) -c main_acquisition.c
simple_count.o: simple_count.c
g++ $(COPTS) -c simple_count.c
adc265_lib.o: adc265_lib.c adc265_lib.h
g++ $(COPTS) -c adc265_lib.c
adc792_lib.o: adc792_lib.c adc792_lib.h
g++ $(COPTS) -c adc792_lib.c
scaler560_lib.o: scaler560_lib.c scaler560_lib.h
g++ $(COPTS) -c scaler560_lib.c
tdc1190_lib.o: tdc1190_lib.c tdc1190_lib.h
g++ $(COPTS) -c tdc1190_lib.c
tdcV488A_lib.o: tdcV488A_lib.c tdcV488A_lib.h
g++ $(COPTS) -c tdcV488A_lib.c
v1718_lib.o: v1718_lib.c v1718_lib.h
g++ $(COPTS) -c v1718_lib.c
V513_lib.o: V513_lib.cc V513.h
g++ $(COPTS) -c V513_lib.cc
vme_bridge.o: vme_bridge.c $(INCLUDE_DIR)/vme_bridge.h
g++ $(COPTS) -c vme_bridge.c
clean:
-rm -f acquire
-rm -f count
-rm -f #*#
-rm -f *~
-rm -f core
-rm -f $(OBJS)