PDA

View Full Version : Problem with 'make 3.81'.



akvino
April 22nd, 2013, 08:30 PM
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

akvino
April 22nd, 2013, 08:46 PM
Eh my vim was not settings TAB properly had to do it in geany

schragge
April 22nd, 2013, 08:51 PM
Check that TAB is really a TAB. Try

cat -T Makefile
It should display tabs as ^I

akvino
April 22nd, 2013, 08:54 PM
That is the best piece of advice I got this far. I was about to burst into flames editing makefile.