Standardised formatting.
This commit is contained in:
parent
31176e1f39
commit
d7886550a6
25 changed files with 1131 additions and 949 deletions
9
Makefile
9
Makefile
|
|
@ -8,15 +8,22 @@ DEPS := $(OBJS:.o=.d)
|
|||
|
||||
INC_DIRS := $(shell find $(SRC_DIRS) -type d)
|
||||
INC_FLAGS := $(addprefix -I,$(INC_DIRS))
|
||||
INDENT_FLAGS := -kr -nut -l79 -ts2
|
||||
|
||||
VERSION := "0.0.0"
|
||||
|
||||
CPPFLAGS ?= $(INC_FLAGS) -MMD -MP
|
||||
CPPFLAGS ?= $(INC_FLAGS) -MMD -MP
|
||||
LDFLAGS := -lm
|
||||
|
||||
$(TARGET): $(OBJS)
|
||||
$(CC) $(LDFLAGS) $(OBJS) -DVERSION=$(VERSION) -o $@ $(LDFLAGS) $(LOADLIBES) $(LDLIBS)
|
||||
|
||||
format:
|
||||
indent $(INDENT_FLAGS) $(SRCS) src/*.h
|
||||
|
||||
test:
|
||||
bash ./unit-tests.sh
|
||||
|
||||
.PHONY: clean
|
||||
clean:
|
||||
$(RM) $(TARGET) $(OBJS) $(DEPS)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue