diff options
author | luckytyphlosion <10688458+luckytyphlosion@users.noreply.github.com> | 2018-12-26 22:35:36 -0500 |
---|---|---|
committer | luckytyphlosion <10688458+luckytyphlosion@users.noreply.github.com> | 2018-12-26 22:35:36 -0500 |
commit | 5ad6e521535c7528fd83cfc95cf6d326754aafa8 (patch) | |
tree | b3f679d96046ee56fa46d499aa9f851cb37c787a | |
parent | d5de7960a330953b3a7d7684122997c0d8aedcf1 (diff) |
Fix Makefiles to allow CPP to work on piped input from preproc for data asm files.
-rw-r--r-- | .gitattributes | 1 | ||||
-rw-r--r-- | Makefile | 2 | ||||
-rw-r--r-- | berry_fix/Makefile | 2 |
3 files changed, 3 insertions, 2 deletions
diff --git a/.gitattributes b/.gitattributes index 7c8d2699d..a7233fe6a 100644 --- a/.gitattributes +++ b/.gitattributes @@ -10,6 +10,7 @@ Makefile text eol=lf *.inc text eol=lf *.sha1 text eol=lf *.sed text eol=lf +*.sh text eol=lf *.png binary *.bin binary @@ -149,7 +149,7 @@ $(DATA_ASM_BUILDDIR)/%.o: data_dep = $(shell $(SCANINC) $(DATA_ASM_SUBDIR)/$*.s) endif $(DATA_ASM_BUILDDIR)/%.o: $(DATA_ASM_SUBDIR)/%.s $$(data_dep) - $(PREPROC) $< charmap.txt | $(CPP) -I include | $(AS) $(ASFLAGS) -o $@ + $(PREPROC) $< charmap.txt | $(CPP) -I include - | $(AS) $(ASFLAGS) -o $@ $(SONG_BUILDDIR)/%.o: $(SONG_SUBDIR)/%.s $(AS) $(ASFLAGS) -I sound -o $@ $< diff --git a/berry_fix/Makefile b/berry_fix/Makefile index d449fdbef..feb92a026 100644 --- a/berry_fix/Makefile +++ b/berry_fix/Makefile @@ -147,7 +147,7 @@ data/payload.gba.lz: payload/payload.gba $(GFX) $< $@ -search 1 $(DATA_ASM_BUILDDIR)/%.o: $(DATA_ASM_SUBDIR)/%.s $$(data_dep) - $(PREPROC) $< charmap.txt | $(CPP) -I include | $(AS) $(ASFLAGS) -o $@ + $(PREPROC) $< charmap.txt | $(CPP) -I include - | $(AS) $(ASFLAGS) -o $@ $(SONG_BUILDDIR)/%.o: $(SONG_SUBDIR)/%.s $(AS) $(ASFLAGS) -I sound -o $@ $< |