Skip to content

Commit

Permalink
Use custom malloc
Browse files Browse the repository at this point in the history
  • Loading branch information
Xpl0itU committed May 8, 2022
1 parent d166ff1 commit e7e4820
Show file tree
Hide file tree
Showing 5 changed files with 6,367 additions and 1 deletion.
8 changes: 7 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,7 @@ CFILES := $(foreach dir,$(SOURCES),$(notdir $(wildcard $(dir)/*.c)))
CPPFILES := $(foreach dir,$(SOURCES),$(notdir $(wildcard $(dir)/*.cpp)))
sFILES := $(foreach dir,$(SOURCES),$(notdir $(wildcard $(dir)/*.s)))
SFILES := $(foreach dir,$(SOURCES),$(notdir $(wildcard $(dir)/*.S)))
DEFFILES := $(foreach dir,$(SOURCES),$(notdir $(wildcard $(TOPDIR)/$(dir)/*.def)))
BINFILES := $(foreach dir,$(SOURCES),$(notdir $(wildcard $(dir)/*.bin)))

#-------------------------------------------------------------------------------
Expand Down Expand Up @@ -121,7 +122,7 @@ all : $(OUTPUT).rpx
$(OUTPUT).rpx : $(OUTPUT).elf
$(OUTPUT).elf : $(OFILES)

$(OFILES_SRC) : $(HFILES_BIN)
$(OFILES_SRC) : $(DEFFILES:.def=.o) $(HFILES_BIN)

#---------------------------------------------------------------------------------
%.a:
Expand Down Expand Up @@ -184,6 +185,11 @@ $(OFILES_SRC) : $(HFILES_BIN)
%.zip.o : %.zip
@echo $(notdir $<)
@bin2s -a 32 $< | $(AS) -o $(@)
#---------------------------------------------------------------------------------
%.o: %.def
$(SILENTMSG) $(notdir $<)
$(SILENTCMD)rplexportgen $< $*.s $(ERROR_FILTER)
$(SILENTCMD)$(CC) -x assembler-with-cpp $(ASFLAGS) -c $*.s -o $@ $(ERROR_FILTER)

-include $(DEPENDS)

Expand Down
Loading

0 comments on commit e7e4820

Please sign in to comment.