xf.li | 6c8fc1e | 2023-08-12 00:11:09 -0700 | [diff] [blame^] | 1 | #******************************************************************************* |
| 2 | # include ZTE application makefile |
| 3 | #******************************************************************************* |
| 4 | include $(COMMON_MK) |
| 5 | |
| 6 | #******************************************************************************* |
| 7 | # execute |
| 8 | #******************************************************************************* |
| 9 | EXEC = service |
| 10 | |
| 11 | #******************************************************************************* |
| 12 | # objects |
| 13 | #******************************************************************************* |
| 14 | OBJS = service.o |
| 15 | |
| 16 | #******************************************************************************* |
| 17 | # include path |
| 18 | #******************************************************************************* |
| 19 | CFLAGS = -I. |
| 20 | CFLAGS += -I$(zte_lib_path)/binder/include |
| 21 | CFLAGS += -I$(zte_lib_path)/binder/include/utils |
| 22 | CFLAGS += -I$(zte_lib_path)/binder/include/cutils |
| 23 | CFLAGS += -I$(zte_lib_path)/binder/include/log |
| 24 | |
| 25 | CFLAGS += -g -O0 -Werror=implicit-function-declaration |
| 26 | |
| 27 | 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 |
| 28 | |
| 29 | LDLIBS += -lpthread -lstdc++ |
| 30 | LDLIBS += -lbinder -L$(zte_lib_path)/binder |
| 31 | LDLIBS += -lutils -L$(zte_lib_path)/binder/libutils |
| 32 | LDLIBS += -lcutils -L$(zte_lib_path)/binder/libcutils |
| 33 | LDLIBS += -llog -L$(zte_lib_path)/binder/liblog |
| 34 | |
| 35 | #******************************************************************************* |
| 36 | # targets |
| 37 | #******************************************************************************* |
| 38 | all: $(EXEC) |
| 39 | |
| 40 | #$(EXEC): $(OBJS) |
| 41 | # $(CC) $(LDFLAGS) -o $@ $(OBJS) -Wl,--start-group $(LDLIBS) -Wl,--end-group |
| 42 | # @cp $@ $@.elf |
| 43 | |
| 44 | romfs: |
| 45 | $(ROMFSINST) $(EXEC) /bin/$(EXEC) |
| 46 | |
| 47 | #clean: |
| 48 | # -rm -f $(EXEC) *.elf *.gdb *.o |
| 49 | |
| 50 | #%.o:%.cpp |
| 51 | # @echo Compile $< |
| 52 | # $(CXX) $(LOCAL_CPPFLAGS) $(LOCAL_C_INCLUDES) -c $< -o $@ |
| 53 | |