aboutsummaryrefslogtreecommitdiffstats
path: root/src/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'src/Makefile')
-rw-r--r--src/Makefile3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/Makefile b/src/Makefile
index b61e8100..ce626faa 100644
--- a/src/Makefile
+++ b/src/Makefile
@@ -1,6 +1,7 @@
# Main code build rules
-src-y += sched.c command.c stepper.c basecmd.c debugcmds.c gpiocmds.c endstop.c
+src-y += sched.c command.c basecmd.c debugcmds.c
+src-$(CONFIG_HAVE_GPIO) += gpiocmds.c stepper.c endstop.c
src-$(CONFIG_HAVE_GPIO_ADC) += adccmds.c
src-$(CONFIG_HAVE_GPIO_SPI) += spicmds.c
src-$(CONFIG_HAVE_GPIO_HARD_PWM) += pwmcmds.c