You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
|
|
M_SOURCES=$(shell find . -name "*.m")
|
|
|
|
C_SOURCES=$(shell find . -name "*.c")
|
|
|
|
M_OBJECTS=$(M_SOURCES:.m=.o)
|
|
|
|
C_OBJECTS=$(C_SOURCES:.c=.o)
|
|
|
|
CC=clang
|
|
|
|
XCODE_PATH=$(shell xcode-select -p)
|
|
|
|
IPHONE_SIMULATOR_PATH=$(XCODE_PATH)/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator.sdk
|
|
|
|
FLAGS=--target=x86_64-apple-darwin14 -x objective-c -c -mios-simulator-version-min=8.2 -isysroot $(IPHONE_SIMULATOR_PATH)
|
|
|
|
|
|
|
|
default: test
|
|
|
|
|
|
|
|
all: test
|
|
|
|
|
|
|
|
.PHONY: test
|
|
|
|
test: $(C_OBJECTS) $(M_OBJECTS)
|
|
|
|
echo "test called\n"
|
|
|
|
|
|
|
|
.PHONY: configure
|
|
|
|
configure:
|
|
|
|
echo "no configure required\n"
|
|
|
|
|
|
|
|
clean:
|
|
|
|
rm -rf $(M_OBJECTS)
|
|
|
|
rm -rf $(C_OBJECTS)
|
|
|
|
|
|
|
|
%.o: %.m
|
|
|
|
$(CC) $(FLAGS) $< -o $@
|
|
|
|
|
|
|
|
%.o: %.c
|
|
|
|
$(CC) $(FLAGS) $< -o $@
|