Subversion Repositories f9daq

Rev

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