diff options
author | Andrew Belt <andrewpbelt@gmail.com> | 2018-06-18 03:36:26 -0400 |
---|---|---|
committer | Andrew Belt <andrewpbelt@gmail.com> | 2018-06-18 03:36:26 -0400 |
commit | 32acb82842dfddefb50be128a98303f78300dae4 (patch) | |
tree | 2bd6b8923e3a30b09ab172184e425338c08d307b /compile.mk | |
parent | 8422baf5b7fb2de3cc530142e586509ca33ff771 (diff) |
Use xxd for Mac embedded resources
Diffstat (limited to 'compile.mk')
-rw-r--r-- | compile.mk | 7 |
1 files changed, 7 insertions, 0 deletions
@@ -77,3 +77,10 @@ build/%.bin.o: % ifdef ARCH_LIN $(OBJCOPY) -I binary -O elf64-x86-64 -B i386:x86-64 --rename-section .data=.rodata,alloc,load,readonly,data,contents $< $@ endif +ifdef ARCH_WIN + $(OBJCOPY) -I binary -O pe-x86-64 -B i386:x86-64 --rename-section .data=.rodata,alloc,load,readonly,data,contents $< $@ +endif +ifdef ARCH_MAC + # Apple makes this needlessly complicated, so just generate a C file with an array. + xxd -i $< | $(CC) -c -o $@ -xc - +endif |