mirror of
https://gitlab.com/etherlab.org/ethercat.git
synced 2026-02-06 03:41:52 +08:00
41 lines
782 B
Makefile
41 lines
782 B
Makefile
#----------------------------------------------------------------
|
|
#
|
|
# Makefile
|
|
#
|
|
# Minimales EtherCAT-Modul
|
|
#
|
|
# $Id$
|
|
#
|
|
#----------------------------------------------------------------
|
|
|
|
ifneq ($(KERNELRELEASE),)
|
|
|
|
#----------------------------------------------------------------
|
|
# Kbuild-Abschnitt
|
|
|
|
obj-m := ec_mini_mod.o
|
|
|
|
ec_mini_mod-objs := ec_mini.o
|
|
|
|
#----------------------------------------------------------------
|
|
|
|
else
|
|
|
|
#----------------------------------------------------------------
|
|
# Default-Abschnitt
|
|
|
|
CONFIG_FILE = ../ethercat.conf
|
|
PWD = $(shell pwd)
|
|
|
|
include $(CONFIG_FILE) # Für KERNELDIR
|
|
|
|
default:
|
|
$(MAKE) -C $(KERNELDIR) M=$(PWD) modules
|
|
|
|
clean:
|
|
$(MAKE) -C $(KERNELDIR) M=$(PWD) clean
|
|
|
|
#----------------------------------------------------------------
|
|
|
|
endif
|