diff options
-rw-r--r-- | src/Makefile | 10 | ||||
-rw-r--r-- | src/Makeone | 2 | ||||
-rw-r--r-- | src/Makesyslib | 3 |
3 files changed, 10 insertions, 5 deletions
diff --git a/src/Makefile b/src/Makefile index 8fd27ca1..30ff19e1 100644 --- a/src/Makefile +++ b/src/Makefile @@ -1,4 +1,4 @@ -DIRS=\ +LIBS=\ lib9\ libbio\ libdraw\ @@ -7,13 +7,15 @@ DIRS=\ libregexp\ libthread\ libutf\ + +CMDS=\ mk\ sam\ samterm\ -clean all install: - for i in $(DIRS); \ +clean all install nuke: + for i in $(LIBS) $(DIRS); \ do \ - (echo $$i; cd $$i; $(MAKE) $*); \ + (echo $$i; cd $$i; $(MAKE) $@); \ done diff --git a/src/Makeone b/src/Makeone index d5ab84bb..62292855 100644 --- a/src/Makeone +++ b/src/Makeone @@ -1,3 +1,5 @@ +all: $(TARG) + $(TARG): $(OFILES) $(CC) -o $(TARG) $(OFILES) $(LDFLAGS) diff --git a/src/Makesyslib b/src/Makesyslib index 3814e1c9..cce08bda 100644 --- a/src/Makesyslib +++ b/src/Makesyslib @@ -1,4 +1,4 @@ -all: $(9SRC)/lib/$(LIB) +all install: $(9SRC)/lib/$(LIB) $(9SRC)/lib/$(LIB): $(OFILES) $(AR) $(ARFLAGS) $(9SRC)/lib/$(LIB) $(OFILES) @@ -6,3 +6,4 @@ $(9SRC)/lib/$(LIB): $(OFILES) include $(9SRC)/Makecommon +NUKEFILES+=$(9SRC)/lib/$(LIB) |