From e87ba0f2d8009e8c3e210a70aef6c379fc0ebe92 Mon Sep 17 00:00:00 2001 From: Joris Vink Date: Wed, 9 Sep 2020 22:31:46 +0200 Subject: [PATCH] Add flavors for kore-serve for all platforms. --- Makefile | 5 +++-- tools/kore-serve/conf/build.conf | 16 ++++++++++++++++ 2 files changed, 19 insertions(+), 2 deletions(-) diff --git a/Makefile b/Makefile index 431d386..0a91702 100644 --- a/Makefile +++ b/Makefile @@ -175,7 +175,7 @@ $(VERSION): force exit 1; \ fi -$(KODEV): +$(KODEV): src/cli.c $(MAKE) -C kodev $(KORE): $(OBJDIR) $(S_OBJS) @@ -229,7 +229,8 @@ uninstall: tools-build: $(KODEV) for t in $(TOOLS); do \ cd tools/$$t; \ - env KODEV_OUTPUT=$(KOREPATH) $(KOREPATH)/$(KODEV) build; \ + env KODEV_OUTPUT=$(KOREPATH) KORE_BUILD_FLAVOR=$(OSNAME) \ + $(KOREPATH)/$(KODEV) build; \ cd $(KOREPATH); \ done diff --git a/tools/kore-serve/conf/build.conf b/tools/kore-serve/conf/build.conf index a4a1dc2..c766d6d 100644 --- a/tools/kore-serve/conf/build.conf +++ b/tools/kore-serve/conf/build.conf @@ -9,3 +9,19 @@ cflags=-Wpointer-arith -Wcast-qual -Wsign-compare dev { } + +darwin { +} + +openbsd { +} + +netbsd { +} + +freebsd { +} + +linux { + cflags=-D_GNU_SOURCE +}