File size: 470 Bytes
848e392 | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 | CC = xcrun clang
CFLAGS = -O2 -Wall -Wno-deprecated-declarations -fobjc-arc -fPIC
FRAMEWORKS = -framework Foundation -framework IOSurface -ldl
TARGET = libane_bridge.dylib
all: $(TARGET)
$(TARGET): ane_bridge.m ane_bridge.h
$(CC) $(CFLAGS) -dynamiclib -o $@ ane_bridge.m $(FRAMEWORKS)
test: test_bridge.m ane_bridge.h $(TARGET)
$(CC) $(CFLAGS) -o test_bridge test_bridge.m -L. -lane_bridge $(FRAMEWORKS)
clean:
rm -f $(TARGET) test_bridge
.PHONY: all clean test
|