Compare commits

...

3 Commits

Author SHA1 Message Date
g1n
6eae072b19 Merge branch 'hedy-main' 2021-09-28 08:29:43 +03:00
Hedy Li
7522f3a602
Remove trailing whitespaces 2021-09-28 09:22:52 +08:00
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
2 changed files with 21 additions and 20 deletions

View File

@ -1,5 +1,6 @@
CC = gcc CC = gcc
CFLAGS= -O2 -Wall -Wextra -lreadline CFLAGS= -O2 -Wall -Wextra
LIBS= -lreadline
LFLAGS= LFLAGS=
SRCFILES= main.c SRCFILES= main.c
@ -10,5 +11,5 @@ OBJFILES= orsh
all: main all: main
main: main:
$(CC) $(CFLAGS) $(SRCFILES) -o $(OBJFILES) $(CC) $(CFLAGS) $(SRCFILES) -o $(OBJFILES) $(LIBS)