summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile18
1 files changed, 13 insertions, 5 deletions
diff --git a/Makefile b/Makefile
index 65471f7..323ac3d 100644
--- a/Makefile
+++ b/Makefile
@@ -8,6 +8,7 @@ SERVERSRC = $(XTOP)/programs/Xserver
TOP_X_INCLUDES = -I$(TOP)/exports/include
TOP_INCLUDES = -I$(TOP) $(TOP_X_INCLUDES)
+INSTALLED_X = /usr/X11R6
XF86SRC = $(SERVERSRC)/hw/xfree86
XF86COMSRC = $(XF86SRC)/common
@@ -24,12 +25,12 @@ 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
+CCOPTIONS = -pedantic -Wall -Wpointer-arith -fno-merge-constants
CDEBUGFLAGS = -O2
CFLAGS = $(CDEBUGFLAGS) $(CCOPTIONS) $(ALLDEFINES)
+CFLAGSCLIENT = $(CDEBUGFLAGS) $(CCOPTIONS) -I$(INSTALLED_X)/include
CC = gcc
-CCOPTIONS = -ansi -pedantic -Wall -Wpointer-arith -fno-merge-constants
LDCOMBINEFLAGS = -r
@@ -42,18 +43,25 @@ DRIVER = synaptics
$(RM) $@
$(CC) -c $(CFLAGS) $(_NOOP_) $*.c
-all:: $(DRIVER)_drv.o
+all:: $(DRIVER)_drv.o synclient
$(DRIVER)_drv.o: $(OBJS) $(EXTRALIBRARYDEPS)
$(RM) $@
$(LD) $(LDCOMBINEFLAGS) $(OBJS) -o $@
-test:
- $(CC) $(CFLAGS) -o synclient synclient.c
+synclient.o : synclient.c
+ $(CC) $(CFLAGSCLIENT) -c -o $@ $<
+
+synclient : synclient.o
+ $(CC) -o $@ $<
testprotokoll: testprotokoll.c
$(CC) -o testprotokoll testprotokoll.c
+synaptics.o : synaptics.h ps2comm.h
+ps2comm.o : ps2comm.h
+synclient.o : synaptics.h
+
clean::
$(RM) *.CKP *.ln *.BAK *.bak *.o core errs ,* *~ *.a .emacs_* tags TAGS make.log MakeOut synclient "#"*