source: drsdaq/VME/struck/sis1100/V2.02/sis5100_calls/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: 851 bytes
Line 
1 CC := gcc
2WFLAGS := -Wstrict-prototypes -Wmissing-prototypes \
3 -Wmissing-declarations-Wimplicit -Wreturn-type -Wunused \
4 -Wcomment -Wformat
5# -Wuninitialized -Werror
6CPPFLAGS := -I..
7CFLAGS := -g -ansi $(WFLAGS)
8
9srcdir := .
10
11lib_sis5100.a: sis5100_vme_calls.o sharc_utils.o
12 ar cr $@ $^
13
14sis5100_vme_calls.o: sis5100_vme_calls.c
15 $(CC) $(CPPFLAGS) $(CFLAGS) -c $^
16
17
18
19
20sharc_utils.o: sharc_utils.c
21 $(CC) $(CPPFLAGS) $(CFLAGS) -c $^
22
23clean:
24 rm -f *.o
25
26depend:
27 cp Makefile Makefile.bak
28 sed -e '/^# DO NOT DELETE THIS LINE/,$$d' < Makefile.bak > Makefile
29 echo '# DO NOT DELETE THIS LINE' >> Makefile
30 echo ' ' >> Makefile
31 for i in $(cfiles) ; do \
32 echo checking $$i ; \
33 $(CC) -M $(CPPFLAGS) $(srcdir)/$$i >> Makefile ; \
34 done
35# DO NOT DELETE THIS LINE
36
37
38
39
40
41
Note: See TracBrowser for help on using the repository browser.