source: drsdaq/VME/struck/sis1100/V2.02/examples/sdram_eeprom/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: 3.9 KB
Line 
1 CC := gcc
2WFLAGS := -Wstrict-prototypes -Wmissing-prototypes \
3 -Wmissing-declarations-Wimplicit -Wreturn-type -Wunused \
4 -Wcomment -Wformat
5# -Wuninitialized -Werror
6DRIVER_PATH := ../..
7CPPFLAGS := -I$(DRIVER_PATH) -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
19check_size: check_size.c $(DRIVER_PATH)/sis3100_calls/lib_sis3100.a
20 $(CC) $(CPPFLAGS) $(CFLAGS) -o $@ $< -l_sis3100
21
22sis3100_sdram_eeprom: sis3100_sdram_eeprom.c $(DRIVER_PATH)/sis3100_calls/lib_sis3100.a
23 $(CC) $(CPPFLAGS) $(CFLAGS) -o $@ $< -l_sis3100
24
25
26
27clean:
28 rm -f *.o core $(EXEC)
29
30depend:
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 for i in $(cfiles) ; do \
36 echo checking $$i ; \
37 $(CC) -M $(CPPFLAGS) $(srcdir)/$$i >> Makefile ; \
38 done
39# DO NOT DELETE THIS LINE
40
41check_size.o: check_size.c /usr/include/stdio.h /usr/include/features.h \
42 /usr/include/sys/cdefs.h /usr/include/gnu/stubs.h \
43 /usr/lib/gcc-lib/i586-suse-linux/3.3.3/include/stddef.h \
44 /usr/include/bits/types.h /usr/include/bits/wordsize.h \
45 /usr/include/bits/typesizes.h /usr/include/libio.h \
46 /usr/include/_G_config.h /usr/include/wchar.h /usr/include/bits/wchar.h \
47 /usr/include/gconv.h \
48 /usr/lib/gcc-lib/i586-suse-linux/3.3.3/include/stdarg.h \
49 /usr/include/bits/stdio_lim.h /usr/include/bits/sys_errlist.h \
50 /usr/include/errno.h /usr/include/bits/errno.h \
51 /usr/include/linux/errno.h /usr/include/asm/errno.h \
52 /usr/include/asm-generic/errno.h /usr/include/asm-generic/errno-base.h \
53 /usr/include/string.h /usr/include/sys/types.h /usr/include/time.h \
54 /usr/include/endian.h /usr/include/bits/endian.h \
55 /usr/include/sys/select.h /usr/include/bits/select.h \
56 /usr/include/bits/sigset.h /usr/include/bits/time.h \
57 /usr/include/sys/sysmacros.h /usr/include/bits/pthreadtypes.h \
58 /usr/include/bits/sched.h /usr/include/fcntl.h \
59 /usr/include/bits/fcntl.h /usr/include/sys/mman.h \
60 /usr/include/bits/mman.h /usr/include/sys/ioctl.h \
61 /usr/include/bits/ioctls.h /usr/include/asm/ioctls.h \
62 /usr/include/asm/ioctl.h /usr/include/bits/ioctl-types.h \
63 /usr/include/sys/ttydefaults.h ../../dev/pci/sis1100_var.h \
64 /usr/include/linux/ioctl.h ../../sis3100_calls/sis3100_vme_calls.h
65sis3100_sdram_eeprom.o: sis3100_sdram_eeprom.c /usr/include/stdio.h \
66 /usr/include/features.h /usr/include/sys/cdefs.h \
67 /usr/include/gnu/stubs.h \
68 /usr/lib/gcc-lib/i586-suse-linux/3.3.3/include/stddef.h \
69 /usr/include/bits/types.h /usr/include/bits/wordsize.h \
70 /usr/include/bits/typesizes.h /usr/include/libio.h \
71 /usr/include/_G_config.h /usr/include/wchar.h /usr/include/bits/wchar.h \
72 /usr/include/gconv.h \
73 /usr/lib/gcc-lib/i586-suse-linux/3.3.3/include/stdarg.h \
74 /usr/include/bits/stdio_lim.h /usr/include/bits/sys_errlist.h \
75 /usr/include/errno.h /usr/include/bits/errno.h \
76 /usr/include/linux/errno.h /usr/include/asm/errno.h \
77 /usr/include/asm-generic/errno.h /usr/include/asm-generic/errno-base.h \
78 /usr/include/string.h /usr/include/sys/types.h /usr/include/time.h \
79 /usr/include/endian.h /usr/include/bits/endian.h \
80 /usr/include/sys/select.h /usr/include/bits/select.h \
81 /usr/include/bits/sigset.h /usr/include/bits/time.h \
82 /usr/include/sys/sysmacros.h /usr/include/bits/pthreadtypes.h \
83 /usr/include/bits/sched.h /usr/include/fcntl.h \
84 /usr/include/bits/fcntl.h /usr/include/sys/mman.h \
85 /usr/include/bits/mman.h /usr/include/sys/ioctl.h \
86 /usr/include/bits/ioctls.h /usr/include/asm/ioctls.h \
87 /usr/include/asm/ioctl.h /usr/include/bits/ioctl-types.h \
88 /usr/include/sys/ttydefaults.h ../../dev/pci/sis1100_var.h \
89 /usr/include/linux/ioctl.h ../../sis3100_calls/sis3100_vme_calls.h
Note: See TracBrowser for help on using the repository browser.