From 598b1368b93556b51a4b3415691520b0b5f69407 Mon Sep 17 00:00:00 2001
From: Sven Gestegard Robertz <sven.robertz@cs.lth.se>
Date: Mon, 19 Jan 2015 17:29:05 +0100
Subject: [PATCH] hacked twoway makefile for OS X

---
 examples/twoway/Makefile | 9 +++++++--
 1 file changed, 7 insertions(+), 2 deletions(-)

diff --git a/examples/twoway/Makefile b/examples/twoway/Makefile
index d4e5c7e..cad00ed 100644
--- a/examples/twoway/Makefile
+++ b/examples/twoway/Makefile
@@ -1,9 +1,14 @@
+UNAME_S=$(shell uname -s)
+
 TARGETS=client server
 LABCOMM_JAR=../../compiler/labcomm_compiler.jar
 LABCOMM=java -jar $(LABCOMM_JAR) 
 
-include ../../lib/c/os_compat.mk
-CFLAGS+=-I../../lib/c/2014 -I.
+CFLAGS=-O3 -g -Wall -Werror -I../../lib/c/2014 -I. -Wno-unused-function
+
+ifeq ($(UNAME_S),Darwin)
+    CFLAGS+=-DLABCOMM_COMPAT=\"labcomm_compat_osx.h\" -DLABCOMM_OS_DARWIN=1  -Wno-tautological-compare
+endif
 
 all: $(TARGETS:%=gen/%)
 
-- 
GitLab