2005-10-31 16:30:23 +01:00
|
|
|
# Unix
|
2005-11-07 18:37:24 +01:00
|
|
|
#PTHREAD= # for Mac
|
|
|
|
PTHREAD=-pthread
|
2005-10-31 16:30:23 +01:00
|
|
|
AR=ar
|
2005-11-04 17:05:20 +01:00
|
|
|
AS=as
|
2005-10-31 16:30:23 +01:00
|
|
|
RANLIB=ranlib
|
2005-11-12 15:00:36 +01:00
|
|
|
X11=/usr/X11R6
|
2005-11-07 18:34:39 +01:00
|
|
|
CC=gcc
|
2005-11-12 15:00:36 +01:00
|
|
|
CFLAGS=-Wall -Wno-missing-braces -ggdb -I$(ROOT) -I$(ROOT)/include -I$(ROOT)/kern -c -I$(X11)/include -D_THREAD_SAFE $(PTHREAD) -O2
|
2005-10-31 16:30:23 +01:00
|
|
|
O=o
|
|
|
|
OS=posix
|
|
|
|
GUI=x11
|
2007-06-23 02:13:47 +02:00
|
|
|
LDADD=-L$(X11)/lib64 -L$(X11)/lib -lX11 -ggdb
|
2005-11-07 18:34:39 +01:00
|
|
|
LDFLAGS=$(PTHREAD)
|
2005-10-31 16:30:23 +01:00
|
|
|
TARG=drawterm
|
2006-03-08 05:24:23 +01:00
|
|
|
# AUDIO=none
|
|
|
|
AUDIO=unix
|
2005-10-31 16:30:23 +01:00
|
|
|
|
2005-11-04 16:47:45 +01:00
|
|
|
all: default
|
|
|
|
|
2005-11-02 16:20:27 +01:00
|
|
|
libmachdep.a:
|
2007-06-23 00:06:34 +02:00
|
|
|
arch=`uname -m|sed 's/i.86/386/;s/Power Macintosh/power/; s/x86_64/amd64/'`; \
|
2005-11-02 16:20:27 +01:00
|
|
|
(cd posix-$$arch && make)
|