Last change
on this file since 37 was 36, checked in by ogrimm, 15 years ago |
Various changes, see History.txt
|
File size:
1.4 KB
|
Line | |
---|
1 | #
|
---|
2 | # Makefile for the DRS DAQ
|
---|
3 | #
|
---|
4 | # Compiled and streamlined from original makefiles - O. Grimm, Nov 2008
|
---|
5 | # Use the VMECTRL flag to switch between different VME controllers: -DCT_VME
|
---|
6 | # for Concurrent Technologies, -DSTRUCK_VME for Struck
|
---|
7 |
|
---|
8 | VMECTRL = -DCT_VME
|
---|
9 |
|
---|
10 | CC = g++ # Compiler to use
|
---|
11 |
|
---|
12 | SOURCES = HVFeedback.cc DAQReadout.cc RawDataCTX.cc SlowData.cc ../pixelmap/Pixel.cc ../pixelmap/PixelMap.cc DRS/DRS.cc DRS/mxml.c DRS/strlcpy.c drsdaq.cpp
|
---|
13 | OBJECTS = $(addsuffix .o, $(basename $(SOURCES)))
|
---|
14 |
|
---|
15 | INCDIRS = -I. -IDRS -I../pixelmap
|
---|
16 |
|
---|
17 | ifeq ($(VMECTRL),-DCT_VME)
|
---|
18 | VMELIB = -L./VME/atlas/lib -lvme_rcc -lcmem_rcc -lrcc_time_stamp
|
---|
19 | INCDIRS := $(INCDIRS) -I./VME/atlas/include/
|
---|
20 | else
|
---|
21 | VMELIB = -L./VME/struck
|
---|
22 | INCDIRS := $(INCDIRS) -I./VME/struck/
|
---|
23 | OBJECTS := $(OBJECTS) ./VME/struck/sis3100.o ./VME/struck/sis3100_vme_calls.o
|
---|
24 | endif
|
---|
25 |
|
---|
26 | CFLAGS = -pipe -fthread-jumps -funroll-all-loops -O3 -Wall -DOS_LINUX
|
---|
27 | CPPFLAGS = -pipe -fPIC -fthread-jumps -funroll-all-loops -O3 -Wall -DOS_LINUX $(VMECTRL)
|
---|
28 | LIBS = -lstdc++ -lz -lpthread -lutil -lfl $(VMELIB)
|
---|
29 |
|
---|
30 | drsdaq: $(OBJECTS)
|
---|
31 | $(CC) $(CPPFLAGS) -o $@ $(OBJECTS) $(LIBS)
|
---|
32 |
|
---|
33 | clean:
|
---|
34 | @rm -f $(OBJECTS)
|
---|
35 | @rm -f *.d
|
---|
36 | @rm -f *~
|
---|
37 |
|
---|
38 | -include Dep.d
|
---|
39 |
|
---|
40 | # Implicit rules
|
---|
41 |
|
---|
42 | %.o : %.c
|
---|
43 | $(CC) $(CFLAGS) $(INCDIRS) -c -o $@ $<
|
---|
44 | %.o : %.cc
|
---|
45 | $(CC) $(CPPFLAGS) $(INCDIRS) -c -o $@ $<
|
---|
46 | %.o : %.cpp
|
---|
47 | $(CC) $(CPPFLAGS) $(INCDIRS) -c -o $@ $<
|
---|
48 | %.d :
|
---|
49 | @echo "Generating dependencies" $@
|
---|
50 | @$(CC) -MM $(SOURCES) $(INCDIRS) \
|
---|
51 | | sed 's/^\(.*\).o:/$@ \1.o:/' > $@
|
---|
Note:
See
TracBrowser
for help on using the repository browser.