blob: 9c78cb67a7c144cf62213417328adfd660e87c41 [file] [log] [blame]
#*******************************************************************************
# include ZTE application makefile
#*******************************************************************************
include $(COMMON_MK)
#*******************************************************************************
# execute
#*******************************************************************************
EXEC = service
#*******************************************************************************
# objects
#*******************************************************************************
OBJS = service.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
LOCAL_CPPFLAGS += $(CFLAGS) -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
#%.o:%.cpp
# @echo Compile $<
# $(CXX) $(LOCAL_CPPFLAGS) $(LOCAL_C_INCLUDES) -c $< -o $@