summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorPeter Osterlund <petero2@telia.com>2002-07-04 00:40:37 +0200
committerPeter Osterlund <petero2@telia.com>2006-04-09 04:00:49 +0200
commit0d8042d8b68e259457de14a0c4365459b1de7d30 (patch)
treea9a0e8a6fcaa138d8cb6e1e77b7f9b7036b6f4e8 /Makefile
Added source code for the synaptics touchpad XFree86
driver.
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile63
1 files changed, 63 insertions, 0 deletions
diff --git a/Makefile b/Makefile
new file mode 100644
index 0000000..33cab24
--- /dev/null
+++ b/Makefile
@@ -0,0 +1,63 @@
+TOP = /usr/src/packages/BUILD/xc
+XTOP = $(TOP)
+BUILDINCROOT = $(TOP)/exports
+EXTINCSRC = $(XTOP)/include/extensions
+INCLUDESRC = $(BUILDINCROOT)/include
+XINCLUDESRC = $(INCLUDESRC)/X11
+SERVERSRC = $(XTOP)/programs/Xserver
+TOP_X_INCLUDES = -I$(TOP)/exports/include
+TOP_INCLUDES = -I$(TOP) $(TOP_X_INCLUDES)
+
+
+XF86SRC = $(SERVERSRC)/hw/xfree86
+XF86COMSRC = $(XF86SRC)/common
+XF86OSSRC = $(XF86SRC)/os-support
+
+
+INCLUDES = -I. -I$(XF86COMSRC) -I$(SERVERSRC)/hw/xfree86/loader -I$(XF86OSSRC) -I$(SERVERSRC)/mi -I$(SERVERSRC)/include -I$(XINCLUDESRC) -I$(EXTINCSRC)
+
+ALLINCLUDES = $(INCLUDES) $(TOP_INCLUDES)
+
+MODULE_DEFINES = -DIN_MODULE -DXFree86Module
+PROTO_DEFINES = -DFUNCPROTO=15 -DNARROWPROTO
+
+STD_DEFINES = -Dlinux -D__i386__ -D_POSIX_C_SOURCE=199309L -D_POSIX_SOURCE -D_XOPEN_SOURCE -D_BSD_SOURCE -D_SVID_SOURCE -D_GNU_SOURCE -DSHAPE -DXINPUT -DXKB -DLBX -DXAPPGROUP -DXCSECURITY -DTOGCUP -DDPMSExtension -DPIXPRIV -DPANORAMIX -DRENDER -DGCCUSESGAS -DAVOID_GLYPHBLT -DPIXPRIV -DSINGLEDEPTH -DXFreeXDGA -DXvExtension -DXFree86LOADER -DXFree86Server -DXF86VIDMODE -DSMART_SCHEDULE -DBUILDDEBUG -DX_BYTE_ORDER=X_LITTLE_ENDIAN -DNDEBUG
+ALLDEFINES = $(ALLINCLUDES) $(STD_DEFINES) $(PROTO_DEFINES) $(MODULE_DEFINES)
+
+CCOPTIONS = -ansi -pedantic -Wall -Wpointer-arith
+CDEBUGFLAGS = -O2
+CFLAGS = $(CDEBUGFLAGS) $(CCOPTIONS) $(ALLDEFINES)
+
+CC = gcc
+CCOPTIONS = -ansi -pedantic -Wall -Wpointer-arith
+
+LDCOMBINEFLAGS = -r
+
+SRCS = synaptics.c ps2comm.c
+OBJS = synaptics.o ps2comm.o
+
+DRIVER = synaptics
+
+.c.o:
+ $(RM) $@
+ $(CC) -c $(CFLAGS) $(_NOOP_) $*.c
+
+all:: $(DRIVER)_drv.o
+
+$(DRIVER)_drv.o: $(OBJS) $(EXTRALIBRARYDEPS)
+ $(RM) $@
+ $(LD) $(LDCOMBINEFLAGS) $(OBJS) -o $@
+
+test:
+ $(CC) $(CFLAGS) -o synclient synclient.c
+
+clean::
+ $(RM) *.CKP *.ln *.BAK *.bak *.o core errs ,* *~ *.a .emacs_* tags TAGS make.log MakeOut synclient "#"*
+
+tags::
+ $(TAGS) -w *.[ch]
+ $(TAGS) -xw *.[ch] > TAGS
+
+
+
+