source: drsdaq/VME/struck/sis1100/V2.02/applications/sis330x/330x_register_test/Makefile~@ 22

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