From: Ben Gras Date: Mon, 11 May 2009 19:05:45 +0000 (+0000) Subject: Don't build arch objs more than once. X-Git-Tag: v3.1.4~44 X-Git-Url: http://zhaoyanbai.com/repos/%22http:/www.isc.org/icons/zlib_tech.html?a=commitdiff_plain;h=ade4c03b735317887e394f24541639a2124b7f1b;p=minix.git Don't build arch objs more than once. --- diff --git a/servers/vm/Makefile b/servers/vm/Makefile index 29e7e56f4..bf3c6bfe3 100644 --- a/servers/vm/Makefile +++ b/servers/vm/Makefile @@ -15,7 +15,7 @@ CFLAGS = $(CPROFILE) $(CPPFLAGS) all build install: $(SERVER) #install $(SERVER) -$(SERVER): $(OBJ) $(ARCHOBJ) +$(SERVER): $(OBJ) phony cd $(ARCH) && $(MAKE) $(CC) -o $@ $(LDFLAGS) $(OBJ) $(ARCHOBJ) -lsys @@ -28,6 +28,9 @@ depend: cd $(ARCH) && $(MAKE) $@ mkdep "$(CC) -E $(CPPFLAGS)" *.c $(ARCH)/*.c > .depend +phony: + @: + # Include generated dependencies. include .depend