Add support for OpenBSD
This commit is contained in:
parent
100971a37a
commit
efceb9d12b
12
Makefile.new
12
Makefile.new
|
@ -4,7 +4,7 @@ CFLAGS = -fPIC -Iinclude -I. -W -Wunused -Wall
|
||||||
# Additional CFLAGS for debug build
|
# Additional CFLAGS for debug build
|
||||||
DFLAGS = -O0 -g
|
DFLAGS = -O0 -g
|
||||||
|
|
||||||
# Addditional CFLAGS for stable build
|
# Addditional CFLAGS for release build
|
||||||
RFLAGS = -O3 -s
|
RFLAGS = -O3 -s
|
||||||
|
|
||||||
# Flags to pass to the linker
|
# Flags to pass to the linker
|
||||||
|
@ -43,6 +43,13 @@ ifeq "$(PLATFORM)" "Linux"
|
||||||
ESUFFIX :=
|
ESUFFIX :=
|
||||||
LSUFFIX := .so
|
LSUFFIX := .so
|
||||||
endif
|
endif
|
||||||
|
ifeq "$(PLATFORM)" "OpenBSD"
|
||||||
|
CC := clang
|
||||||
|
MD := mkdir -p
|
||||||
|
RM := rm -rfv
|
||||||
|
ESUFFIX :=
|
||||||
|
LSUFFIX := .so
|
||||||
|
endif
|
||||||
ifeq "$(PLATFORM)" "Windows"
|
ifeq "$(PLATFORM)" "Windows"
|
||||||
CC := gcc
|
CC := gcc
|
||||||
MD := md
|
MD := md
|
||||||
|
@ -65,7 +72,7 @@ SAPI := $(subst /,,$(subst sapi/,,$(dir $(wildcard sapi/*/))))
|
||||||
|
|
||||||
|
|
||||||
.SUFFIXES:
|
.SUFFIXES:
|
||||||
.PHONY: clean debug release test
|
.PHONY: clean debug release style test
|
||||||
|
|
||||||
debug: export CFLAGS := $(CFLAGS) $(DFLAGS)
|
debug: export CFLAGS := $(CFLAGS) $(DFLAGS)
|
||||||
debug: engine sapi module
|
debug: engine sapi module
|
||||||
|
@ -102,4 +109,3 @@ $(SAPI):
|
||||||
|
|
||||||
clean:
|
clean:
|
||||||
$(RM) $(BUILD_DIR)
|
$(RM) $(BUILD_DIR)
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue