Subversion Repositories f9daq

Rev

Rev 15 | Go to most recent revision | Details | Last modification | View Log | RSS feed

Rev Author Line No. Line
12 f9daq 1
CC = gcc
2
 
3
 
4
INC=-I.  -I$(ROOTINC)
5
 
6
LIBS=$(ROOTLIB) -L./ -lm 
7
 
8
 
9
 
10
 
11
SRC     = .
12
INC1     = -I. -I../lib -I/usr/include
13
DBG     = 
14
CFLAGS  = $(DBG) $(INC)  -fPIC -DLINUX -Wall
15
 
16
 
17
TARGET = daq
18
 
19
FILES  = $(SRC)/daq.C
20
 
21
VMELIB = libf9vme.a
22
 
23
SHLIB   =  -lpcivme -lz
24
 
25
OBJ_FILES = PtsModule.o
26
 
27
 
28
all: pts
29
 
30
pts: PtsModule.c  wienvme_dll.c 
31
	$(CXX) $(CFLAGS)  PtsModule.c  wienvme_dll.c    $(SHLIB) -o pts
32
#	cp sa02_ctrl ../bin
33
 
34
 
35
 
36
 
37
 
38
 
39
.cpp.o:
40
	$(CXX) -c $(CFLAGS) $<
41
	ar r $(VMELIB) $@
42
 
43
.C.o:
44
	$(CXX) -c $(CFLAGS) $<
45
	ar r $(VMELIB) $@
46
 
47
 
48
.cc.o:
49
	$(CXX) -c $(CFLAGS) $<
50
	ar r $(VMELIB) $@
51
 
52
.c.o:
53
	$(CXX) -c $(CFLAGS) $<
54
	ar r $(VMELIB) $@
55
 
56
vme: $(OBJ_FILES)
57
 
58
 
59
 
60
VMEModule.o: VMEModule.hh VMEModule.cc
61
 
62
CAENV965.o: CAENV965.h CAENV965_DEF.h CAENV965.c
63
 
64
 
65
$(TARGET): $(FILES)  $(OBJ_FILES) 
66
	$(CXX) -DMAIN $(CFLAGS) $(FILES) $(OBJ_FILES) $(SHLIB)  -o $(TARGET)
67
 
68
 
69
 
70
clean:
71
	rm Dict.C  libdaq.so $(TARGET1)
72
 
73
 
74
tgz:
75
	tar czvf vme.tgz Makefile *.c *.h *.C *.cc *.hh