Files
android_development/pdk/pndk/samples/sample/Makefile.uselib
2009-05-19 11:28:10 -07:00

24 lines
558 B
Makefile

NDK_BASE := ../..
include $(NDK_BASE)/config/config.mk
SOURCES := use_hellolibrary.c
OBJECTS := $(SOURCES:.c=.o)
LIBS := -lc -lm
all: use_hellolibrary-a use_hellolibrary-so
# need $(LINK) before all objects and $(POSTLINK) after all objects for
# android runtime setup.
use_hellolibrary-a: $(OBJECTS)
$(CC) $(LINK) -o $@ $(OBJECTS) $(LIBS) -L. -lhello-static $(POSTLINK)
use_hellolibrary-so: $(OBJECTS)
$(CC) $(LINK) -o $@ $(OBJECTS) $(LIBS) -L. -lhello-shared $(POSTLINK)
clean:
rm -rf *.o use_hellolibrary-a use_hellolibrary-so