1
0
Fork 0
mirror of https://gitlab.com/sortix/sortix.git synced 2023-02-13 20:55:38 -05:00
sortix--sortix/utils/Makefile

77 lines
935 B
Makefile
Raw Normal View History

SOFTWARE_MEANT_FOR_SORTIX=1
2012-09-10 17:36:15 -04:00
include ../compiler.mak
include ../version.mak
include ../dirs.mak
OPTLEVEL?=$(DEFAULT_OPTLEVEL)
CXXFLAGS?=$(OPTLEVEL)
2012-09-10 17:36:15 -04:00
CPPFLAGS:=$(CPPFLAGS) -DVERSIONSTR=\"$(VERSION)\"
2012-09-10 17:36:15 -04:00
CXXFLAGS:=$(CXXFLAGS) -Wall -Wextra -fno-exceptions -fno-rtti
BINARIES:=\
2014-03-08 10:42:27 -05:00
basename \
calc \
cat \
2013-06-18 07:40:12 -04:00
chmod \
2013-05-29 18:58:56 -04:00
chroot \
2013-02-23 11:42:23 -05:00
chvideomode \
clear \
2013-03-16 17:41:48 -04:00
colormake \
2013-02-23 11:42:23 -05:00
column \
2013-06-09 07:44:34 -04:00
command-not-found \
2011-11-21 08:57:02 -05:00
cp \
2013-05-15 14:29:49 -04:00
date \
2014-03-08 10:42:27 -05:00
dirname \
2013-10-17 14:55:54 -04:00
du \
2011-11-25 18:54:17 -05:00
echo \
2013-02-23 11:42:23 -05:00
editor \
2014-02-28 16:46:58 -05:00
env \
2014-03-06 18:07:11 -05:00
expr \
2013-11-11 09:07:56 -05:00
false \
2013-02-17 08:23:04 -05:00
find \
2013-02-23 11:42:23 -05:00
head \
2011-08-27 17:26:11 -04:00
help \
2013-02-23 11:42:23 -05:00
init \
2013-02-19 15:41:53 -05:00
install-file \
kernelinfo \
kill \
2013-02-23 11:42:23 -05:00
ln \
ls \
memstat \
mkdir \
2013-02-16 10:28:40 -05:00
mv \
pager \
2013-02-23 11:42:23 -05:00
pwd \
rm \
rmdir \
sh \
2014-03-07 20:02:02 -05:00
sort \
sortix-sh \
2012-03-02 18:29:24 -05:00
tail \
2013-05-14 19:51:09 -04:00
time \
2014-03-09 10:31:13 -04:00
tr \
2013-11-11 09:07:56 -05:00
true \
type \
2013-02-23 11:42:23 -05:00
uname \
2014-03-07 23:41:35 -05:00
uniq \
2013-02-23 11:42:23 -05:00
uptime \
2013-10-16 16:57:54 -04:00
wc \
2012-12-09 13:10:59 -05:00
which \
2012-09-10 17:36:15 -04:00
all: $(BINARIES)
.PHONY: all install clean
2012-09-10 17:36:15 -04:00
install: all
mkdir -p $(DESTDIR)$(BINDIR)
install $(BINARIES) $(DESTDIR)$(BINDIR)
2013-02-19 15:41:53 -05:00
install install-file $(DESTDIR)$(BINDIR)/install
%: %.cpp
$(CXX) -std=gnu++11 $(CPPFLAGS) $(CXXFLAGS) $< -o $@
clean:
2012-09-10 17:36:15 -04:00
rm -f $(BINARIES) *.o