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

80 lines
1 KiB
Makefile
Raw Normal View History

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