sortix-mirror/hello/Makefile

16 lines
285 B
Makefile

# Set up variables such that we can easily cross-compile.
OSROOT=..
include ../crosscompilemakefile.mak
all: hello
hello: hello.o
$(LD) $(LDFLAGS) hello.o -o hello $(LIBS)
hello.o: hello.cpp
$(CXX) $(CPPFLAGS) $(CXXFLAGS) -O2 -c hello.cpp -o hello.o
clean:
rm -f hello.o hello