From aad52241c88ad5327a8488c66dc906c8393c9c92 Mon Sep 17 00:00:00 2001 From: Quentin Carbonneaux Date: Fri, 25 Mar 2016 20:34:15 -0400 Subject: compatibility fixes for mac os --- src/Makefile | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) (limited to 'src/Makefile') diff --git a/src/Makefile b/src/Makefile index b9c87df..9f13008 100644 --- a/src/Makefile +++ b/src/Makefile @@ -6,7 +6,14 @@ CFLAGS = -Wall -Wextra -std=c99 -g -pedantic $(BIN): $(OBJ) $(CC) $(LDFLAGS) $(OBJ) -o $@ -$(OBJ): all.h +$(OBJ): all.h config.h + +config.h: + @case `uname` in \ + *Darwin*) echo "#define Defaultasm Gasmacho" ;; \ + *Linux*) echo "#define Defaultasm Gaself" ;; \ + esac > $@ + .PHONY: clean check syndoc clean: -- cgit 1.4.1