source: drsdaq/VME/struck/sis1100/V2.04/examples/sis3100_control/#Makefile#@ 23

Last change on this file since 23 was 22, checked in by ogrimm, 16 years ago
First commit of drsdaq program
File size: 1.2 KB
Line 
1 CC := gcc
2WFLAGS := -Wstrict-prototypes -Wmissing-prototypes \
3 -Wmissing-declarations -Wimplicit -Wreturn-type -Wunused \
4 -Wcomment -Wformat
5# -Wuninitialized -Werror
6DRIVER_PATH := ../..
7CPPFLAGS := -I$(DRIVER_PATH) -I$(DRIVER_PATH)/sis3100_calls
8
9
10CFLAGS := -g -ansi $(WFLAGS) -L$(DRIVER_PATH)/sis3100_calls
11
12srcdir := .
13cfiles := $(wildcard $(srcdir)/*.c)
14EXEC := $(cfiles:.c=)
15
16
17.PHONY: all
18all: $(EXEC)
19
20
21sis3100_control_read: sis3100_control_read.c $(DRIVER_PATH)/sis3100_calls/lib_sis3100.a
22 $(CC) $(CPPFLAGS) $(CFLAGS) -o $@ $< -l_sis3100
23
24
25sis3100_control_write: sis3100_control_write.c $(DRIVER_PATH)/sis3100_calls/lib_sis3100.a
26 $(CC) $(CPPFLAGS) $(CFLAGS) -o $@ $< -l_sis3100
27
28
29vme_sys_reset: vme_sys_reset.c $(DRIVER_PATH)/sis3100_calls/lib_sis3100.a
30 $(CC) $(CPPFLAGS) $(CFLAGS) -o $@ $< -l_sis3100
31
32
33clean:
34 rm -f *.o core $(EXEC)
35
36depend:
37 cp Makefile Makefile.bak
38 sed -e '/^# DO NOT DELETE THIS LINE/,$$d' < Makefile.bak > Makefile
39 echo '# DO NOT DELETE THIS LINE' >> Makefile
40 echo ' ' >> Makefile
41 for i in $(cfiles) ; do \
42 echo checking $$i ; \
43 $(CC) -M $(CPPFLAGS) $(srcdir)/$$i >> Makefile ; \
44 done
45# DO NOT DELETE THIS LINE
46
47
48
49
50
51
52
53
Note: See TracBrowser for help on using the repository browser.