summaryrefslogtreecommitdiff
path: root/compile.mk
diff options
context:
space:
mode:
authorAndrew Belt <andrewpbelt@gmail.com>2018-06-18 03:36:26 -0400
committerAndrew Belt <andrewpbelt@gmail.com>2018-06-18 03:36:26 -0400
commit32acb82842dfddefb50be128a98303f78300dae4 (patch)
tree2bd6b8923e3a30b09ab172184e425338c08d307b /compile.mk
parent8422baf5b7fb2de3cc530142e586509ca33ff771 (diff)
Use xxd for Mac embedded resources
Diffstat (limited to 'compile.mk')
-rw-r--r--compile.mk7
1 files changed, 7 insertions, 0 deletions
diff --git a/compile.mk b/compile.mk
index c3bbbe1b..8cd8886f 100644
--- a/compile.mk
+++ b/compile.mk
@@ -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