source: drsdaq/VME/struck/sis1100/V2.02/examples/irqs/vme_front_irq/Makefile~@ 23

Last change on this file since 23 was 22, checked in by ogrimm, 16 years ago
First commit of drsdaq program
  • Property svn:executable set to *
File size: 985 bytes
Line 
1 CC := gcc
2WFLAGS := -Wstrict-prototypes -Wmissing-prototypes \
3 -Wmissing-declarations-Wimplicit -Wreturn-type -Wunused \
4 -Wcomment -Wformat
5# -Wuninitialized -Werror
6DRIVER_PATH := ../../V1.0
7CPPFLAGS := -I$(DRIVER_PATH)/linux-gnu -I$(DRIVER_PATH)/sis3100_calls
8
9
10CFLAGS := -g -ansi $(WFLAGS) -L$(DRIVER_PATH)/sis3100_calls
11
12srcdir := .
13cfiles := $(wildcard $(srcdir)/*.c)
14EXEC := $(cfiles:.c=)
15
16.PHONY: all
17all: $(EXEC)
18
19all_irqs: all_irqs.c $(DRIVER_PATH)/sis3100_calls/lib_sis3100.a
20 $(CC) $(CPPFLAGS) $(CFLAGS) -o $@ $< -l_sis3100
21
22
23
24
25
26
27
28clean:
29 rm -f *.o core $(EXEC)
30
31depend:
32 cp Makefile Makefile.bak
33 sed -e '/^# DO NOT DELETE THIS LINE/,$$d' < Makefile.bak > Makefile
34 echo '# DO NOT DELETE THIS LINE' >> Makefile
35 echo ' ' >> Makefile
36 for i in $(cfiles) ; do \
37 echo checking $$i ; \
38 $(CC) -M $(CPPFLAGS) $(srcdir)/$$i >> Makefile ; \
39 done
40# DO NOT DELETE THIS LINE
41
42
43
44
45
46
Note: See TracBrowser for help on using the repository browser.