Results 1 to 4 of 4

Thread: Problem with 'make 3.81'.

  1. #1
    Join Date
    Apr 2008
    Beans
    221

    Problem with 'make 3.81'.

    What is wrong with this:

    SHELL = /bin/sh
    CC = gcc
    FLAGS = -std=gnu99 -Iinclude
    CFLAGS = -fPIC -pedantic -Wall -Wextra -march=native -ggdb3
    DEBUGFLAGS = -O0 -D _DEBUG
    RELEASEFLAGS = -O2 -D NDEBUG -combine -fwhole-program

    TARGET = bsm.so
    SOURCES = $(shell echo src/*.c)
    HEADERS = $(shell echo include/*.h)
    OBJECTS = $(SOURCES:.c=.o)

    PREFIX = $(DESTDIR)/usr/local
    BINDIR = $(PREFIX)/bin

    all: $(TARGET)

    $(TARGET): $(OBJECTS)
    [there is TAB here]$(CC) $(FLAGS) $(CFLAGS) $(DEBUGFLAGS) -o $(TARGET) $(OBJECTS)



    ERROR:
    BSM]$ make
    Makefile:19: *** missing separator. Stop

  2. #2
    Join Date
    Apr 2008
    Beans
    221

    Re: Problem with 'make 3.81'.

    Eh my vim was not settings TAB properly had to do it in geany

  3. #3
    Join Date
    Feb 2013
    Beans
    Hidden!

    Re: Problem with 'make 3.81'.

    Check that TAB is really a TAB. Try
    Code:
    cat -T Makefile
    It should display tabs as ^I

  4. #4
    Join Date
    Apr 2008
    Beans
    221

    Re: Problem with 'make 3.81'.

    That is the best piece of advice I got this far. I was about to burst into flames editing makefile.

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •