Last change
on this file since 23 was 22, checked in by ogrimm, 16 years ago |
First commit of drsdaq program
|
File size:
1.4 KB
|
Line | |
---|
1 | # $ZEL: Makefile.in,v 1.2 2002/08/19 10:54:35 wuestner Exp $
|
---|
2 |
|
---|
3 | srcdir = @srcdir@
|
---|
4 | VPATH = @srcdir@
|
---|
5 | @SET_MAKE@
|
---|
6 |
|
---|
7 | CC := gcc
|
---|
8 | WFLAGS := -Wstrict-prototypes -Wmissing-prototypes \
|
---|
9 | -Wmissing-declarations-Wimplicit -Wreturn-type -Wunused \
|
---|
10 | -Wcomment -Wformat -Wuninitialized
|
---|
11 | # -Werror
|
---|
12 |
|
---|
13 | DRIVERBASE := @driverbase@
|
---|
14 | DRIVERINCLUDE:= $(DRIVERBASE)/common
|
---|
15 | CPPFLAGS := -I$(DRIVERINCLUDE) -I.
|
---|
16 | CFLAGS := -O3 -ansi $(WFLAGS)
|
---|
17 |
|
---|
18 | cfiles := $(notdir $(wildcard $(srcdir)/*.c))
|
---|
19 | #cfiles := linkirqtest.c linkirqtest1.c frontirqtest.c test_mapsize.c \
|
---|
20 | frontin_3100.c frontin_1100.c frontout_3100.c frontout_1100.c \
|
---|
21 | maptest.c find_caen.c
|
---|
22 | EXEC := $(cfiles:.c=)
|
---|
23 |
|
---|
24 | .PHONY: all
|
---|
25 | all: $(EXEC)
|
---|
26 |
|
---|
27 | clean:
|
---|
28 | rm -f *.o core $(EXEC)
|
---|
29 |
|
---|
30 | realclean: clean
|
---|
31 | cp Makefile Makefile.bak
|
---|
32 | sed -e '/^# DO NOT DELETE THIS LINE/,$$d' < Makefile.bak > Makefile
|
---|
33 | echo '# DO NOT DELETE THIS LINE' >> Makefile
|
---|
34 | echo ' ' >> Makefile
|
---|
35 | rm Makefile.bak
|
---|
36 |
|
---|
37 | distclean: clean
|
---|
38 | rm -f *.bak *.bck Makefile
|
---|
39 | rm -f config.status configure config.cache config.log
|
---|
40 |
|
---|
41 | depend:
|
---|
42 | cp Makefile Makefile.bak
|
---|
43 | sed -e '/^# DO NOT DELETE THIS LINE/,$$d' < Makefile.bak > Makefile
|
---|
44 | echo '# DO NOT DELETE THIS LINE' >> Makefile
|
---|
45 | echo ' ' >> Makefile
|
---|
46 | for i in $(cfiles) ; do \
|
---|
47 | echo checking $$i ; \
|
---|
48 | $(CC) -M $(CPPFLAGS) $(srcdir)/$$i >> Makefile ; \
|
---|
49 | done
|
---|
50 | # DO NOT DELETE THIS LINE
|
---|
51 |
|
---|
Note:
See
TracBrowser
for help on using the repository browser.