File:  [Local Repository] / solidite / utils / Makefile
Revision 1.1.1.1 (vendor branch): download - view: text, annotated - select for diffs
Tue Sep 8 00:37:30 2026 UTC (11 days, 2 hours ago) by user
Branches: none, MAIN
CVS tags: notag, HEAD
Migrate host

# Copyright (c) 2026 The Solidite Developers
#
# This program is free software: you can redistribute it and/or modify it under
# the terms of the GNU Affero General Public License as published by the Free
# Software Foundation, either version 3 of the License, or (at your option) any
# later version.
#
# This program is distributed in the hope that it will be useful, but WITHOUT
# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
# FOR A PARTICULAR PURPOSE. See the GNU Affero General Public License for more
# details.
#
# You should have received a copy of the GNU Affero General Public License along
# with this program. If not, see <https://www.gnu.org/licenses/>.

.POSIX:

OUT=../output/bin
INCLUDE=include
TARGET=utils

ifndef CXX
CXX=c++
endif

all: $(TARGET)

$(TARGET):  $(OUT)/basename $(OUT)/cat $(OUT)/chmod \
	$(OUT)/dirname $(OUT)/echo $(OUT)/head \
	$(OUT)/kill $(OUT)/link $(OUT)/logname \
	$(OUT)/ln $(OUT)/mkdir $(OUT)/false \
	$(OUT)/rm $(OUT)/true $(OUT)/tty \
	$(OUT)/uname

$(OUT)/basename:
	$(CROSS_COMPILE)$(CC) $(CFLAGS) basename.c -o $(OUT)/basename

$(OUT)/cat:
	$(CROSS_COMPILE)$(CC) $(CFLAGS) cat.c -o $(OUT)/cat

$(OUT)/chmod:
	$(CROSS_COMPILE)$(CXX) $(CXXFLAGS) chmod.cpp -o $(OUT)/chmod

$(OUT)/dirname:
	$(CROSS_COMPILE)$(CXX) $(CXXFLAGS) dirname.cpp -o $(OUT)/dirname

$(OUT)/echo:
	$(CROSS_COMPILE)$(CXX) $(CXXFLAGS) echo.cpp -o $(OUT)/echo

$(OUT)/head:
	$(CROSS_COMPILE)$(CXX) $(CXXFLAGS) head.cpp -o $(OUT)/head

$(OUT)/kill:
	$(CROSS_COMPILE)$(CXX) $(CXXFLAGS) kill.cpp -o $(OUT)/kill

$(OUT)/link:
	$(CROSS_COMPILE)$(CXX) $(CXXFLAGS) link.cpp -o $(OUT)/link

$(OUT)/logname:
	$(CROSS_COMPILE)$(CC) $(CFLAGS) logname.c -o $(OUT)/logname

$(OUT)/ln:
	$(CROSS_COMPILE)$(CXX) $(CXXFLAGS) ln.cpp -o $(OUT)/ln

$(OUT)/mkdir:
	$(CROSS_COMPILE)$(CXX) $(CXXFLAGS) mkdir.cpp -o $(OUT)/mkdir

$(OUT)/false:
	$(CROSS_COMPILE)$(CC) $(CFLAGS) false.c -o $(OUT)/false

$(OUT)/rm:
	$(CROSS_COMPILE)$(CXX) $(CXXFLAGS) rm.cpp -o $(OUT)/rm

$(OUT)/true:
	$(CROSS_COMPILE)$(CC) $(CFLAGS) true.c -o $(OUT)/true

$(OUT)/tty:
	$(CROSS_COMPILE)$(CC) $(CFLAGS) tty.c -o $(OUT)/tty

$(OUT)/uname:
	$(CROSS_COMPILE)$(CXX) $(CXXFLAGS) uname.cpp -o $(OUT)/uname

FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>