2011-08-22 22:29:59 +00:00
|
|
|
# Set up variables such that we can easily cross-compile.
|
|
|
|
OSROOT=..
|
|
|
|
include ../crosscompilemakefile.mak
|
2011-08-05 12:25:00 +00:00
|
|
|
|
|
|
|
all: hello
|
|
|
|
|
|
|
|
hello: hello.o
|
2011-08-22 22:29:59 +00:00
|
|
|
$(LD) $(LDFLAGS) hello.o -o hello $(LIBS)
|
2011-08-05 12:25:00 +00:00
|
|
|
|
2011-08-21 10:50:39 +00:00
|
|
|
hello.o: hello.cpp
|
|
|
|
$(CXX) $(CPPFLAGS) $(CXXFLAGS) -O2 -c hello.cpp -o hello.o
|
2011-08-05 12:25:00 +00:00
|
|
|
|
|
|
|
clean:
|
2011-08-22 22:29:59 +00:00
|
|
|
rm -f hello.o hello
|
2011-08-05 12:25:00 +00:00
|
|
|
|