Last change
on this file since 23 was 22, checked in by ogrimm, 16 years ago |
First commit of drsdaq program
|
File size:
843 bytes
|
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..
|
---|
7 | CFLAGS := -g -ansi $(WFLAGS)
|
---|
8 |
|
---|
9 | srcdir := .
|
---|
10 |
|
---|
11 | lib_sis5100.a: sis5100_camac_calls.o
|
---|
12 | ar cr $@ $^
|
---|
13 |
|
---|
14 | sis5100_camac_calls.o: sis5100_camac_calls.c
|
---|
15 | $(CC) $(CPPFLAGS) $(CFLAGS) -c $^
|
---|
16 |
|
---|
17 |
|
---|
18 |
|
---|
19 |
|
---|
20 | sharc_utils.o: sharc_utils.c
|
---|
21 | $(CC) $(CPPFLAGS) $(CFLAGS) -c $^
|
---|
22 |
|
---|
23 | clean:
|
---|
24 | rm -f *.o
|
---|
25 |
|
---|
26 | depend:
|
---|
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.