79 lines
3 KiB
Text
79 lines
3 KiB
Text
$NetBSD: patch-makefile,v 1.20 2017/09/09 22:40:58 dholland Exp $
|
|
|
|
Treat all BSDs the same.
|
|
Add missing rules for building with clang on FreeBSD and NetBSD.
|
|
|
|
--- makefile.orig 2017-03-29 03:12:20.000000000 +0000
|
|
+++ makefile
|
|
@@ -180,19 +180,19 @@ GENIEOS := solaris
|
|
endif
|
|
ifeq ($(firstword $(filter FreeBSD,$(UNAME))),FreeBSD)
|
|
OS := freebsd
|
|
-GENIEOS := freebsd
|
|
+GENIEOS := bsd
|
|
endif
|
|
ifeq ($(firstword $(filter GNU/kFreeBSD,$(UNAME))),GNU/kFreeBSD)
|
|
OS := freebsd
|
|
-GENIEOS := freebsd
|
|
+GENIEOS := bsd
|
|
endif
|
|
ifeq ($(firstword $(filter NetBSD,$(UNAME))),NetBSD)
|
|
OS := netbsd
|
|
-GENIEOS := freebsd
|
|
+GENIEOS := bsd
|
|
endif
|
|
ifeq ($(firstword $(filter OpenBSD,$(UNAME))),OpenBSD)
|
|
OS := openbsd
|
|
-GENIEOS := freebsd
|
|
+GENIEOS := bsd
|
|
endif
|
|
ifeq ($(firstword $(filter Darwin,$(UNAME))),Darwin)
|
|
OS := macosx
|
|
@@ -1357,6 +1357,23 @@ freebsd_x86: generate $(PROJECTDIR)/$(MA
|
|
$(SILENT) $(MAKE) -C $(PROJECTDIR)/$(MAKETYPE)-freebsd config=$(CONFIG)32
|
|
|
|
#-------------------------------------------------
|
|
+# gmake-freebsd-clang
|
|
+#-------------------------------------------------
|
|
+
|
|
+$(PROJECTDIR)/$(MAKETYPE)-freebsd-clang/Makefile: makefile $(SCRIPTS) $(GENIE)
|
|
+ $(SILENT) $(GENIE) $(PARAMS) $(TARGET_PARAMS) --gcc=freebsd-clang --gcc_version=$(CLANG_VERSION) $(MAKETYPE)
|
|
+
|
|
+.PHONY: freebsd_x64_clang
|
|
+freebsd_x64_clang: generate $(PROJECTDIR)/$(MAKETYPE)-freebsd-clang/Makefile
|
|
+ $(SILENT) $(MAKE) -C $(PROJECTDIR)/$(MAKETYPE)-freebsd-clang config=$(CONFIG)64 precompile
|
|
+ $(SILENT) $(MAKE) -C $(PROJECTDIR)/$(MAKETYPE)-freebsd-clang config=$(CONFIG)64
|
|
+
|
|
+.PHONY: freebsd_x86_clang
|
|
+freebsd_x86_clang: generate $(PROJECTDIR)/$(MAKETYPE)-freebsd-clang/Makefile
|
|
+ $(SILENT) $(MAKE) -C $(PROJECTDIR)/$(MAKETYPE)-freebsd-clang config=$(CONFIG)32 precompile
|
|
+ $(SILENT) $(MAKE) -C $(PROJECTDIR)/$(MAKETYPE)-freebsd-clang config=$(CONFIG)32
|
|
+
|
|
+#-------------------------------------------------
|
|
# gmake-netbsd
|
|
#-------------------------------------------------
|
|
|
|
@@ -1377,6 +1394,23 @@ netbsd_x86: generate $(PROJECTDIR)/$(MAK
|
|
$(SILENT) $(MAKE) -C $(PROJECTDIR)/$(MAKETYPE)-netbsd config=$(CONFIG)32
|
|
|
|
#-------------------------------------------------
|
|
+# gmake-netbsd-clang
|
|
+#-------------------------------------------------
|
|
+
|
|
+$(PROJECTDIR)/$(MAKETYPE)-netbsd-clang/Makefile: makefile $(SCRIPTS) $(GENIE)
|
|
+ $(SILENT) $(GENIE) $(PARAMS) $(TARGET_PARAMS) --gcc=netbsd-clang --gcc_version=$(CLANG_VERSION) $(MAKETYPE)
|
|
+
|
|
+.PHONY: netbsd_x64_clang
|
|
+netbsd_x64_clang: generate $(PROJECTDIR)/$(MAKETYPE)-netbsd-clang/Makefile
|
|
+ $(SILENT) $(MAKE) -C $(PROJECTDIR)/$(MAKETYPE)-netbsd-clang config=$(CONFIG)64 precompile
|
|
+ $(SILENT) $(MAKE) -C $(PROJECTDIR)/$(MAKETYPE)-netbsd-clang config=$(CONFIG)64
|
|
+
|
|
+.PHONY: netbsd_x86_clang
|
|
+netbsd_x86_clang: generate $(PROJECTDIR)/$(MAKETYPE)-netbsd-clang/Makefile
|
|
+ $(SILENT) $(MAKE) -C $(PROJECTDIR)/$(MAKETYPE)-netbsd-clang config=$(CONFIG)32 precompile
|
|
+ $(SILENT) $(MAKE) -C $(PROJECTDIR)/$(MAKETYPE)-netbsd-clang config=$(CONFIG)32
|
|
+
|
|
+#-------------------------------------------------
|
|
# gmake-openbsd
|
|
#-------------------------------------------------
|
|
|