###############################################################################
# #
# IPFire.org - A linux based firewall #
-# Copyright (C) 2007-2017 IPFire Team <info@ipfire.org> #
+# Copyright (C) 2007-2018 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)
+
+ifeq "$(TOOLCHAIN)" "1"
+ TARGET = $(DIR_INFO)/$(THISAPP)-tools
+else
+ TARGET = $(DIR_INFO)/$(THISAPP)
+endif
CFLAGS += -fPIC -DPIC
$(TARGET) : $(patsubst %,$(DIR_DL)/%,$(objects))
@$(PREBUILD)
@rm -rf $(DIR_APP) && cd $(DIR_SRC) && tar axf $(DIR_DL)/$(DL_FILE)
- cd $(DIR_APP) && ./configure --prefix=/usr --shared
+ cd $(DIR_APP) && ./configure --prefix=$(PREFIX) --shared
cd $(DIR_APP) && make $(MAKETUNING)
cd $(DIR_APP) && make install
+ifneq "$(TOOLCHAIN)" "1"
mv -v /usr/lib/libz.so.$(VER) /lib/libz.so.$(VER)
ln -svf libz.so.$(VER) /lib/libz.so.1
ln -svf libz.so.$(VER) /lib/libz.so
rm -vf /usr/lib/libz.so.1
rm -vf /usr/lib/libz.so
+endif
@rm -rf $(DIR_APP)
@$(POSTBUILD)