]> git.ipfire.org Git - ipfire-2.x.git/commitdiff
libxxhash: Use in place of ccache bundled version
authorAdolf Belka <adolf.belka@ipfire.org>
Mon, 16 Feb 2026 10:52:22 +0000 (11:52 +0100)
committerMichael Tremer <michael.tremer@ipfire.org>
Tue, 17 Feb 2026 16:42:20 +0000 (16:42 +0000)
Signed-off-by: Adolf Belka <adolf.belka@ipfire.org>
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
lfs/libxxhash

index 024a88f8919f244b9358c440ec701b992a8355c1..3b1c6d6eab48a35b1b2d967d17b3d10c2764b0da 100644 (file)
@@ -1,7 +1,7 @@
 ###############################################################################
 #                                                                             #
 # IPFire.org - A linux based firewall                                         #
-# Copyright (C) 2007-2025  IPFire Team  <info@ipfire.org>                     #
+# Copyright (C) 2007-2026  IPFire Team  <info@ipfire.org>                     #
 #                                                                             #
 # This program is free software: you can redistribute it and/or modify        #
 # it under the terms of the GNU General Public License as published by        #
@@ -31,14 +31,21 @@ THISAPP    = xxHash-$(VER)
 DL_FILE    = $(THISAPP).tar.gz
 DL_FROM    = $(URL_IPFIRE)
 DIR_APP    = $(DIR_SRC)/$(THISAPP)
-TARGET     = $(DIR_INFO)/$(THISAPP)
 PROG       = libxxhash
-PAK_VER    = 2
+PAK_VER    = 3
 
 DEPS       =
 
 SERVICES   =
 
+# Normal build or $(TOOLS_DIR) build.
+#
+ifeq "$(ROOT)" ""
+  TARGET     = $(DIR_INFO)/$(THISAPP)
+else
+  TARGET     = $(DIR_INFO)/$(THISAPP)-tools
+endif
+
 ###############################################################################
 # Top-level Rules
 ###############################################################################
@@ -81,6 +88,10 @@ $(TARGET) : $(patsubst %,$(DIR_DL)/%,$(objects))
        @$(PREBUILD)
        @rm -rf $(DIR_APP) && cd $(DIR_SRC) && tar axf $(DIR_DL)/$(DL_FILE)
        cd $(DIR_APP) && make $(MAKETUNING)
+ifeq "$(ROOT)" ""
        cd $(DIR_APP) && PREFIX=$(PREFIX) make install
+else
+       cd $(DIR_APP) && PREFIX=$(TOOLS_DIR) make install
+endif
        @rm -rf $(DIR_APP)
        @$(POSTBUILD)