SmartAudio/package/allwinner/healthd/demo/Makefile

24 lines
493 B
Makefile
Raw Normal View History

2018-07-13 01:31:50 +00:00
target = healthd-demo
LOCAL_CFLAGS += -I. -I../libbatinfo/include
LIBS := -L../libbatinfo -lbatinfo -ldbus-1
SRCS = main.c
OBJS = $(SRCS:.c=.o)
install:$(target)
@mkdir -p $(CONFIG_PREFIX)/usr/bin
@cp $(target) $(CONFIG_PREFIX)/usr/bin
%.o: %.c
$(CC) $(CFLAGS) $(LOCAL_CFLAGS) -c -o $@ $<
$(target): $(OBJS)
$(CC) $(INCLUDES) $(LDFLAGS) $(LIBS) $^ -o $@
####################################################################
all: install
clean:
rm -rf $(target) $(OBJS)