1 | CC := gcc
|
---|
2 | WFLAGS := -Wstrict-prototypes -Wmissing-prototypes \
|
---|
3 | -Wmissing-declarations-Wimplicit -Wreturn-type -Wunused \
|
---|
4 | -Wcomment -Wformat
|
---|
5 | # -Wuninitialized -Werror
|
---|
6 |
|
---|
7 | DRIVER_PATH := ../../..
|
---|
8 | CPPFLAGS := -I$(DRIVER_PATH) -I$(DRIVER_PATH)/sis3100_calls
|
---|
9 | CFLAGS := -g -ansi $(WFLAGS) -L$(DRIVER_PATH)/sis3100_calls
|
---|
10 |
|
---|
11 |
|
---|
12 |
|
---|
13 | srcdir := .
|
---|
14 | cfiles := $(wildcard $(srcdir)/*.c)
|
---|
15 | EXEC := $(cfiles:.c=)
|
---|
16 |
|
---|
17 | .PHONY: all
|
---|
18 | all: $(EXEC)
|
---|
19 |
|
---|
20 |
|
---|
21 |
|
---|
22 | sis330x_register_test1: sis330x_register_test1.c $(DRIVER_PATH)/sis3100_calls/lib_sis3100.a
|
---|
23 | $(CC) $(CPPFLAGS) $(CFLAGS) -o $@ $< -l_sis3100
|
---|
24 |
|
---|
25 | clean:
|
---|
26 | rm -f *.o core $(EXEC)
|
---|
27 |
|
---|
28 | depend:
|
---|
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 | sis330x_register_test1.o: sis330x_register_test1.c /usr/include/stdio.h \
|
---|
40 | /usr/include/features.h /usr/include/sys/cdefs.h \
|
---|
41 | /usr/include/gnu/stubs.h \
|
---|
42 | /usr/lib/gcc-lib/i586-suse-linux/3.3.3/include/stddef.h \
|
---|
43 | /usr/include/bits/types.h /usr/include/bits/wordsize.h \
|
---|
44 | /usr/include/bits/typesizes.h /usr/include/libio.h \
|
---|
45 | /usr/include/_G_config.h /usr/include/wchar.h /usr/include/bits/wchar.h \
|
---|
46 | /usr/include/gconv.h \
|
---|
47 | /usr/lib/gcc-lib/i586-suse-linux/3.3.3/include/stdarg.h \
|
---|
48 | /usr/include/bits/stdio_lim.h /usr/include/bits/sys_errlist.h \
|
---|
49 | /usr/include/errno.h /usr/include/bits/errno.h \
|
---|
50 | /usr/include/linux/errno.h /usr/include/asm/errno.h \
|
---|
51 | /usr/include/asm-generic/errno.h /usr/include/asm-generic/errno-base.h \
|
---|
52 | /usr/include/string.h /usr/include/sys/types.h /usr/include/time.h \
|
---|
53 | /usr/include/endian.h /usr/include/bits/endian.h \
|
---|
54 | /usr/include/sys/select.h /usr/include/bits/select.h \
|
---|
55 | /usr/include/bits/sigset.h /usr/include/bits/time.h \
|
---|
56 | /usr/include/sys/sysmacros.h /usr/include/bits/pthreadtypes.h \
|
---|
57 | /usr/include/bits/sched.h /usr/include/fcntl.h \
|
---|
58 | /usr/include/bits/fcntl.h /usr/include/sys/mman.h \
|
---|
59 | /usr/include/bits/mman.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 | ../header/sis3300.h
|
---|