Skip to content

Instantly share code, notes, and snippets.

@Wevah
Created March 14, 2016 00:50
Show Gist options
  • Save Wevah/5946a10e1a536c2294bc to your computer and use it in GitHub Desktop.
Save Wevah/5946a10e1a536c2294bc to your computer and use it in GitHub Desktop.
Simple makefile for compiling single-file Cocoa test binaries.
# Toss in a directory
# Usage: make <binname>
# Compiles <binname>.m to <binname>
%: %.m
rm -f $@
$(CC) $(CPPFLAGS) $(CFLAGS) -Wall -fobjc-arc -fmodules $^ -o $@
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment