X-Git-Url: https://git.saurik.com/redis.git/blobdiff_plain/be98a33b511cec5cd3fce281360cea1dfc73d15a..0d83011a11b42fe1b0d1bebb7b9a3318fd44f0e5:/deps/linenoise/Makefile?ds=sidebyside diff --git a/deps/linenoise/Makefile b/deps/linenoise/Makefile index 841f3907..1dd894b4 100644 --- a/deps/linenoise/Makefile +++ b/deps/linenoise/Makefile @@ -1,10 +1,21 @@ -linenoise_example: linenoise.h linenoise.c +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 - $(CC) $(ARCH) -Wall -W -Os -g -o linenoise_example linenoise.o example.o + $(R_LD) -o $@ $^ .c.o: - $(CC) $(ARCH) -c -Wall -W -Os -g $< + $(R_CC) -c $< clean: rm -f linenoise_example *.o