###############################################################################
# #
# 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 = fmt
-PAK_VER = 9
+PAK_VER = 10
DEPS =
+SERVICES =
+
+# Normal build or $(TOOLS_DIR) build.
+#
+ifeq "$(ROOT)" ""
+ TARGET = $(DIR_INFO)/$(THISAPP)
+ CMAKE_OPTIONS = \
+ -D CMAKE_INSTALL_PREFIX=/usr \
+ -D BUILD_SHARED_LIBS=TRUE
+else
+ TARGET = $(DIR_INFO)/$(THISAPP)-tools
+ CMAKE_OPTIONS = \
+ -D CMAKE_INSTALL_PREFIX=$(TOOLS_DIR) \
+ -D BUILD_SHARED_LIBS=TRUE
+endif
+
###############################################################################
# Top-level Rules
###############################################################################
@$(PREBUILD)
@rm -rf $(DIR_APP) && cd $(DIR_SRC) && tar axf $(DIR_DL)/$(DL_FILE)
cd $(DIR_APP) && mkdir -pv build
- cd $(DIR_APP)/build && cmake .. \
- -D CMAKE_INSTALL_PREFIX=/usr \
- -D BUILD_SHARED_LIBS=TRUE
+ cd $(DIR_APP)/build && cmake \
+ $(CMAKE_OPTIONS) \
+ ..
cd $(DIR_APP)/build && make $(MAKETUNING)
cd $(DIR_APP)/build && make install
@rm -rf $(DIR_APP)