use linuxcnc's Makefile.modinc to build RT component

This commit is contained in:
Sascha Ittner
2018-03-10 10:03:44 +01:00
parent 04c896b6ae
commit 7b1e4bb0bb
3 changed files with 6 additions and 42 deletions

View File

@@ -11,11 +11,11 @@ endif
.PHONY: configure
configure:
@echo "COMP = $(COMP)"
@echo "MODINC = $(MODINC)"
@echo "BUILDSYS = $(BUILDSYS)"
@echo "KERNELDIR = $(KERNELDIR)"
@echo "CC = $(CC)"
@echo "RTAI = $(RTAI)"
@echo "RTAIDIR = $(RTAIDIR)"
@echo "RTFLAGS = $(RTFLAGS)"
@echo "KERNELRELEASE = $(KERNELRELEASE)"
@echo "EXTRA_CFLAGS = $(EXTRA_CFLAGS)"
@@ -34,9 +34,3 @@ endif
include $(MODINC)
# dirty workaround to get the RTAI directory
RTAIINCDIR = $(subst /rtai.h,,$(firstword $(wildcard $(foreach i,$(subst -I,,$(filter -I%,$(RTFLAGS))), $(i)/rtai.h))))
ifneq ($(RTAIINCDIR),)
RTAIDIR = $(realpath $(RTAIINCDIR)/..)
endif