diff options
author | Quentin Carbonneaux <quentin.carbonneaux@yale.edu> | 2016-03-25 20:34:15 -0400 |
---|---|---|
committer | Quentin Carbonneaux <quentin.carbonneaux@yale.edu> | 2016-03-25 20:34:15 -0400 |
commit | aad52241c88ad5327a8488c66dc906c8393c9c92 (patch) | |
tree | 43c6244cf40082b97d49840018e59be5f881a9c9 /src/Makefile | |
parent | 62e238a6ef151d56b79e1f076a57463f2e1fb020 (diff) | |
download | roux-aad52241c88ad5327a8488c66dc906c8393c9c92.tar.gz |
compatibility fixes for mac os
Diffstat (limited to 'src/Makefile')
-rw-r--r-- | src/Makefile | 9 |
1 files changed, 8 insertions, 1 deletions
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: |