Annotation of solidite/utils/Makefile, revision 1.1.1.1

1.1       user        1: # Copyright (c) 2026 The Solidite Developers
                      2: #
                      3: # This program is free software: you can redistribute it and/or modify it under
                      4: # the terms of the GNU Affero General Public License as published by the Free
                      5: # Software Foundation, either version 3 of the License, or (at your option) any
                      6: # later version.
                      7: #
                      8: # This program is distributed in the hope that it will be useful, but WITHOUT
                      9: # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
                     10: # FOR A PARTICULAR PURPOSE. See the GNU Affero General Public License for more
                     11: # details.
                     12: #
                     13: # You should have received a copy of the GNU Affero General Public License along
                     14: # with this program. If not, see <https://www.gnu.org/licenses/>.
                     15: 
                     16: .POSIX:
                     17: 
                     18: OUT=../output/bin
                     19: INCLUDE=include
                     20: TARGET=utils
                     21: 
                     22: ifndef CXX
                     23: CXX=c++
                     24: endif
                     25: 
                     26: all: $(TARGET)
                     27: 
                     28: $(TARGET):  $(OUT)/basename $(OUT)/cat $(OUT)/chmod \
                     29:        $(OUT)/dirname $(OUT)/echo $(OUT)/head \
                     30:        $(OUT)/kill $(OUT)/link $(OUT)/logname \
                     31:        $(OUT)/ln $(OUT)/mkdir $(OUT)/false \
                     32:        $(OUT)/rm $(OUT)/true $(OUT)/tty \
                     33:        $(OUT)/uname
                     34: 
                     35: $(OUT)/basename:
                     36:        $(CROSS_COMPILE)$(CC) $(CFLAGS) basename.c -o $(OUT)/basename
                     37: 
                     38: $(OUT)/cat:
                     39:        $(CROSS_COMPILE)$(CC) $(CFLAGS) cat.c -o $(OUT)/cat
                     40: 
                     41: $(OUT)/chmod:
                     42:        $(CROSS_COMPILE)$(CXX) $(CXXFLAGS) chmod.cpp -o $(OUT)/chmod
                     43: 
                     44: $(OUT)/dirname:
                     45:        $(CROSS_COMPILE)$(CXX) $(CXXFLAGS) dirname.cpp -o $(OUT)/dirname
                     46: 
                     47: $(OUT)/echo:
                     48:        $(CROSS_COMPILE)$(CXX) $(CXXFLAGS) echo.cpp -o $(OUT)/echo
                     49: 
                     50: $(OUT)/head:
                     51:        $(CROSS_COMPILE)$(CXX) $(CXXFLAGS) head.cpp -o $(OUT)/head
                     52: 
                     53: $(OUT)/kill:
                     54:        $(CROSS_COMPILE)$(CXX) $(CXXFLAGS) kill.cpp -o $(OUT)/kill
                     55: 
                     56: $(OUT)/link:
                     57:        $(CROSS_COMPILE)$(CXX) $(CXXFLAGS) link.cpp -o $(OUT)/link
                     58: 
                     59: $(OUT)/logname:
                     60:        $(CROSS_COMPILE)$(CC) $(CFLAGS) logname.c -o $(OUT)/logname
                     61: 
                     62: $(OUT)/ln:
                     63:        $(CROSS_COMPILE)$(CXX) $(CXXFLAGS) ln.cpp -o $(OUT)/ln
                     64: 
                     65: $(OUT)/mkdir:
                     66:        $(CROSS_COMPILE)$(CXX) $(CXXFLAGS) mkdir.cpp -o $(OUT)/mkdir
                     67: 
                     68: $(OUT)/false:
                     69:        $(CROSS_COMPILE)$(CC) $(CFLAGS) false.c -o $(OUT)/false
                     70: 
                     71: $(OUT)/rm:
                     72:        $(CROSS_COMPILE)$(CXX) $(CXXFLAGS) rm.cpp -o $(OUT)/rm
                     73: 
                     74: $(OUT)/true:
                     75:        $(CROSS_COMPILE)$(CC) $(CFLAGS) true.c -o $(OUT)/true
                     76: 
                     77: $(OUT)/tty:
                     78:        $(CROSS_COMPILE)$(CC) $(CFLAGS) tty.c -o $(OUT)/tty
                     79: 
                     80: $(OUT)/uname:
                     81:        $(CROSS_COMPILE)$(CXX) $(CXXFLAGS) uname.cpp -o $(OUT)/uname

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