summaryrefslogtreecommitdiff
path: root/src/hal/user_comps/wj200_vfd/Submakefile
blob: 30aa0d590424189730c9b4f8b455477da8f0cc1b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
ifdef HAVE_LIBMODBUS3

WJ200_SRCS = hal/user_comps/wj200_vfd/wj200_vfd.c
WJ200_CFLAGS = -DDEBUG $(LIBMODBUS_CFLAGS)
WJ200_LIBS = $(LIBMODBUS_LIBS)

$(call TOOBJSDEPS, $(WJ200_SRCS)) : EXTRAFLAGS += $(WJ200_CFLAGS)

USERSRCS += $(WJ200_SRCS)

../bin/wj200_vfd: $(call TOOBJS, $(WJ200_SRCS)) ../lib/liblinuxcnchal.so.0 ../lib/liblinuxcncini.so.0
	$(ECHO) Linking $(notdir $@)
	$(Q)$(CC) $(LDFLAGS) -o $@ $^ $(WJ200_LIBS) 

hal/user_comps/wj200_vfd/wj200_vfd.c: hal/user_comps/wj200_vfd/wj200_vfd.comp ../bin/comp
	$(ECHO) "Preprocessing wj200_vfd.comp"
	$(Q)../bin/comp --preprocess $<

../docs/man/man9/wj200_vfd.9: hal/user_comps/wj200_vfd/wj200_vfd.comp ../bin/comp
	$(Q)../bin/comp --document $<
	$(Q)install --mode=0644 hal/user_comps/wj200_vfd/wj200_vfd.9 $@

TARGETS += ../bin/wj200_vfd
TARGETS += ../docs/man/man9/wj200_vfd.9
endif