From 8879b1282710f33e2351895f06949fd0862f3863 Mon Sep 17 00:00:00 2001 From: Andrew Pamment Date: Sun, 19 Mar 2017 08:06:01 +1000 Subject: [PATCH] Modified to support freebsd --- utils/magimail/src/Makefile.linux | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/utils/magimail/src/Makefile.linux b/utils/magimail/src/Makefile.linux index 1f798c7..ae9da01 100644 --- a/utils/magimail/src/Makefile.linux +++ b/utils/magimail/src/Makefile.linux @@ -38,8 +38,11 @@ MBOBJS = $(MBOBJS_MSG) $(MBOBJS_JAM) $(MBOBJS_SQ3) DEFS = $(PLATFORMDEF) $(MBDEFS) $(NLDEFS) # Commands - -CC = gcc $(CPPFLAGS) $(CFLAGS) $(DEFS) $(LDFLAGS) -I $(INCDIR) -I ../../../deps/ -Wall +ifeq (`uname -s`, FreeBSD) + CC = cc $(CPPFLAGS) $(CFLAGS) $(DEFS) $(LDFLAGS) -I $(INCDIR) -I ../../../deps/ -Wall +else + CC = gcc $(CPPFLAGS) $(CFLAGS) $(DEFS) $(LDFLAGS) -I $(INCDIR) -I ../../../deps/ -Wall +endif RM = rm -f STRIP = strip