]> git.saurik.com Git - redis.git/blob - deps/linenoise/Makefile
Clean up Makefiles
[redis.git] / deps / linenoise / Makefile
1 STD=
2 WARN= -Wall
3 OPT= -Os
4
5 R_CFLAGS= $(STD) $(WARN) $(OPT) $(DEBUG) $(CFLAGS)
6 R_LDFLAGS= $(LDFLAGS)
7 DEBUG= -g
8
9 R_CC=$(CC) $(R_CFLAGS)
10 R_LD=$(CC) $(R_LDFLAGS)
11
12 linenoise.o: linenoise.h linenoise.c
13
14 linenoise_example: linenoise.o example.o
15 $(R_LD) -o $@ $^
16
17 .c.o:
18 $(R_CC) -c $<
19
20 clean:
21 rm -f linenoise_example *.o