summaryrefslogtreecommitdiff
path: root/compile.mk
diff options
context:
space:
mode:
authorAndrew Belt <andrewpbelt@gmail.com>2024-03-26 11:54:13 -0400
committerAndrew Belt <andrewpbelt@gmail.com>2024-03-26 11:54:13 -0400
commitdb77137a23695a420d70d4377ce5a9a5a27cdce5 (patch)
tree1904f3898bac5fe69290462f91ba4e2d5c8b8e15 /compile.mk
parentbe06ea09f08965f2471b6ca8edc02c4f04ee4a23 (diff)
Compile .m and .mm files in src/ on Mac.
Diffstat (limited to 'compile.mk')
-rw-r--r--compile.mk4
1 files changed, 4 insertions, 0 deletions
diff --git a/compile.mk b/compile.mk
index 011b4363..bbda7652 100644
--- a/compile.mk
+++ b/compile.mk
@@ -94,6 +94,10 @@ build/%.m.o: %.m
@mkdir -p $(@D)
$(CC) $(CFLAGS) -c -o $@ $<
+build/%.mm.o: %.mm
+ @mkdir -p $(@D)
+ $(CC) $(CXXFLAGS) -c -o $@ $<
+
build/%.bin.o: %
@mkdir -p $(@D)
ifdef ARCH_LIN