| SHELL = /bin/sh |
| RM = rm -f |
| |
| LOCAL_CFLAGS := -Wall \ |
| -g -Os \ |
| -std=gnu++14 \ |
| -flto \ |
| -fPIC \ |
| -D__LINUX_OS__ \ |
| |
| |
| |
| LOCAL_PATH = . |
| $(warning ################# LEI ROOT: $(ROOT),includedir:$(includedir),LOCAL_PATH:$(LOCAL_PATH)) |
| LOCAL_C_INCLUDES = \ |
| -I. \ |
| -I./include \ |
| -I$(LOCAL_PATH)/include \ |
| -I$(LOCAL_PATH) \ |
| -I$(ROOT)$(includedir)/ \ |
| -I$(ROOT)$(includedir)/include \ |
| |
| |
| LOCAL_LIBS := \ |
| -L. \ |
| -ldl \ |
| -lstdc++ \ |
| -llog \ |
| -lcutils \ |
| -lutils \ |
| -lbinder \ |
| -lpthread \ |
| -llynq-uci \ |
| -llynq-misc \ |
| |
| SOURCES = ./lynq_sdk_ready.cpp |
| |
| EXECUTABLE = liblynq-sdk-ready.so |
| |
| OBJECTS=$(SOURCES:.cpp=.o) |
| |
| |
| .PHONY: build clean |
| all: build |
| $(EXECUTABLE): $(OBJECTS) |
| $(CXX) -shared -Wl,--no-undefined $(OBJECTS) $(LOCAL_LIBS) $(LOCAL_CFLAGS) $(LOCAL_C_INCLUDES) -o $@ |
| |
| %.o : %.cpp |
| $(CXX) $(LOCAL_C_INCLUDES) $(LOCAL_CFLAGS) $(LOCAL_LIBS) -o $@ -c $< |
| |
| build: $(EXECUTABLE) |
| $(warning ########## build $(EXECUTABLE) ##########) |
| |
| .PHONY: clean |
| clean: |
| $(RM) $(OBJECTS) $(EXECUTABLE) |