HY_VFD_SRCS = hal/user_comps/huanyang-vfd/hy_vfd.c hal/user_comps/huanyang-vfd/hy_comm.c
HY_VFD_CFLAGS = $(GLIB_CFLAGS)
HY_VFD_LIBS = $(GLIB_LIBS) -lpthread

$(call TOOBJSDEPS, $(HY_VFD_SRCS)) : EXTRAFLAGS += $(HY_VFD_CFLAGS)

USERSRCS += $(HY_VFD_SRCS)
../bin/hy_vfd: $(call TOOBJS, $(HY_VFD_SRCS)) ../lib/liblinuxcnchal.so.0
	$(ECHO) Linking $(notdir $@)
	$(Q)$(CC) $(LDFLAGS) -o $@ $^ $(HY_VFD_LIBS)

TARGETS += ../bin/hy_vfd
