Subversion Repositories f9daq

Rev

Rev 15 | Details | Compare with Previous | 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     =
81 f9daq 14
CFLAGS  = $(DBG) $(INC)  -fPIC -DLINUX -Wall -g
12 f9daq 15
 
16
SHLIB   =  -lpcivme -lz
17
 
18
OBJ_FILES = PtsModule.o
19
 
20
 
81 f9daq 21
all: ptsvmusb
12 f9daq 22
 
81 f9daq 23
ptsvmusb: PtsModule.c VmUsbStack_cvi.c   wusbxx_dll.c libxxusb.c
24
	$(CXX) $(CFLAGS)  -DWVMUSB PtsModule.c VmUsbStack_cvi.c   wusbxx_dll.c libxxusb.c  -lusb -lz -o ptsvmusb
25
 
12 f9daq 26
pts: PtsModule.c  wienvme_dll.c
27
	$(CXX) $(CFLAGS)  PtsModule.c  wienvme_dll.c    $(SHLIB) -o pts
28
#	cp sa02_ctrl ../bin
29
 
30
 
31
 
32
 
33
 
34
 
35
.cpp.o:
36
	$(CXX) -c $(CFLAGS) $<
37
	ar r $(VMELIB) $@
38
 
39
.C.o:
40
	$(CXX) -c $(CFLAGS) $<
41
	ar r $(VMELIB) $@
42
 
43
 
44
.cc.o:
45
	$(CXX) -c $(CFLAGS) $<
46
	ar r $(VMELIB) $@
47
 
48
.c.o:
49
	$(CXX) -c $(CFLAGS) $<
50
	ar r $(VMELIB) $@
51
 
52
 
53
 
54
 
55
 
56
clean:
15 f9daq 57
	rm pts
12 f9daq 58
 
59
 
60
tgz:
15 f9daq 61
	tar czvf pts.tgz Makefile *.c *.h *.C *.cc *.hh