sortix-mirror/utils/Makefile

27 lines
339 B
Makefile
Raw Normal View History

# Set up variables such that we can easily cross-compile.
OSROOT=..
include ../crosscompilemakefile.mak
BINARIES:=\
init \
cat \
sh \
mxsh \
clear \
2011-08-27 21:26:11 +00:00
ls \
help \
uname \
all: $(BINARIES)
%: %.cpp
$(CXX) $(CPPFLAGS) $(CXXFLAGS) -O2 -c $< -o $@.o
$(LD) $(LDFLAGS) $@.o -o $@ $(LIBS)
sh: mxsh
cp mxsh sh
clean:
rm -f $(BINARIES) *.o