Skip to content

Commit

Permalink
zehn_loader: Include ldscript as dependency
Browse files Browse the repository at this point in the history
  • Loading branch information
Vogtinator committed May 17, 2024
1 parent bf2d057 commit 61ab9fe
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions ndless-sdk/tools/zehn_loader/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -7,11 +7,11 @@ ZLIB_CFLAGS := -Os -fPIE -ffunction-sections -fdata-sections -DNO_GZIP -ffreesta

all: zehn_loader.tns zehn_loader_compressed.tns

zehn_loader_compressed.tns.elf: loader.cpp zlib/libz.a
$(GXX) $(GXXFLAGS) $^ -o $@ -DENABLE_ZLIB -lgcc
zehn_loader_compressed.tns.elf: ldscript loader.cpp zlib/libz.a
$(GXX) $(GXXFLAGS) loader.cpp zlib/libz.a -o $@ -DENABLE_ZLIB -lgcc

zehn_loader.tns.elf: loader.cpp
$(GXX) $(GXXFLAGS) $^ -o $@
zehn_loader.tns.elf: ldscript loader.cpp
$(GXX) $(GXXFLAGS) loader.cpp -o $@

zehn_loade%.tns: zehn_loade%.tns.elf
$(OBJCOPY) --set-section-flags .pad=alloc,load,contents -O binary $^ $@
Expand Down

0 comments on commit 61ab9fe

Please sign in to comment.