[cs631apue] Problems with makefile
Marlon Seaton
mseaton at stevens.edu
Sat Oct 13 00:55:16 EDT 2018
Hello,
Not sure what is going on with my makefile on BSD. Works 100% on the command line in ubuntu. Here's my makefile contents:
CC=gcc
CFLAGS= -g -Wall -Werror
DEPS = headers.h functions.h
OBJ = ls.o LongFormat.o PrintDirectory.o PrintTimeFormats.o SortFileSize.o
%.o: %.c $(DEPS)
$(CC) -c -o $@ $< $(CFLAGS)
ls: $(OBJ)
$(CC) -o $@ $^ $(CFLAGS)
clean:
rm -f ls *.o
when I type make I get the following:
make: don't know how to make %.c. Stop
Has anyone had the same issue?
Marlon
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.stevens.edu/pipermail/cs631apue/attachments/20181013/26ee97bd/attachment.html>
More information about the cs631apue
mailing list