blob: 6d25be65d6605b481e17b573bd6103868f08cbb6 [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 = servicemanager
10
11#*******************************************************************************
12# objects
13#*******************************************************************************
14OBJS = binder.o service_manager.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 -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
26
27LDLIBS += -lpthread -lstdc++
28LDLIBS += -lbinder -L$(zte_lib_path)/binder
29LDLIBS += -lutils -L$(zte_lib_path)/binder/libutils
30LDLIBS += -lcutils -L$(zte_lib_path)/binder/libcutils
31LDLIBS += -llog -L$(zte_lib_path)/binder/liblog
32
33#*******************************************************************************
34# targets
35#*******************************************************************************
36all: $(EXEC)
37
38#$(EXEC): $(OBJS)
39# $(CC) $(LDFLAGS) -o $@ $(OBJS) -Wl,--start-group $(LDLIBS) -Wl,--end-group
40# @cp $@ $@.elf
41
42romfs:
43 $(ROMFSINST) $(EXEC) /bin/$(EXEC)
44
45#clean:
46# -rm -f $(EXEC) *.elf *.gdb *.o
47