FreeBSD makefiles again

This commit is contained in:
Andrew Pamment 2017-03-19 08:21:30 +10:00
parent 0dee34480f
commit 01822c6855
3 changed files with 9 additions and 3 deletions

View File

@ -5,7 +5,7 @@
PLATFORMDEF = -DPLATFORM_LINUX
EXESUFFIX =
OS = `uname -s`
OS := $(shell uname -s)
BINDIR = ../bin
OBJDIR = obj

View File

@ -1,7 +1,7 @@
INCDIR = ../
OS = `uname -s`
OS := $(shell uname -s)
ifeq ($(OS), FreeBSD)
CC = cc $(CPPFLAGS) $(CFLAGS) -DPLATFORM_LINUX $(LDFLAGS) -I $(INCDIR) -Wall

View File

@ -1,6 +1,12 @@
INCDIR = ../
CC = gcc $(CPPFLAGS) $(CFLAGS) $(LDFLAGS) -Wall -I $(INCDIR) -DPLATFORM_LINUX -g
OS := $(shell uname -s)
ifeq ($(OS), FreeBSD)
CC = gcc $(CPPFLAGS) $(CFLAGS) $(LDFLAGS) -Wall -I $(INCDIR) -DPLATFORM_LINUX -g
else
CC = cc $(CPPFLAGS) $(CFLAGS) $(LDFLAGS) -Wall -I $(INCDIR) -DPLATFORM_LINUX -g
endif
AR = ar -ru
RM = rm -f