SmartAudio/package/allwinner/smartlinkd/demo/Makefile

36 lines
707 B
Makefile
Executable File

CC ?= g++
TARGET = smartlinkd_demo
INCLUDES += -I. \
-I../src/include \
-I../src/libclient \
-I../src/include/platform/Tina
SRCS := \
main.c \
SUB_LIB := \
-lpthread \
-L../src/libclient \
-lsmartlinkd_client \
-lwifimg
$(TARGET):
$(CC) $(LDFLAGS) $(INCLUDES) $(SRCS) -o $@ $(SUB_LIB)
install:
mkdir -p $(CONFIG_PREFIX)/usr/bin
@cp $(TARGET) $(CONFIG_PREFIX)/usr/bin
#smartlinkd_long_time_test
smartlinkd_long_time_test: smartlinkd_long_time_test.c
$(CC) $^ $(CFLAGS) $(INCLUDES) $(LDFLAGS) $(SUB_LIB) -o $@
@cp -f smartlinkd_long_time_test $(CONFIG_PREFIX)/usr/bin
all: $(TARGET) install smartlinkd_long_time_test
clean:
rm -rf $(TARGET) *.o *.a *~ smartlinkd_long_time_test