###############################################################################
# #
# 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 #
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
###############################################################################
@$(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)