diff options
author | Peter Osterlund <petero2@telia.com> | 2003-05-02 01:12:03 +0200 |
---|---|---|
committer | Peter Osterlund <petero2@telia.com> | 2006-04-09 04:00:53 +0200 |
commit | 826b2136b226d29017271b7c098179f04c6c51b3 (patch) | |
tree | f6e85b36622cdd1d87226654f2d7f38f5add797e /Makefile | |
parent | 5b1ecfe525fca8deea1b5d742a929d7f900b60cc (diff) |
Build improvements.
* Build synclient by default.
* Made it possible to build synclient even if an X source tree is not
available.
* Added Makefile dependencies so that things get recompiled when a
header file is changed.
* synclient.c now includes synaptics.h instead of duplicating the
shared memory segment definitions.
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 18 |
1 files changed, 13 insertions, 5 deletions
@@ -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 "#"* |