Rev 5 | Details | Compare with Previous | Last modification | View Log | RSS feed
Rev | Author | Line No. | Line |
---|---|---|---|
5 | f9daq | 1 | |
2 | ROOTINC=$(shell root-config --incdir ) |
||
3 | ROOTLIB=$(shell root-config --libs ) |
||
4 | |||
5 | |||
6 | INC=-I. -I$(ROOTINC) |
||
7 | |||
8 | |||
9 | LIBS=$(ROOTLIB) -L./ -lm |
||
10 | LIBS1=$(shell root-config --libs --glibs ) |
||
11 | |||
12 | |||
13 | |||
14 | SRC = . |
||
15 | INC1 = -I. -I../lib -I/usr/include |
||
16 | DBG = |
||
17 | CFLAGS = $(DBG) $(INC1) -Wall |
||
18 | |||
19 | |||
20 | TARGET1 = daq |
||
21 | |||
22 | FILES1 = $(SRC)/daq.C |
||
23 | |||
24 | VMELIB = libf9vme.a |
||
25 | |||
26 | SHLIB = $(VMELIB) -lusb -lz |
||
27 | |||
28 | OBJ_FILES = VMEModule.o CAENV965.o libxxusb.o wienvmeusb_dll.o VmUsbStack.o |
||
29 | |||
30 | all: vme $(TARGET1) |
||
31 | |||
32 | libxxusb.o: libxxusb.cpp libxxusb.h |
||
33 | |||
34 | |||
35 | |||
36 | .cpp.o: |
||
37 | $(CXX) -c -g $< |
||
38 | ar r $(VMELIB) $@ |
||
39 | |||
40 | .C.o: |
||
41 | $(CXX) -c -g $< |
||
42 | ar r $(VMELIB) $@ |
||
43 | |||
44 | |||
45 | .cc.o: |
||
46 | $(CXX) -c -g $< |
||
47 | ar r $(VMELIB) $@ |
||
48 | |||
49 | .c.o: |
||
50 | $(CXX) -c -g $< |
||
51 | ar r $(VMELIB) $@ |
||
52 | |||
53 | vme: $(OBJ_FILES) |
||
54 | |||
55 | wienvme_dll.o: wienvme_dll.c |
||
56 | |||
57 | |||
58 | |||
59 | VMEModule.o: VMEModule.hh VMEModule.cc |
||
60 | |||
61 | CAENV965.o: CAENV965.h CAENV965_DEF.h CAENV965.c |
||
62 | |||
63 | |||
64 | $(TARGET1): $(FILES1) vme |
||
65 | $(CXX) -DMAIN $(FILES1) $(CFLAGS) -o $(TARGET1) $(SHLIB) -lstdc++ |
||
66 | |||
67 | |||
68 | libdaq.so: $(FILES1) |
||
69 | @echo "Generating dictionary Dict.C..." |
||
70 | rootcint -f Dict.C -c $(INC) $(CPPFLAGS) daq.h LinkDef.h |
||
71 | $(CXX) -DG__DICTIONARY $(CPPFLAGS) $(INC) -fPIC -g -Wall $(FILES1) Dict.C -L. $(SHLIB) -shared -o libdaq.so |
||
72 | |||
73 | clean: |
||
74 | rm Dict.C libdaq.so $(TARGET1) |
||
75 | |||
76 | |||
77 | tgz: |
||
78 | tar czvf vme.tgz Makefile *.c *.h *.C *.cc *.hh |