Browse Source

Compile .m and .mm files in src/ on Mac.

tags/v2.5.0
Andrew Belt 7 months ago
parent
commit
db77137a23
2 changed files with 6 additions and 0 deletions
  1. +2
    -0
      Makefile
  2. +4
    -0
      compile.mk

+ 2
- 0
Makefile View File

@@ -43,6 +43,8 @@ ifdef ARCH_MAC
SED := sed -i '' SED := sed -i ''
TARGET := libRack.dylib TARGET := libRack.dylib


SOURCES += $(wildcard src/*.m src/*/*.m)
SOURCES += $(wildcard src/*.mm src/*/*.mm)
SOURCES += dep/osdialog/osdialog_mac.m SOURCES += dep/osdialog/osdialog_mac.m
LDFLAGS += -lpthread -ldl LDFLAGS += -lpthread -ldl
LDFLAGS += -framework SystemConfiguration -framework Cocoa -framework OpenGL -framework IOKit -framework CoreVideo -framework CoreAudio -framework CoreMIDI LDFLAGS += -framework SystemConfiguration -framework Cocoa -framework OpenGL -framework IOKit -framework CoreVideo -framework CoreAudio -framework CoreMIDI


+ 4
- 0
compile.mk View File

@@ -94,6 +94,10 @@ build/%.m.o: %.m
@mkdir -p $(@D) @mkdir -p $(@D)
$(CC) $(CFLAGS) -c -o $@ $< $(CC) $(CFLAGS) -c -o $@ $<


build/%.mm.o: %.mm
@mkdir -p $(@D)
$(CC) $(CXXFLAGS) -c -o $@ $<

build/%.bin.o: % build/%.bin.o: %
@mkdir -p $(@D) @mkdir -p $(@D)
ifdef ARCH_LIN ifdef ARCH_LIN


Loading…
Cancel
Save