redis_study/deps/linenoise/Makefile

22 lines
315 B
Makefile
Raw Normal View History

2020-09-05 04:01:22 +00:00
STD=
WARN= -Wall
OPT= -Os
R_CFLAGS= $(STD) $(WARN) $(OPT) $(DEBUG) $(CFLAGS)
R_LDFLAGS= $(LDFLAGS)
DEBUG= -g
R_CC=$(CC) $(R_CFLAGS)
R_LD=$(CC) $(R_LDFLAGS)
linenoise.o: linenoise.h linenoise.c
linenoise_example: linenoise.o example.o
$(R_LD) -o $@ $^
.c.o:
$(R_CC) -c $<
clean:
rm -f linenoise_example *.o