From 29aed09e1077dd056bf848326e6389a7bb447246 Mon Sep 17 00:00:00 2001 From: Dave Murphy Date: Wed, 28 Feb 2018 19:31:24 +0000 Subject: [PATCH] allow parallel building --- nx/Makefile | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/nx/Makefile b/nx/Makefile index 1bb0c9d3..a189d190 100644 --- a/nx/Makefile +++ b/nx/Makefile @@ -80,8 +80,10 @@ else endif #--------------------------------------------------------------------------------- -export OFILES := $(addsuffix .o,$(BINFILES)) \ - $(CPPFILES:.cpp=.o) $(CFILES:.c=.o) $(SFILES:.s=.o) +export OFILES_BIN := $(addsuffix .o,$(BINFILES)) +export OFILES_SRC := $(CPPFILES:.cpp=.o) $(CFILES:.c=.o) $(SFILES:.s=.o) +export OFILES := $(OFILES_BIN) $(OFILES_SRC) +export HFILES := $(addsuffix .h,$(subst .,_,$(BINFILES))) export INCLUDE := $(foreach dir,$(INCLUDES),-I$(CURDIR)/$(dir)) \ $(foreach dir,$(LIBDIRS),-I$(dir)/include) \ @@ -147,8 +149,10 @@ DEPENDS := $(OFILES:.o=.d) #--------------------------------------------------------------------------------- $(OUTPUT) : $(OFILES) +$(OFILES_SRC) : $(HFILES) + #--------------------------------------------------------------------------------- -%.bin.o : %.bin +%_bin.h %.bin.o : %.bin #--------------------------------------------------------------------------------- @echo $(notdir $<) @$(bin2o)