diff --git a/Make.unix b/Make.unix index ddaf7b0..075de48 100644 --- a/Make.unix +++ b/Make.unix @@ -10,7 +10,8 @@ LDADD=-L/usr/X11R6/lib -lX11 -ggdb 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) diff --git a/Make.win32 b/Make.win32 index 42b2928..c4348de 100644 --- a/Make.win32 +++ b/Make.win32 @@ -28,6 +28,8 @@ TARG=drawterm.exe #OS=win32 #GUI=win32 +all: $(TARG) + # for root libmachdep.a: (cd win32-386; make) diff --git a/Makefile b/Makefile index 9cff118..9436a22 100644 --- a/Makefile +++ b/Makefile @@ -26,6 +26,7 @@ LIBS1=\ # stupid gcc LIBS=$(LIBS1) $(LIBS1) $(LIBS1) libmachdep.a +default: $(TARG) $(TARG): $(OFILES) $(LIBS) $(CC) $(LDFLAGS) -o $(TARG) $(OFILES) $(LIBS) $(LDADD) @@ -67,4 +68,3 @@ libc/libc.a: gui-$(GUI)/libgui.a: (cd gui-$(GUI); make) - diff --git a/exportfs/Makefile b/exportfs/Makefile index 805ecf4..e66d877 100644 --- a/exportfs/Makefile +++ b/exportfs/Makefile @@ -6,6 +6,7 @@ OFILES=\ exportfs.$O\ exportsrv.$O +default: $(LIB) $(LIB): $(OFILES) $(AR) r $(LIB) $(OFILES) $(RANLIB) $(LIB) diff --git a/gui-win32/Makefile b/gui-win32/Makefile index 9da1de0..3402872 100644 --- a/gui-win32/Makefile +++ b/gui-win32/Makefile @@ -10,6 +10,7 @@ OFILES=\ screen.$O\ wstrtoutf.$O +default: $(LIB) $(LIB): $(OFILES) $(AR) r $(LIB) $(OFILES) $(RANLIB) $(LIB) diff --git a/gui-x11/Makefile b/gui-x11/Makefile index ed205a9..76b50d3 100644 --- a/gui-x11/Makefile +++ b/gui-x11/Makefile @@ -10,6 +10,7 @@ OFILES=\ screen.$O\ keysym2ucs-x11.$O +default: $(LIB) $(LIB): $(OFILES) $(AR) r $(LIB) $(OFILES) $(RANLIB) $(LIB) diff --git a/kern/Makefile b/kern/Makefile index 2f3f3e4..73fe2a3 100644 --- a/kern/Makefile +++ b/kern/Makefile @@ -38,6 +38,7 @@ OFILES=\ waserror.$O\ $(OS).$O +default: $(LIB) $(LIB): $(OFILES) $(AR) r $(LIB) $(OFILES) $(RANLIB) $(LIB) diff --git a/libauth/Makefile b/libauth/Makefile index 4f9b492..39b1ec9 100644 --- a/libauth/Makefile +++ b/libauth/Makefile @@ -12,6 +12,7 @@ OFILES=\ auth_rpc.$O\ auth_userpasswd.$O\ +default: $(LIB) $(LIB): $(OFILES) $(AR) r $(LIB) $(OFILES) $(RANLIB) $(LIB) diff --git a/libauthsrv/Makefile b/libauthsrv/Makefile index eb3d667..774ac00 100644 --- a/libauthsrv/Makefile +++ b/libauthsrv/Makefile @@ -18,6 +18,7 @@ OFILES=\ passtokey.$O\ readnvram.$O\ +default: $(LIB) $(LIB): $(OFILES) $(AR) r $(LIB) $(OFILES) $(RANLIB) $(LIB) diff --git a/libc/Makefile b/libc/Makefile index bf01662..bdcb0cb 100644 --- a/libc/Makefile +++ b/libc/Makefile @@ -79,6 +79,7 @@ OFILES=\ vsmprint.$O\ vsnprint.$O +default: $(LIB) $(LIB): $(OFILES) $(AR) r $(LIB) $(OFILES) $(RANLIB) $(LIB) diff --git a/libdraw/Makefile b/libdraw/Makefile index b8b49f0..16370ff 100644 --- a/libdraw/Makefile +++ b/libdraw/Makefile @@ -14,6 +14,7 @@ OFILES=\ rectclip.$O\ rgb.$O +default: $(LIB) $(LIB): $(OFILES) $(AR) r $(LIB) $(OFILES) $(RANLIB) $(LIB) diff --git a/libmemdraw/Makefile b/libmemdraw/Makefile index fb8fa78..cabf3fd 100644 --- a/libmemdraw/Makefile +++ b/libmemdraw/Makefile @@ -23,6 +23,7 @@ OFILES=\ unload.$O\ write.$O +default: $(LIB) $(LIB): $(OFILES) $(AR) r $(LIB) $(OFILES) $(RANLIB) $(LIB) diff --git a/libmemlayer/Makefile b/libmemlayer/Makefile index aa6e8fb..ceccbdd 100644 --- a/libmemlayer/Makefile +++ b/libmemlayer/Makefile @@ -16,6 +16,7 @@ OFILES=\ ltorear.$O\ unload.$O +default: $(LIB) $(LIB): $(OFILES) $(AR) r $(LIB) $(OFILES) $(RANLIB) $(LIB) diff --git a/libmp/Makefile b/libmp/Makefile index 5d29fc6..402d39d 100644 --- a/libmp/Makefile +++ b/libmp/Makefile @@ -36,6 +36,7 @@ OFILES=\ mpvecsub.$O\ strtomp.$O +default: $(LIB) $(LIB): $(OFILES) $(AR) r $(LIB) $(OFILES) $(RANLIB) $(LIB) diff --git a/libsec/Makefile b/libsec/Makefile index 853ec56..811d48b 100644 --- a/libsec/Makefile +++ b/libsec/Makefile @@ -50,6 +50,7 @@ OFILES=\ sha1pickle.$O\ smallprimes.$O +default: $(LIB) $(LIB): $(OFILES) $(AR) r $(LIB) $(OFILES) $(RANLIB) $(LIB) diff --git a/posix-386/Makefile b/posix-386/Makefile index 7d152d2..0b1ccec 100644 --- a/posix-386/Makefile +++ b/posix-386/Makefile @@ -6,6 +6,7 @@ OFILES=\ getcallerpc.$O\ tas.$O +default: $(LIB) $(LIB): $(OFILES) $(AR) r $(LIB) $(OFILES) $(RANLIB) $(LIB) diff --git a/posix-power/Makefile b/posix-power/Makefile index 7d152d2..0b1ccec 100644 --- a/posix-power/Makefile +++ b/posix-power/Makefile @@ -6,6 +6,7 @@ OFILES=\ getcallerpc.$O\ tas.$O +default: $(LIB) $(LIB): $(OFILES) $(AR) r $(LIB) $(OFILES) $(RANLIB) $(LIB)