I m installing network driver for my ethernet controller.
However whenever i run make install it gives me below error.
Code:
# make install
Makefile:23: *** missing separator. Stop.
I did google and come to know that it has to do with wrong coding in Makefile but couldn't able to rectify the error.
Here is my Makefile.
Code:
# cat Makefile
#$FreeBSD$
.PATH: ${.CURDIR}
KMOD = if_igb
SRCS = device_if.h bus_if.h pci_if.h opt_bdg.h
SRCS += if_igb.c $(SHARED_SRCS)
SHARED_SRCS = e1000_api.c e1000_phy.c e1000_nvm.c e1000_mac.c e1000_manage.c
SHARED_SRCS += e1000_osdep.c e1000_82575.c e1000_vf.c e1000_mbx.c
CFLAGS += -DSMP
# DEVICE_POLLING gives you non-interrupt handling
#CFLAGS += -DDEVICE_POLLING
clean:
rm -f opt_bdg.h device_if.h bus_if.h pci_if.h setdef*
rm -f *.o *.kld *.ko
rm -f @ machine
rm -f ${CLEANFILES}
man:
mv /usr/share/man/man4/igb.4.gz /usr/share/man/man4/igbSAVE.4.gz
cp igb.4 /usr/share/man/man4/
.include <bsd.kmod.mk>
[root@OFSMUP-VS-08 src]# make install
Makefile:23: *** missing separator. Stop.
[root@OFSMUP-VS-08 src]# cat Makefile
#$FreeBSD$
.PATH: ${.CURDIR}
KMOD = if_igb
SRCS = device_if.h bus_if.h pci_if.h opt_bdg.h
SRCS += if_igb.c $(SHARED_SRCS)
SHARED_SRCS = e1000_api.c e1000_phy.c e1000_nvm.c e1000_mac.c e1000_manage.c
SHARED_SRCS += e1000_osdep.c e1000_82575.c e1000_vf.c e1000_mbx.c
CFLAGS += -DSMP
# DEVICE_POLLING gives you non-interrupt handling
#CFLAGS += -DDEVICE_POLLING
clean:
rm -f opt_bdg.h device_if.h bus_if.h pci_if.h setdef*
rm -f *.o *.kld *.ko
rm -f @ machine
rm -f ${CLEANFILES}
man:
mv /usr/share/man/man4/igb.4.gz /usr/share/man/man4/igbSAVE.4.gz
cp igb.4 /usr/share/man/man4/
.include <bsd.kmod.mk>
Appreciate if exact cause of error identified.