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/usr/local/lkmx/sys
|
---|
7 | CPPFLAGS := -I..
|
---|
8 | CFLAGS := -g -ansi $(WFLAGS)
|
---|
9 |
|
---|
10 | srcdir := .
|
---|
11 | cfiles := $(wildcard $(srcdir)/*.c)
|
---|
12 | EXEC := $(cfiles:.c=)
|
---|
13 |
|
---|
14 | .PHONY: all
|
---|
15 | all: $(EXEC)
|
---|
16 |
|
---|
17 |
|
---|
18 |
|
---|
19 | sis3100_load_sharc: sis3100_load_sharc.c ../../V2.02/sis3100_calls/sis3100_vme_calls.c
|
---|
20 | $(CC) $(CPPFLAGS) $(CFLAGS) -o $@ $^
|
---|
21 |
|
---|
22 | clean:
|
---|
23 | rm -f *.o core $(EXEC)
|
---|
24 |
|
---|
25 | depend:
|
---|
26 | cp Makefile Makefile.bak
|
---|
27 | sed -e '/^# DO NOT DELETE THIS LINE/,$$d' < Makefile.bak > Makefile
|
---|
28 | echo '# DO NOT DELETE THIS LINE' >> Makefile
|
---|
29 | echo ' ' >> Makefile
|
---|
30 | for i in $(cfiles) ; do \
|
---|
31 | echo checking $$i ; \
|
---|
32 | $(CC) -M $(CPPFLAGS) $(srcdir)/$$i >> Makefile ; \
|
---|
33 | done
|
---|
34 | # DO NOT DELETE THIS LINE
|
---|
35 |
|
---|
36 | sharc_read.o: sharc_read.c /usr/include/stdio.h /usr/include/features.h \
|
---|
37 | /usr/include/sys/cdefs.h /usr/include/gnu/stubs.h \
|
---|
38 | /usr/lib/gcc-lib/i586-suse-linux/3.3.3/include/stddef.h \
|
---|
39 | /usr/include/bits/types.h /usr/include/bits/wordsize.h \
|
---|
40 | /usr/include/bits/typesizes.h /usr/include/libio.h \
|
---|
41 | /usr/include/_G_config.h /usr/include/wchar.h /usr/include/bits/wchar.h \
|
---|
42 | /usr/include/gconv.h \
|
---|
43 | /usr/lib/gcc-lib/i586-suse-linux/3.3.3/include/stdarg.h \
|
---|
44 | /usr/include/bits/stdio_lim.h /usr/include/bits/sys_errlist.h \
|
---|
45 | /usr/include/errno.h /usr/include/bits/errno.h \
|
---|
46 | /usr/include/linux/errno.h /usr/include/asm/errno.h \
|
---|
47 | /usr/include/asm-generic/errno.h /usr/include/asm-generic/errno-base.h \
|
---|
48 | /usr/include/string.h /usr/include/xlocale.h /usr/include/sys/types.h \
|
---|
49 | /usr/include/time.h /usr/include/endian.h /usr/include/bits/endian.h \
|
---|
50 | /usr/include/sys/select.h /usr/include/bits/select.h \
|
---|
51 | /usr/include/bits/sigset.h /usr/include/bits/time.h \
|
---|
52 | /usr/include/sys/sysmacros.h /usr/include/bits/pthreadtypes.h \
|
---|
53 | /usr/include/bits/sched.h /usr/include/unistd.h \
|
---|
54 | /usr/include/bits/posix_opt.h /usr/include/bits/environments.h \
|
---|
55 | /usr/include/bits/confname.h /usr/include/getopt.h \
|
---|
56 | /usr/include/stdlib.h /usr/include/bits/waitflags.h \
|
---|
57 | /usr/include/bits/waitstatus.h /usr/include/alloca.h \
|
---|
58 | /usr/include/fcntl.h /usr/include/bits/fcntl.h /usr/include/sys/stat.h \
|
---|
59 | /usr/include/bits/stat.h /usr/include/sys/ioctl.h \
|
---|
60 | /usr/include/bits/ioctls.h /usr/include/asm/ioctls.h \
|
---|
61 | /usr/include/asm/ioctl.h /usr/include/bits/ioctl-types.h \
|
---|
62 | /usr/include/sys/ttydefaults.h ../../dev/pci/sis1100_var.h \
|
---|
63 | /usr/include/linux/ioctl.h ../../sis3100_calls/sis3100_vme_calls.h
|
---|
64 | sharc_write.o: sharc_write.c /usr/include/stdio.h /usr/include/features.h \
|
---|
65 | /usr/include/sys/cdefs.h /usr/include/gnu/stubs.h \
|
---|
66 | /usr/lib/gcc-lib/i586-suse-linux/3.3.3/include/stddef.h \
|
---|
67 | /usr/include/bits/types.h /usr/include/bits/wordsize.h \
|
---|
68 | /usr/include/bits/typesizes.h /usr/include/libio.h \
|
---|
69 | /usr/include/_G_config.h /usr/include/wchar.h /usr/include/bits/wchar.h \
|
---|
70 | /usr/include/gconv.h \
|
---|
71 | /usr/lib/gcc-lib/i586-suse-linux/3.3.3/include/stdarg.h \
|
---|
72 | /usr/include/bits/stdio_lim.h /usr/include/bits/sys_errlist.h \
|
---|
73 | /usr/include/errno.h /usr/include/bits/errno.h \
|
---|
74 | /usr/include/linux/errno.h /usr/include/asm/errno.h \
|
---|
75 | /usr/include/asm-generic/errno.h /usr/include/asm-generic/errno-base.h \
|
---|
76 | /usr/include/string.h /usr/include/xlocale.h /usr/include/sys/types.h \
|
---|
77 | /usr/include/time.h /usr/include/endian.h /usr/include/bits/endian.h \
|
---|
78 | /usr/include/sys/select.h /usr/include/bits/select.h \
|
---|
79 | /usr/include/bits/sigset.h /usr/include/bits/time.h \
|
---|
80 | /usr/include/sys/sysmacros.h /usr/include/bits/pthreadtypes.h \
|
---|
81 | /usr/include/bits/sched.h /usr/include/unistd.h \
|
---|
82 | /usr/include/bits/posix_opt.h /usr/include/bits/environments.h \
|
---|
83 | /usr/include/bits/confname.h /usr/include/getopt.h /usr/include/fcntl.h \
|
---|
84 | /usr/include/bits/fcntl.h /usr/include/sys/stat.h \
|
---|
85 | /usr/include/bits/stat.h /usr/include/sys/mman.h \
|
---|
86 | /usr/include/bits/mman.h /usr/include/sys/ioctl.h \
|
---|
87 | /usr/include/bits/ioctls.h /usr/include/asm/ioctls.h \
|
---|
88 | /usr/include/asm/ioctl.h /usr/include/bits/ioctl-types.h \
|
---|
89 | /usr/include/sys/ttydefaults.h ../../dev/pci/sis1100_var.h \
|
---|
90 | /usr/include/linux/ioctl.h ../../sis3100_calls/sis3100_vme_calls.h
|
---|
91 | sis3100_load_sharc.o: sis3100_load_sharc.c /usr/include/stdio.h \
|
---|
92 | /usr/include/features.h /usr/include/sys/cdefs.h \
|
---|
93 | /usr/include/gnu/stubs.h \
|
---|
94 | /usr/lib/gcc-lib/i586-suse-linux/3.3.3/include/stddef.h \
|
---|
95 | /usr/include/bits/types.h /usr/include/bits/wordsize.h \
|
---|
96 | /usr/include/bits/typesizes.h /usr/include/libio.h \
|
---|
97 | /usr/include/_G_config.h /usr/include/wchar.h /usr/include/bits/wchar.h \
|
---|
98 | /usr/include/gconv.h \
|
---|
99 | /usr/lib/gcc-lib/i586-suse-linux/3.3.3/include/stdarg.h \
|
---|
100 | /usr/include/bits/stdio_lim.h /usr/include/bits/sys_errlist.h \
|
---|
101 | /usr/include/errno.h /usr/include/bits/errno.h \
|
---|
102 | /usr/include/linux/errno.h /usr/include/asm/errno.h \
|
---|
103 | /usr/include/asm-generic/errno.h /usr/include/asm-generic/errno-base.h \
|
---|
104 | /usr/include/string.h /usr/include/sys/types.h /usr/include/time.h \
|
---|
105 | /usr/include/endian.h /usr/include/bits/endian.h \
|
---|
106 | /usr/include/sys/select.h /usr/include/bits/select.h \
|
---|
107 | /usr/include/bits/sigset.h /usr/include/bits/time.h \
|
---|
108 | /usr/include/sys/sysmacros.h /usr/include/bits/pthreadtypes.h \
|
---|
109 | /usr/include/bits/sched.h /usr/include/fcntl.h \
|
---|
110 | /usr/include/bits/fcntl.h /usr/include/sys/mman.h \
|
---|
111 | /usr/include/bits/mman.h /usr/include/sys/ioctl.h \
|
---|
112 | /usr/include/bits/ioctls.h /usr/include/asm/ioctls.h \
|
---|
113 | /usr/include/asm/ioctl.h /usr/include/bits/ioctl-types.h \
|
---|
114 | /usr/include/sys/ttydefaults.h ../../../V2.02/dev/pci/sis1100_var.h \
|
---|
115 | /usr/include/linux/ioctl.h \
|
---|
116 | ../../../V2.02/sis3100_calls/sis3100_vme_calls.h
|
---|
117 | sis3100_sdram_eeprom.o: sis3100_sdram_eeprom.c /usr/include/stdio.h \
|
---|
118 | /usr/include/features.h /usr/include/sys/cdefs.h \
|
---|
119 | /usr/include/gnu/stubs.h \
|
---|
120 | /usr/lib/gcc-lib/i586-suse-linux/3.3.3/include/stddef.h \
|
---|
121 | /usr/include/bits/types.h /usr/include/bits/wordsize.h \
|
---|
122 | /usr/include/bits/typesizes.h /usr/include/libio.h \
|
---|
123 | /usr/include/_G_config.h /usr/include/wchar.h /usr/include/bits/wchar.h \
|
---|
124 | /usr/include/gconv.h \
|
---|
125 | /usr/lib/gcc-lib/i586-suse-linux/3.3.3/include/stdarg.h \
|
---|
126 | /usr/include/bits/stdio_lim.h /usr/include/bits/sys_errlist.h \
|
---|
127 | /usr/include/errno.h /usr/include/bits/errno.h \
|
---|
128 | /usr/include/linux/errno.h /usr/include/asm/errno.h \
|
---|
129 | /usr/include/asm-generic/errno.h /usr/include/asm-generic/errno-base.h \
|
---|
130 | /usr/include/string.h /usr/include/sys/types.h /usr/include/time.h \
|
---|
131 | /usr/include/endian.h /usr/include/bits/endian.h \
|
---|
132 | /usr/include/sys/select.h /usr/include/bits/select.h \
|
---|
133 | /usr/include/bits/sigset.h /usr/include/bits/time.h \
|
---|
134 | /usr/include/sys/sysmacros.h /usr/include/bits/pthreadtypes.h \
|
---|
135 | /usr/include/bits/sched.h /usr/include/fcntl.h \
|
---|
136 | /usr/include/bits/fcntl.h /usr/include/sys/mman.h \
|
---|
137 | /usr/include/bits/mman.h /usr/include/sys/ioctl.h \
|
---|
138 | /usr/include/bits/ioctls.h /usr/include/asm/ioctls.h \
|
---|
139 | /usr/include/asm/ioctl.h /usr/include/bits/ioctl-types.h \
|
---|
140 | /usr/include/sys/ttydefaults.h ../../dev/pci/sis1100_var.h \
|
---|
141 | /usr/include/linux/ioctl.h ../../sis3100_calls/sis3100_vme_calls.h
|
---|