Code drop from //branches/cupcake/...@124589

This commit is contained in:
The Android Open Source Project
2008-12-17 18:04:04 -08:00
parent 5c11852110
commit e943f2fd8e
659 changed files with 47382 additions and 9976 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