Skip to content

Commit

Permalink
allow parallel build
Browse files Browse the repository at this point in the history
  • Loading branch information
WinterMute committed May 12, 2018
1 parent 5450b2b commit fcf9ca7
Showing 1 changed file with 9 additions and 3 deletions.
12 changes: 9 additions & 3 deletions libctru/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -91,8 +91,12 @@ 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 HFILES_BIN := $(addsuffix .h,$(subst .,_,$(BINFILES)))

export OFILES := $(OFILES_BIN) $(OFILES_SRC)

export INCLUDE := $(foreach dir,$(INCLUDES),-I$(CURDIR)/$(dir)) \
$(foreach dir,$(LIBDIRS),-I$(dir)/include) \
Expand Down Expand Up @@ -153,8 +157,10 @@ DEPENDS := $(OFILES:.o=.d)
#---------------------------------------------------------------------------------
$(OUTPUT) : $(OFILES)

$(OFILES_SRC) : $(HFILES_BIN)

#---------------------------------------------------------------------------------
%.bin.o : %.bin
%.bin.o %_bin.h : %.bin
#---------------------------------------------------------------------------------
@echo $(notdir $<)
@$(bin2o)
Expand Down

0 comments on commit fcf9ca7

Please sign in to comment.