orsh/src/Makefile
Hedy Li 8f5e931d6a
Put -lreadline into separate variable in Makefile
A separate variable is needed as the libs needs to be specified at the
end of the command.
2021-09-28 09:19:14 +08:00

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)