accomodate bsd, x
This commit is contained in:
parent
f59c506336
commit
c5ee3aadd7
|
@ -4,12 +4,13 @@ PTHREAD=-pthread
|
||||||
AR=ar
|
AR=ar
|
||||||
AS=as
|
AS=as
|
||||||
RANLIB=ranlib
|
RANLIB=ranlib
|
||||||
|
X11=/usr/X11R6
|
||||||
CC=gcc
|
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
|
O=o
|
||||||
OS=posix
|
OS=posix
|
||||||
GUI=x11
|
GUI=x11
|
||||||
LDADD=-L/usr/X11R6/lib -lX11 -ggdb
|
LDADD=-L$(X11)/lib -lX11 -ggdb
|
||||||
LDFLAGS=$(PTHREAD)
|
LDFLAGS=$(PTHREAD)
|
||||||
TARG=drawterm
|
TARG=drawterm
|
||||||
|
|
||||||
|
|
|
@ -15,6 +15,3 @@ $(LIB): $(OFILES)
|
||||||
$(AR) r $(LIB) $(OFILES)
|
$(AR) r $(LIB) $(OFILES)
|
||||||
$(RANLIB) $(LIB)
|
$(RANLIB) $(LIB)
|
||||||
|
|
||||||
%.$O: %.c
|
|
||||||
$(CC) $(CFLAGS) $*.c
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue