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

63 lines
761 B
Makefile
Raw Normal View History

2012-09-10 17:36:15 -04:00
include ../compiler.mak
include ../version.mak
include ../dirs.mak
2012-09-10 17:36:15 -04:00
ifndef OPTLEVEL
OPTLEVEL=-O2
endif
2012-09-10 17:36:15 -04:00
ifndef CXXFLAGS
CXXFLAGS:=$(OPTLEVEL)
endif
CXXFLAGS:=$(CXXFLAGS) -Wall -Wextra -fno-exceptions -fno-rtti
BINARIES:=\
init \
calc \
cat \
2011-11-21 08:57:02 -05:00
cp \
2011-11-25 18:54:17 -05:00
echo \
2011-11-21 12:49:55 -05:00
rm \
sh \
mxsh \
clear \
2011-08-27 17:26:11 -04:00
ls \
2012-02-29 18:27:30 -05:00
pwd \
2011-08-27 17:26:11 -04:00
help \
2011-11-28 10:28:56 -05:00
uptime \
memstat \
chvideomode \
2011-08-27 17:26:11 -04:00
uname \
kernelinfo \
editor \
kill \
2012-03-01 08:36:56 -05:00
column \
pager \
2012-03-02 18:29:24 -05:00
head \
tail \
type \
2012-09-10 17:36:15 -04:00
all: $(BINARIES)
.PHONY: all install uninstall clean
2012-09-10 17:36:15 -04:00
install: all
mkdir -p $(INSTALLBINDIR)/$(HOST)
install $(BINARIES) $(INSTALLBINDIR)/$(HOST)
2012-09-10 17:36:15 -04:00
uninstall:
for FILE in $(INSTALLBINDIR); do \
rm -f $(INSTALLBINDIR)/$(HOST)/$$FILE; \
done
%: %.cpp
2012-09-10 17:36:15 -04:00
$(CXX) $(CPPFLAGS) $(CXXFLAGS) $< -o $@
sh: mxsh
cp $< $@
clean:
2012-09-10 17:36:15 -04:00
rm -f $(BINARIES) *.o