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 2bcc86b commit 123cc13
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 7 deletions.
3 changes: 2 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
# Changelog

All notable changes to the xchange library will be documented in this file.
All notable changes to the [Smithsonian/xchange](https://github.com/Smithsonian/xchange) 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
[Semantic Versioning](https://semver.org/spec/v2.0.0.html).
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 $@.$$$$

6 changes: 3 additions & 3 deletions config.mk
Original file line number Diff line number Diff line change
Expand Up @@ -17,12 +17,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 Down

0 comments on commit 123cc13

Please sign in to comment.