target = libscenemanager.so INCLUDES += -I. -I./include LIBS += -luci SRCS = scene_manager.c \ np_scene_utils.c \ np_uci_config.c \ power.c LOCAL_CFLAGS = $(INCLUDES) $(CFLAGS) ifeq ($(findstring sitar,$(TARGET_BOARD)),sitar) LOCAL_CFLAGS += -DSUN3IW1P1 endif ifeq ($(findstring banjo,$(TARGET_BOARD)),banjo) LOCAL_CFLAGS += -DSUN8IW8P1 endif ifeq ($(findstring astar,$(TARGET_BOARD)),astar) LOCAL_CFLAGS += -DSUN8IW5P1 endif ifeq ($(findstring octopus,$(TARGET_BOARD)),octopus) LOCAL_CFLAGS += -DSUN8IW6P1 endif ifeq ($(findstring azalea,$(TARGET_BOARD)),azalea) LOCAL_CFLAGS += -DSUN8IW11P1 endif ifeq ($(findstring mandolin,$(TARGET_BOARD)),mandolin) LOCAL_CFLAGS += -DSUN8IW15P1 endif ifeq ($(findstring tulip,$(TARGET_BOARD)),tulip) LOCAL_CFLAGS += -DSUN50IW1P1 endif ifeq ($(findstring koto,$(TARGET_BOARD)),koto) LOCAL_CFLAGS += -DSUN50IW3P1 endif LOCAL_CFLAGS += -DLOG_TAG="\"libscenemanager\"" LOCAL_CFLAGS += -DCONFIG_TLOG_LEVEL=OPTION_TLOG_LEVEL_WARNING install: $(target) -@mkdir -p $(CONFIG_PREFIX)/usr/lib -@mkdir -p $(CONFIG_PREFIX)/usr/include @cp $(target) $(CONFIG_PREFIX)/usr/lib @cp ./include/scene_manager.h $(CONFIG_PREFIX)/usr/include $(target): $(SRCS) $(CC) -fPIC -shared $(LOCAL_CFLAGS) $(LDFLAGS) $^ -o $@ $(LIBS) #################################################################### all: install $(target) clean: rm -rf $(target)