Code drop from //branches/cupcake/...@124589
This commit is contained in:
21
pdk/ndk/samples/sample/Makefile.hello_cpp
Normal file
21
pdk/ndk/samples/sample/Makefile.hello_cpp
Normal file
@@ -0,0 +1,21 @@
|
||||
|
||||
NDK_BASE := ../..
|
||||
|
||||
include $(NDK_BASE)/config/config.mk
|
||||
|
||||
EXECUTABLE := hello_cpp
|
||||
SOURCES := hello_cpp.cpp
|
||||
OBJECTS := $(SOURCES:.cpp=.o)
|
||||
LIBS := -lc -lm -lstdc++
|
||||
|
||||
all: $(EXECUTABLE)
|
||||
|
||||
# need $(LINK) before all objects and $(POSTLINK) after all objects for
|
||||
# android runtime setup.
|
||||
|
||||
hello_cpp: $(OBJECTS)
|
||||
$(CC) $(LINK) -o $@ $(OBJECTS) $(LIBS) $(POSTLINK)
|
||||
|
||||
clean:
|
||||
rm -rf *.o hello_cpp
|
||||
|
||||
Reference in New Issue
Block a user