shithub: drawterm

Download patch

ref: 8fab9847269b8f7930642b0ef42bce24a2eabbe9
parent: ee4b58548e0df76a402c09ffcf0964d0e6cddbfa
author: 23hiro <23hiro@gmail.com>
date: Sat Feb 20 14:40:55 EST 2016

linux: for systems with 64 bit kernel but 32 bit userland provide a conf=linux386 to force 386 build

--- /dev/null	Thu Apr  7 21:41:36 2022
+++ b/Make.linux386	Sat Feb 20 14:40:55 2016
@@ -0,0 +1,22 @@
+# Unix
+PTHREAD=-pthread
+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 -I$(X11)/include -D_THREAD_SAFE $(PTHREAD) -O2
+O=o
+OS=posix
+GUI=x11
+LDADD=-L$(X11)/lib64 -L$(X11)/lib -lX11 -ggdb
+LDFLAGS=$(PTHREAD) -static
+TARG=drawterm
+# AUDIO=none
+AUDIO=unix
+
+all: default
+
+libmachdep.a:
+	arch=386; \
+	(cd posix-$$arch &&  make)