ref: c5ee3aadd7954e90041dfe7e3ddb3dbcda6d7f2d
parent: f59c506336e53a2f55a6e30034e89125a02b6ee4
author: Russ Cox <rsc@swtch.com>
date: Sat Nov 12 09:00:36 EST 2005
accomodate bsd, x
--- a/Make.unix
+++ b/Make.unix
@@ -4,12 +4,13 @@
AR=ar
AS=as
RANLIB=ranlib
+X11=/usr/X11R6
CC=gcc
-CFLAGS=-Wall -Wno-missing-braces -ggdb -I$(ROOT) -I$(ROOT)/include -I$(ROOT)/kern -c -D_THREAD_SAFE $(PTHREAD) -O2
+CFLAGS=-Wall -Wno-missing-braces -ggdb -I$(ROOT) -I$(ROOT)/include -I$(ROOT)/kern -c -I$(X11)/include -D_THREAD_SAFE $(PTHREAD) -O2
O=o
OS=posix
GUI=x11
-LDADD=-L/usr/X11R6/lib -lX11 -ggdb
+LDADD=-L$(X11)/lib -lX11 -ggdb
LDFLAGS=$(PTHREAD)
TARG=drawterm
--- a/gui-x11/Makefile
+++ b/gui-x11/Makefile
@@ -15,6 +15,3 @@
$(AR) r $(LIB) $(OFILES)
$(RANLIB) $(LIB)
-%.$O: %.c
- $(CC) $(CFLAGS) $*.c
-