Another try at freebsd makefiles

This commit is contained in:
Andrew Pamment 2017-03-19 08:13:25 +10:00
parent cd06522917
commit 0dee34480f
2 changed files with 7 additions and 2 deletions

View File

@ -5,6 +5,8 @@
PLATFORMDEF = -DPLATFORM_LINUX
EXESUFFIX =
OS = `uname -s`
BINDIR = ../bin
OBJDIR = obj
INCDIR = ./
@ -38,7 +40,7 @@ MBOBJS = $(MBOBJS_MSG) $(MBOBJS_JAM) $(MBOBJS_SQ3)
DEFS = $(PLATFORMDEF) $(MBDEFS) $(NLDEFS)
# Commands
ifeq (`uname -s`, FreeBSD)
ifeq ($(OS), FreeBSD)
CC = cc $(CPPFLAGS) $(CFLAGS) $(DEFS) $(LDFLAGS) -I $(INCDIR) -I ../../../deps/ -Wall
else
CC = gcc $(CPPFLAGS) $(CFLAGS) $(DEFS) $(LDFLAGS) -I $(INCDIR) -I ../../../deps/ -Wall

View File

@ -1,6 +1,9 @@
INCDIR = ../
ifeq (`uname -s`, FreeBSD)
OS = `uname -s`
ifeq ($(OS), FreeBSD)
CC = cc $(CPPFLAGS) $(CFLAGS) -DPLATFORM_LINUX $(LDFLAGS) -I $(INCDIR) -Wall
else
CC = gcc $(CPPFLAGS) $(CFLAGS) -DPLATFORM_LINUX $(LDFLAGS) -I $(INCDIR) -Wall