forked from sittner/linuxcnc-ethercat
-
Notifications
You must be signed in to change notification settings - Fork 1
/
configure.mk
36 lines (32 loc) · 829 Bytes
/
configure.mk
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
27
28
29
30
31
32
33
34
35
ifeq (, $(COMP))
COMP = $(shell which halcompile)
endif
ifeq (, $(COMP))
COMP = $(shell which comp)
endif
ifeq (, $(COMP))
$(error halcompile/comp executable not found or set)
endif
.PHONY: configure
configure:
@echo "COMP = $(COMP)"
@echo "MODINC = $(MODINC)"
@echo "BUILDSYS = $(BUILDSYS)"
@echo "KERNELDIR = $(KERNELDIR)"
@echo "CC = $(CC)"
@echo "RTAI = $(RTAI)"
@echo "RTFLAGS = $(RTFLAGS)"
@echo "KERNELRELEASE = $(KERNELRELEASE)"
@echo "EXTRA_CFLAGS = $(EXTRA_CFLAGS)"
@echo "USE_RTLIBM = $(USE_RTLIBM)"
@echo "EMC2_HOME = $(EMC2_HOME)"
@echo "RUN_IN_PLACE = $(RUN_IN_PLACE)"
@echo "RTLIBDIR = $(RTLIBDIR)"
@echo "LIBDIR = $(LIBDIR)"
@echo "prefix = $(prefix)"
# include modinc
MODINC=$(shell $(COMP) --print-modinc)
ifeq (, $(MODINC))
$(error Unable to get modinc path)
endif
include $(MODINC)