mirror of
http://github.com/valkey-io/valkey
synced 2024-11-22 18:54:58 +00:00
0a08d2b0e5
Remove unused variables. Instead of overriding non-standard variables such as ARCH and PROF, use standard variables CFLAGS and LDFLAGS to override Makefile settings. Move dependencies generated by `make dep` to a separate file.
22 lines
315 B
Makefile
22 lines
315 B
Makefile
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
|