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
Jonas 'Sortie' Termansen e230854ee9 Removed the idle program.
2012-09-08 18:45:41 +02:00

49 lines
646 B
Makefile

# Set up variables such that we can easily cross-compile.
OSROOT=..
include ../crosscompilemakefile.mak
INITRDDIR:=../initrd
LOCALBINARIES:=\
init \
calc \
cat \
cp \
echo \
rm \
sh \
mxsh \
clear \
ls \
pwd \
help \
uptime \
memstat \
chvideomode \
uname \
kernelinfo \
editor \
kill \
column \
pager \
head \
tail \
type \
BINARIES:=$(addprefix $(INITRDDIR)/,$(LOCALBINARIES))
all: install
install: $(LOCALBINARIES)
cp $(LOCALBINARIES) $(INITRDDIR)
rm -f $(LOCALBINARIES)
%: %.cpp
$(CXX) $(CPPFLAGS) $(CXXFLAGS) -O2 -c $< -o $@.o
$(LD) $(LDFLAGS) $@.o -o $@ $(LIBS)
sh: mxsh
cp $< $@
clean:
rm -f $(BINARIES) $(LOCALBINARIES) *.o