컴파일을 어떻게 해야할지 모르겠습니다
내용은 아래와 같습니다.
---------------------
Makefile
----------------------
ifneq ($(KERNELRELEASE),)
obj-m := r8152.o
else
KERNELDIR ?= /lib/modules/$(shell uname -r)/build
PWD :=$(shell pwd)
.PHONY:modules
modules:
$(MAKE) -C $(KERNELDIR) SUBDIRS=$(PWD) modules
.PHONY: all
all: clean modules install_rules install
.PHONY:clean
clean:
$(MAKE) -C $(KERNELDIR) SUBDIRS=$(PWD) clean
.PHONY: install
install:
$(MAKE) -C $(KERNELDIR) SUBDIRS=$(PWD) INSTALL_MOD_DIR=kernel/drivers/net/usb modules_install
depmod $(shell uname -r)
.PHONY: install_rules
install_rules:
install --group=root --owner=root --mode=0644 50-usb-realtek-net.rules /etc/udev/rules.d/
endif
---------------------------------------------------
-rw-r--r-- 1 500 500 606 Mar 13 00:05 Makefile
-rw-rw-r-- 1 500 500 11091 Mar 11 2014 compatibility.h
-rw-rw-r-- 1 500 500 125823 Mar 11 2014 r8152.c
------------------------------
DiskStation> make
make -C /lib/modules/3.2.40/build SUBDIRS=/volume1/homes/tet/r8152-2.00.00 modules
make[1]: Entering directory `/lib/modules/3.2.40/build'
make[1]: *** No rule to make target `modules'. Stop.
make[1]: Leaving directory `/lib/modules/3.2.40/build'
make: *** [modules] Error 2
°³¹ß(ºôµå)¿¡ ÇÊ¿äÇÑ È¯°æÀ» ¸¸µé°í make¸¦ ½ÇÇàÇØ¾ß µÉ²¨ °°½À´Ï´Ù.