From 38c4979dae8b7a215d356ceaa5a386ccbb126e38 Mon Sep 17 00:00:00 2001 From: "roel@libnfc.org" Date: Mon, 5 Sep 2011 11:44:45 +0000 Subject: [PATCH] fix compiling under MAC OSX --- client/Makefile | 12 ++++++------ client/util.c | 2 +- common/Makefile.common | 2 +- 3 files changed, 8 insertions(+), 8 deletions(-) diff --git a/client/Makefile b/client/Makefile index c76edf52..7224fe06 100644 --- a/client/Makefile +++ b/client/Makefile @@ -31,13 +31,13 @@ MOC = $(shell pkg-config --variable=moc_location QtCore) endif -ifneq ($(QTLDLIBS),) -QTGUI = $(OBJDIR)/proxgui.o $(OBJDIR)/proxguiqt.o $(OBJDIR)/proxguiqt.moc.o -CFLAGS += -DHAVE_GUI -LINK.o = $(LINK.cpp) -else +#ifneq ($(QTLDLIBS),) +#QTGUI = $(OBJDIR)/proxgui.o $(OBJDIR)/proxguiqt.o $(OBJDIR)/proxguiqt.moc.o +#CFLAGS += -DHAVE_GUI +#LINK.o = $(LINK.cpp) +#else QTGUI = guidummy.o -endif +#endif CMDSRCS = \ nonce2key/crapto1.c\ diff --git a/client/util.c b/client/util.c index c7764f70..cbb1bfda 100644 --- a/client/util.c +++ b/client/util.c @@ -14,7 +14,7 @@ #include #include "util.h" -#ifdef __linux__ +#ifndef WIN32 #include #include int ukbhit(void) diff --git a/common/Makefile.common b/common/Makefile.common index 0e3bdd1e..d8968327 100644 --- a/common/Makefile.common +++ b/common/Makefile.common @@ -20,7 +20,7 @@ platform = $(shell uname) all: -CROSS ?= arm-eabi- +CROSS ?= arm-none-eabi- CC = $(CROSS)gcc AS = $(CROSS)as LD = $(CROSS)ld -- 2.39.2