source: drsdaq/VME/struck/sis1100/sis1100/examples/sharc_test/Makefile~@ 22

Last change on this file since 22 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
6#CPPFLAGS := -I/usr/local/lkmx/sys
7CPPFLAGS := -I..
8CFLAGS := -g -ansi $(WFLAGS)
9
10srcdir := .
11cfiles := $(wildcard $(srcdir)/*.c)
12EXEC := $(cfiles:.c=)
13
14.PHONY: all
15all: $(EXEC)
16
17sharc_read: sharc_read.c ../sis3100_calls/sis3100_vme_calls.c
18 $(CC) $(CPPFLAGS) $(CFLAGS) -o $@ $^
19
20sharc_write: sharc_write.c ../sis3100_calls/sis3100_vme_calls.c
21 $(CC) $(CPPFLAGS) $(CFLAGS) -o $@ $^
22
23
24sis3100_load_sharc: sis3100_load_sharc.c ../sis3100_calls/sis3100_vme_calls.c
25 $(CC) $(CPPFLAGS) $(CFLAGS) -o $@ $^
26
27sis3100_sdram_eeprom: sis3100_sdram_eeprom.c ../sis3100_calls/sis3100_vme_calls.c
28 $(CC) $(CPPFLAGS) $(CFLAGS) -o $@ $^
29
30clean:
31 rm -f *.o core $(EXEC)
32
33depend:
34 cp Makefile Makefile.bak
35 sed -e '/^# DO NOT DELETE THIS LINE/,$$d' < Makefile.bak > Makefile
36 echo '# DO NOT DELETE THIS LINE' >> Makefile
37 echo ' ' >> Makefile
38 for i in $(cfiles) ; do \
39 echo checking $$i ; \
40 $(CC) -M $(CPPFLAGS) $(srcdir)/$$i >> Makefile ; \
41 done
42# DO NOT DELETE THIS LINE
43
44
45
46
47
Note: See TracBrowser for help on using the repository browser.