Skip to content

Commit

Permalink
Makefiles tweaks
Browse files Browse the repository at this point in the history
  • Loading branch information
attipaci committed Sep 14, 2024
1 parent 4e058d8 commit c3e90c1
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 10 deletions.
2 changes: 1 addition & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# Changelog

All notable changes to the RedisX [Smithsonian/redisx](https://github.com/Smithsonian/redisx) library will be
All notable changes to the [Smithsonian/redisx](https://github.com/Smithsonian/redisx) library will be
documented in this file.

The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.1.0/), and this project adheres to
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -912,7 +912,7 @@ Then activate it as:
```c
Redis *redis = ...

redisSetTransmitErrorHandler(redis, my_error_handler);
redisxSetTransmitErrorHandler(redis, my_error_handler);
```
After that, every time there is an error with sending or receiving packets over the network to any of the Redis
Expand Down
6 changes: 3 additions & 3 deletions build.mk
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ $(LIB)/lib%.so:
@rm -f $@
ln -sr $< $@

# Static library: novas.a
# Static library: *.a
$(LIB)/%.a:
ar -rc $@ $^
ranlib $@
Expand Down Expand Up @@ -51,7 +51,7 @@ distclean: distclean-local
.PHONY: check
check:
@echo " [check]"
@cppcheck -I$(INC) $(CHECKOPTS) src
@cppcheck $(CPPFLAGS) $(CHECKOPTS) src

# Doxygen documentation (HTML and man pages) under apidocs/
.PHONY: dox
Expand All @@ -63,7 +63,7 @@ dox: README.md Doxyfile | apidoc $(SRC) $(INC)
.PRECIOUS: dep/%.d
dep/%.d: %.c dep
@echo " > $@" \
&& $(CC) $(CPPFLAGS) -I$(INC) -MM -MG $< > $@.$$$$ \
&& $(CC) $(CPPFLAGS) -MM -MG $< > $@.$$$$ \
&& sed 's|\w*\.o[ :]*| $(OBJ)/&|g' < $@.$$$$ > $@; \
rm -f $@.$$$$

10 changes: 5 additions & 5 deletions config.mk
Original file line number Diff line number Diff line change
Expand Up @@ -23,12 +23,12 @@ BIN ?= bin
# Compiler: use gcc by default
CC ?= gcc

# Add include/ directory
CPPFLAGS += -I$(INC)

# Base compiler options (if not defined externally...)
CFLAGS ?= -Os -Wall

# Add include/ directory
CFLAGS += -I$(INC)

# Extra warnings (not supported on all compilers)
#CFLAGS += -Wextra

Expand All @@ -37,8 +37,8 @@ LDFLAGS ?= -lm

# Compile and link against a specific xchange library (if defined)
ifdef XCHANGE
CFLAGS += -I$(XCHANGE)/include
LDFLAGS = -L$(XCHANGE)/lib
CPPFLAGS += -I$(XCHANGE)/include
LDFLAGS += -L$(XCHANGE)/lib
LD_LIBRARY_PATH = $(XCHANGE)/lib:$(LD_LIBRARY_PATH)
endif

Expand Down

0 comments on commit c3e90c1

Please sign in to comment.