code: drawterm

Download patch

ref: e10503f0194770f2f5350775ada3570ee24f5944
parent: ab73f2bbf59c2cdccc21952d9a13466793262b4b
author: Russ Cox <rsc@swtch.com>
date: Fri Nov 4 10:47:45 EST 2005

Mac fixes

--- a/Make.unix
+++ b/Make.unix
@@ -10,7 +10,8 @@
 LDFLAGS=-pthread
 TARG=drawterm
 
-# for root
+all: default
+
 libmachdep.a:
 	arch=`uname -m|sed 's/i.86/386/;s/Power Macintosh/power/'`; \
 	(cd posix-$$arch &&  make)
--- a/Make.win32
+++ b/Make.win32
@@ -28,6 +28,8 @@
 #OS=win32
 #GUI=win32
 
+all: $(TARG)
+
 # for root
 libmachdep.a:
 	(cd win32-386; make)
--- a/Makefile
+++ b/Makefile
@@ -26,6 +26,7 @@
 # stupid gcc
 LIBS=$(LIBS1) $(LIBS1) $(LIBS1) libmachdep.a
 
+default: $(TARG)
 $(TARG): $(OFILES) $(LIBS)
 	$(CC) $(LDFLAGS) -o $(TARG) $(OFILES) $(LIBS) $(LDADD)
 
@@ -67,4 +68,3 @@
 
 gui-$(GUI)/libgui.a:
 	(cd gui-$(GUI); make)
-
--- a/exportfs/Makefile
+++ b/exportfs/Makefile
@@ -6,6 +6,7 @@
 	exportfs.$O\
 	exportsrv.$O
 
+default: $(LIB)
 $(LIB): $(OFILES)
 	$(AR) r $(LIB) $(OFILES)
 	$(RANLIB) $(LIB)
--- a/gui-win32/Makefile
+++ b/gui-win32/Makefile
@@ -10,6 +10,7 @@
 	screen.$O\
 	wstrtoutf.$O
 
+default: $(LIB)
 $(LIB): $(OFILES)
 	$(AR) r $(LIB) $(OFILES)
 	$(RANLIB) $(LIB)
--- a/gui-x11/Makefile
+++ b/gui-x11/Makefile
@@ -10,6 +10,7 @@
 	screen.$O\
 	keysym2ucs-x11.$O
 
+default: $(LIB)
 $(LIB): $(OFILES)
 	$(AR) r $(LIB) $(OFILES)
 	$(RANLIB) $(LIB)
--- a/kern/Makefile
+++ b/kern/Makefile
@@ -38,6 +38,7 @@
 	waserror.$O\
 	$(OS).$O
 
+default: $(LIB)
 $(LIB): $(OFILES)
 	$(AR) r $(LIB) $(OFILES)
 	$(RANLIB) $(LIB)
--- a/libauth/Makefile
+++ b/libauth/Makefile
@@ -12,6 +12,7 @@
 	auth_rpc.$O\
 	auth_userpasswd.$O\
 
+default: $(LIB)
 $(LIB): $(OFILES)
 	$(AR) r $(LIB) $(OFILES)
 	$(RANLIB) $(LIB)
--- a/libauthsrv/Makefile
+++ b/libauthsrv/Makefile
@@ -18,6 +18,7 @@
 	passtokey.$O\
 	readnvram.$O\
 
+default: $(LIB)
 $(LIB): $(OFILES)
 	$(AR) r $(LIB) $(OFILES)
 	$(RANLIB) $(LIB)
--- a/libc/Makefile
+++ b/libc/Makefile
@@ -79,6 +79,7 @@
 	vsmprint.$O\
 	vsnprint.$O
 
+default: $(LIB)
 $(LIB): $(OFILES)
 	$(AR) r $(LIB) $(OFILES)
 	$(RANLIB) $(LIB)
--- a/libdraw/Makefile
+++ b/libdraw/Makefile
@@ -14,6 +14,7 @@
 	rectclip.$O\
 	rgb.$O
 
+default: $(LIB)
 $(LIB): $(OFILES)
 	$(AR) r $(LIB) $(OFILES)
 	$(RANLIB) $(LIB)
--- a/libmemdraw/Makefile
+++ b/libmemdraw/Makefile
@@ -23,6 +23,7 @@
 	unload.$O\
 	write.$O
 
+default: $(LIB)
 $(LIB): $(OFILES)
 	$(AR) r $(LIB) $(OFILES)
 	$(RANLIB) $(LIB)
--- a/libmemlayer/Makefile
+++ b/libmemlayer/Makefile
@@ -16,6 +16,7 @@
 	ltorear.$O\
 	unload.$O
 
+default: $(LIB)
 $(LIB): $(OFILES)
 	$(AR) r $(LIB) $(OFILES)
 	$(RANLIB) $(LIB)
--- a/libmp/Makefile
+++ b/libmp/Makefile
@@ -36,6 +36,7 @@
 	mpvecsub.$O\
 	strtomp.$O
 
+default: $(LIB)
 $(LIB): $(OFILES)
 	$(AR) r $(LIB) $(OFILES)
 	$(RANLIB) $(LIB)
--- a/libsec/Makefile
+++ b/libsec/Makefile
@@ -50,6 +50,7 @@
 	sha1pickle.$O\
 	smallprimes.$O
 
+default: $(LIB)
 $(LIB): $(OFILES)
 	$(AR) r $(LIB) $(OFILES)
 	$(RANLIB) $(LIB)
--- a/posix-386/Makefile
+++ b/posix-386/Makefile
@@ -6,6 +6,7 @@
 	getcallerpc.$O\
 	tas.$O
 
+default: $(LIB)
 $(LIB): $(OFILES)
 	$(AR) r $(LIB) $(OFILES)
 	$(RANLIB) $(LIB)
--- a/posix-power/Makefile
+++ b/posix-power/Makefile
@@ -6,6 +6,7 @@
 	getcallerpc.$O\
 	tas.$O
 
+default: $(LIB)
 $(LIB): $(OFILES)
 	$(AR) r $(LIB) $(OFILES)
 	$(RANLIB) $(LIB)