blob: 6d25be65d6605b481e17b573bd6103868f08cbb6 [file] [log] [blame]
#*******************************************************************************
# include ZTE application makefile
#*******************************************************************************
include $(COMMON_MK)
#*******************************************************************************
# execute
#*******************************************************************************
EXEC = servicemanager
#*******************************************************************************
# objects
#*******************************************************************************
OBJS = binder.o service_manager.o
#*******************************************************************************
# include path
#*******************************************************************************
CFLAGS += -I.
CFLAGS += -I$(zte_lib_path)/binder/include
CFLAGS += -I$(zte_lib_path)/binder/include/utils
CFLAGS += -I$(zte_lib_path)/binder/include/cutils
CFLAGS += -I$(zte_lib_path)/binder/include/log
CFLAGS += -g -O0 -Werror=implicit-function-declaration -DBINDER_IPC_32BIT=1 -DHAVE_ENDIAN_H -DHAVE_PTHREADS -DHAVE_SYS_UIO_H -DHAVE_POSIX_FILEMAP -DHAVE_STRLCPY -DHAVE_PRCTL -DHAVE_MEMSET16 -DHAVE_MEMSET32 -DANDROID_SMP=0
LDLIBS += -lpthread -lstdc++
LDLIBS += -lbinder -L$(zte_lib_path)/binder
LDLIBS += -lutils -L$(zte_lib_path)/binder/libutils
LDLIBS += -lcutils -L$(zte_lib_path)/binder/libcutils
LDLIBS += -llog -L$(zte_lib_path)/binder/liblog
#*******************************************************************************
# targets
#*******************************************************************************
all: $(EXEC)
#$(EXEC): $(OBJS)
# $(CC) $(LDFLAGS) -o $@ $(OBJS) -Wl,--start-group $(LDLIBS) -Wl,--end-group
# @cp $@ $@.elf
romfs:
$(ROMFSINST) $(EXEC) /bin/$(EXEC)
#clean:
# -rm -f $(EXEC) *.elf *.gdb *.o