Don't build arch objs more than once.

This commit is contained in:
Ben Gras 2009-05-11 19:05:45 +00:00
parent 7c88767f75
commit ade4c03b73

View file

@ -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