Add "compile" make target

== DETAILS

As part of the build system overhaul, I need to be able to compile
without linking; this adds a "compile" target so that I can do that.

Currently only implemented on the main Makefile and Wii U.
This commit is contained in:
gblues 2018-05-08 20:03:13 -07:00
parent 53140172ab
commit 171e222ebe
2 changed files with 4 additions and 0 deletions

View File

@ -219,6 +219,8 @@ $(OBJDIR)/%.o: %.rc $(HEADERS)
@$(if $(Q), $(shell echo echo WINDRES $<),)
$(Q)$(WINDRES) -o $@ $<
compile: $(OBJ)
install: $(TARGET)
rm -f $(OBJDIR)/git_version.o
mkdir -p $(DESTDIR)$(BIN_DIR) 2>/dev/null || /bin/true

View File

@ -316,6 +316,8 @@ $(BUILD_DIR)/$(TARGET).rpx: $(BUILD_DIR)/$(TARGET).rpx.elf $(ELF2RPL) .$(TARGET)
@touch .$(TARGET).rpx.last
$(Q)-$(ELF2RPL) $< $@
compile: $(OBJ)
clean:
rm -f $(OBJ) $(RPX_OBJ) $(HBL_ELF_OBJ) $(TARGET).elf $(TARGET).rpx.elf $(TARGET).rpx
rm -f $(BUILD_DIR)/$(TARGET).elf $(BUILD_DIR)/$(TARGET).rpx.elf $(BUILD_DIR)/$(TARGET).rpx