Skip to content
Snippets Groups Projects
Commit 41a77020 authored by Sven Gestegård Robertz's avatar Sven Gestegård Robertz
Browse files

hacked Makefiles to make it build on macOs

parent 9a42874e
No related branches found
No related tags found
No related merge requests found
......@@ -4,10 +4,14 @@ TARGETS=client server
LABCOMM_JAR=../../compiler/labcomm2014_compiler.jar
LABCOMM=java -jar $(LABCOMM_JAR)
#include ../../lib/c/os_compat.mk
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
CFLAGS+=-DLABCOMM_COMPAT=\"labcomm2014_compat_osx.h\" -DLABCOMM_OS_DARWIN=1
else
CFLAGS+=-Wno-tautological-compare
endif
all: $(TARGETS:%=gen/%)
......
......@@ -15,7 +15,7 @@ else ifeq ($(UNAME_S),Darwin)
CC=$(CROSS_COMPILE)gcc
LD=$(CROSS_COMPILE)gcc
CFLAGS=-g -Wall -Werror -O3 -I. -Itest \
-DLABCOMM_COMPAT=\"labcomm_compat_osx.h\" \
-DLABCOMM_COMPAT=\"labcomm$(LIBVERSION)_compat_osx.h\" \
-DLABCOMM_OS_DARWIN=1
# -Wno-tautological-compare -Wno-unused-function
CFLAGS+=-std=c99
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment