forked from redis/redis
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
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.
- Loading branch information
Showing
4 changed files
with
253 additions
and
206 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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 |
Oops, something went wrong.