Adding OS-specific section for OpenBSD.
authorDavid Griffith <dave@661.org>
Fri, 13 Sep 2019 18:18:23 +0000 (11:18 -0700)
committerDavid Griffith <dave@661.org>
Fri, 13 Sep 2019 18:18:23 +0000 (11:18 -0700)
Makefile

index 3c67ea1d67d9aa9a196f5e837681a6b58ad26e02..d2797cfce5bc46faeeaf2b7da698209aaeccaf8c 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -31,6 +31,12 @@ ifneq ($(OS),Windows_NT)
        LDFLAGS += -L/usr/local/lib
        SDL_LDFLAGS += -lexecinfo
     endif
+    ifeq ($(UNAME_S),OpenBSD)
+       OPENBSD = yes
+       CFLAGS += -I/usr/local/include
+       LDFLAGS += -L/usr/local/lib
+       SDL_LDFLAGS += -lexecinfo
+    endif
     ifeq ($(UNAME_S),Linux)
        CFLAGS += -D_POSIX_C_SOURCE=200809L
        NPROCS = $(shell grep -c ^processor /proc/cpuinfo)