mirror of
https://gitlab.com/sortix/sortix.git
synced 2023-02-13 20:55:38 -05:00
24 lines
319 B
Makefile
24 lines
319 B
Makefile
|
# Set up variables such that we can easily cross-compile.
|
||
|
OSROOT=..
|
||
|
include ../crosscompilemakefile.mak
|
||
|
|
||
|
BINARIES:=\
|
||
|
init \
|
||
|
cat \
|
||
|
sh \
|
||
|
mxsh \
|
||
|
clear \
|
||
|
|
||
|
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
|
||
|
|