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

Add Makefile for Mac OS X

parent 2adde4a4
TARGET = main
LIBS =
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 $@
.PRECIOUS: $(TARGET) $(OBJECTS)
$(TARGET): $(OBJECTS)
$(CC) $(OBJECTS) -Wl,-stack_size,0x1000000 -g -Wall $(LIBS) -o $@
clean:
-rm -f *.o
-rm -f $(TARGET)
Markdown is supported
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