Rev 12 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 12 | Rev 15 | ||
---|---|---|---|
Line 10... | Line 10... | ||
10 | 10 | ||
11 | SRC = . |
11 | SRC = . |
12 | INC1 = -I. -I../lib -I/usr/include |
12 | INC1 = -I. -I../lib -I/usr/include |
13 | DBG = |
13 | DBG = |
14 | CFLAGS = $(DBG) $(INC) -fPIC -DLINUX -Wall |
14 | CFLAGS = $(DBG) $(INC) -fPIC -DLINUX -Wall |
15 | - | ||
16 | - | ||
17 | TARGET = daq |
- | |
18 | - | ||
19 | FILES = $(SRC)/daq.C |
- | |
20 | - | ||
21 | VMELIB = libf9vme.a |
- | |
22 | 15 | ||
23 | SHLIB = -lpcivme -lz |
16 | SHLIB = -lpcivme -lz |
24 | 17 | ||
25 | OBJ_FILES = PtsModule.o |
18 | OBJ_FILES = PtsModule.o |
26 | 19 | ||
27 | 20 | ||
28 | all: pts |
21 | all: pts |
29 | 22 | ||
30 | pts: PtsModule.c wienvme_dll.c |
23 | pts: PtsModule.c wienvme_dll.c |
31 | $(CXX) $(CFLAGS) PtsModule.c wienvme_dll.c $(SHLIB) -o pts |
24 | $(CXX) $(CFLAGS) PtsModule.c wienvme_dll.c $(SHLIB) -o pts |
Line 38... | Line 31... | ||
38 | 31 | ||
39 | .cpp.o: |
32 | .cpp.o: |
40 | $(CXX) -c $(CFLAGS) $< |
33 | $(CXX) -c $(CFLAGS) $< |
41 | ar r $(VMELIB) $@ |
34 | ar r $(VMELIB) $@ |
42 | 35 | ||
43 | .C.o: |
36 | .C.o: |
- | 37 | $(CXX) -c $(CFLAGS) $< |
|
- | 38 | ar r $(VMELIB) $@ |
|
- | 39 | ||
- | 40 | ||
- | 41 | .cc.o: |
|
44 | $(CXX) -c $(CFLAGS) $< |
42 | $(CXX) -c $(CFLAGS) $< |
45 | ar r $(VMELIB) $@ |
43 | ar r $(VMELIB) $@ |
46 | - | ||
47 | 44 | ||
48 | .cc.o: |
- | |
49 | $(CXX) -c $(CFLAGS) $< |
- | |
50 | ar r $(VMELIB) $@ |
- | |
51 | - | ||
52 | .c.o: |
45 | .c.o: |
53 | $(CXX) -c $(CFLAGS) $< |
46 | $(CXX) -c $(CFLAGS) $< |
54 | ar r $(VMELIB) $@ |
47 | 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 | 48 | ||
64 | 49 | ||
65 | $(TARGET): $(FILES) $(OBJ_FILES) |
- | |
66 | $(CXX) -DMAIN $(CFLAGS) $(FILES) $(OBJ_FILES) $(SHLIB) -o $(TARGET) |
- | |
67 | 50 | ||
68 | 51 | ||
69 | 52 | ||
70 | clean: |
53 | clean: |
71 | rm |
54 | rm pts |
72 | 55 | ||
73 | 56 | ||
74 | tgz: |
57 | tgz: |
75 | tar czvf |
58 | tar czvf pts.tgz Makefile *.c *.h *.C *.cc *.hh |