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
|
---|
2 | WFLAGS := -Wstrict-prototypes -Wmissing-prototypes \
|
---|
3 | -Wmissing-declarations-Wimplicit -Wreturn-type -Wunused \
|
---|
4 | -Wcomment -Wformat
|
---|
5 | # -Wuninitialized -Werror
|
---|
6 | #CPPFLAGS := -I/usr/local/lkmx/sys
|
---|
7 | CPPFLAGS := -I..
|
---|
8 | CFLAGS := -g -ansi $(WFLAGS)
|
---|
9 |
|
---|
10 | srcdir := .
|
---|
11 | cfiles := $(wildcard $(srcdir)/*.c)
|
---|
12 | EXEC := $(cfiles:.c=)
|
---|
13 |
|
---|
14 | .PHONY: all
|
---|
15 | all: $(EXEC)
|
---|
16 |
|
---|
17 | sharc_read: sharc_read.c ../sis3100_calls/sis3100_vme_calls.c
|
---|
18 | $(CC) $(CPPFLAGS) $(CFLAGS) -o $@ $^
|
---|
19 |
|
---|
20 | sharc_write: sharc_write.c ../sis3100_calls/sis3100_vme_calls.c
|
---|
21 | $(CC) $(CPPFLAGS) $(CFLAGS) -o $@ $^
|
---|
22 |
|
---|
23 |
|
---|
24 | sis3100_load_sharc: sis3100_load_sharc.c ../sis3100_calls/sis3100_vme_calls.c
|
---|
25 | $(CC) $(CPPFLAGS) $(CFLAGS) -o $@ $^
|
---|
26 |
|
---|
27 | sis3100_sdram_eeprom: sis3100_sdram_eeprom.c ../sis3100_calls/sis3100_vme_calls.c
|
---|
28 | $(CC) $(CPPFLAGS) $(CFLAGS) -o $@ $^
|
---|
29 |
|
---|
30 | clean:
|
---|
31 | rm -f *.o core $(EXEC)
|
---|
32 |
|
---|
33 | depend:
|
---|
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.