Commit b64d0b30 authored by Jurriën Stutterheim's avatar Jurriën Stutterheim
Browse files

Add Makefile for Mac OS X

parent 2adde4a4
TARGET = main
CC = clang++
CFLAGS = -g -x c++ -Wno-write-strings # -fstack-usage
.PHONY: default all clean
default: $(TARGET)
all: default
OBJECTS = $(patsubst %.c, %.o, $(wildcard *.c))
HEADERS = $(wildcard *.h)
%.o: %.c $(HEADERS)
$(CC) $(CFLAGS) -c $< -o $@
$(CC) $(OBJECTS) -Wl,-stack_size,0x1000000 -g -Wall $(LIBS) -o $@
-rm -f *.o
-rm -f $(TARGET)
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment