timeoutd/Makefile
Clark Rawlins f8a3bc0509 To resolve the symbol XOpenDisplay link with libX11
When building the timeoutd binary the linker was not
finding the XOpenDisplay symbol.  By linking with
libX11 the missing symbol is found

Signed-off-by: Clark Rawlins <clark@defiant.bit63.org>
2014-12-14 09:05:09 -08:00

12 lines
436 B
Makefile

CFLAGS=-fomit-frame-pointer -O2 -s -g -Wall
timeoutd: timeoutd.c Makefile
#$(CC) $(CFLAGS) -o timeoutd timeoutd.c
$(CC) $(CFLAGS) -o timeoutd.o -c timeoutd.c -DTIMEOUTDX11
$(CC) $(CFLAGS) -o timeoutd -L/usr/X11R6/lib timeoutd.o -lXss -lXext -lX11
install:
install -o root -g system -m 2111 timeoutd /usr/etc/timeoutd
install -o man -g info -m 444 timeoutd.8 /usr/man/man8
install -o man -g info -m 444 timeouts.5 /usr/man/man5