Don't build arch objs more than once.
This commit is contained in:
parent
7c88767f75
commit
ade4c03b73
1 changed files with 4 additions and 1 deletions
|
@ -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
|
||||
|
||||
|
|
Loading…
Reference in a new issue