auto import from //depot/cupcake/@135843

This commit is contained in:
The Android Open Source Project
2009-03-03 19:29:09 -08:00
parent d4aee0c0ca
commit 52d4c30ca5
2386 changed files with 299112 additions and 0 deletions

View 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