8f5e931d6a
A separate variable is needed as the libs needs to be specified at the end of the command.
16 lines
185 B
Makefile
16 lines
185 B
Makefile
CC = gcc
|
|
CFLAGS= -O2 -Wall -Wextra
|
|
LIBS= -lreadline
|
|
LFLAGS=
|
|
|
|
SRCFILES= main.c
|
|
OBJFILES= orsh
|
|
|
|
.PHONY: all clean
|
|
|
|
all: main
|
|
|
|
main:
|
|
$(CC) $(CFLAGS) $(SRCFILES) -o $(OBJFILES) $(LIBS)
|
|
|