LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Make file Error. (https://www.linuxquestions.org/questions/linux-newbie-8/make-file-error-916339/)

pinga123 11-30-2011 05:23 AM

Make file Error.
 
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.

corp769 11-30-2011 05:50 AM

Before breaking into the errors resulting from your makefile, what distribution are you using, and what type of network card do you have?

On a side note, even if your make file did work, running "make install" won't do anything, because it isn't configured for an "install" flag, unless it is weirdly located within bsd.kmod.mk.


All times are GMT -5. The time now is 01:45 PM.