summaryrefslogtreecommitdiff
path: root/src/module_helper/Submakefile
blob: 145631c8bc31905e1cb15915ef71d6499dd747f2 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
ifneq ("$(RTPREFIX)","sim")
MODULE_HELPERSRCS := \
	module_helper/module_helper.c
USERSRCS += $(MODULE_HELPERSRCS)

ifneq ($(rip_moduledir),)
    $(call TOOBJSDEPS, $(MODULE_HELPERSRCS)) : EXTRAFLAGS = -Wall -Werror
else
    $(call TOOBJSDEPS, $(MODULE_HELPERSRCS)) : EXTRAFLAGS = -Wall -Werror
endif

../bin/linuxcnc_module_helper: $(call TOOBJS, $(MODULE_HELPERSRCS))
	$(ECHO) Linking $(notdir $@)
	@$(CC) -o $@ $^

TARGETS += ../bin/linuxcnc_module_helper
endif