blob: 9c78cb67a7c144cf62213417328adfd660e87c41 [file] [log] [blame]
xf.li6c8fc1e2023-08-12 00:11:09 -07001#*******************************************************************************
2# include ZTE application makefile
3#*******************************************************************************
4include $(COMMON_MK)
5
6#*******************************************************************************
7# execute
8#*******************************************************************************
9EXEC = service
10
11#*******************************************************************************
12# objects
13#*******************************************************************************
14OBJS = service.o
15
16#*******************************************************************************
17# include path
18#*******************************************************************************
19CFLAGS = -I.
20CFLAGS += -I$(zte_lib_path)/binder/include
21CFLAGS += -I$(zte_lib_path)/binder/include/utils
22CFLAGS += -I$(zte_lib_path)/binder/include/cutils
23CFLAGS += -I$(zte_lib_path)/binder/include/log
24
25CFLAGS += -g -O0 -Werror=implicit-function-declaration
26
27LOCAL_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
29LDLIBS += -lpthread -lstdc++
30LDLIBS += -lbinder -L$(zte_lib_path)/binder
31LDLIBS += -lutils -L$(zte_lib_path)/binder/libutils
32LDLIBS += -lcutils -L$(zte_lib_path)/binder/libcutils
33LDLIBS += -llog -L$(zte_lib_path)/binder/liblog
34
35#*******************************************************************************
36# targets
37#*******************************************************************************
38all: $(EXEC)
39
40#$(EXEC): $(OBJS)
41# $(CC) $(LDFLAGS) -o $@ $(OBJS) -Wl,--start-group $(LDLIBS) -Wl,--end-group
42# @cp $@ $@.elf
43
44romfs:
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