Added Doxyfile, updated Makefile, reformatted.
This commit is contained in:
parent
3112f190db
commit
88fd7d95d9
8 changed files with 2570 additions and 71 deletions
12
Makefile
12
Makefile
|
|
@ -3,9 +3,12 @@ TARGET ?= target/psse
|
|||
SRC_DIRS ?= ./src
|
||||
|
||||
SRCS := $(shell find $(SRC_DIRS) -name *.cpp -or -name *.c -or -name *.s)
|
||||
HDRS := $(shell find $(SRC_DIRS) -name *.h)
|
||||
OBJS := $(addsuffix .o,$(basename $(SRCS)))
|
||||
DEPS := $(OBJS:.o=.d)
|
||||
|
||||
TESTS := $(shell find unit-tests -name *.sh)
|
||||
|
||||
INC_DIRS := $(shell find $(SRC_DIRS) -type d)
|
||||
INC_FLAGS := $(addprefix -I,$(INC_DIRS))
|
||||
INDENT_FLAGS := -kr -br -brf -brs -ce -cdw -npsl -nut -prs -l79 -ts2
|
||||
|
|
@ -18,10 +21,13 @@ LDFLAGS := -lm
|
|||
$(TARGET): $(OBJS) Makefile
|
||||
$(CC) $(LDFLAGS) $(OBJS) -DVERSION=$(VERSION) -o $@ $(LDFLAGS) $(LOADLIBES) $(LDLIBS)
|
||||
|
||||
format:
|
||||
indent $(INDENT_FLAGS) $(SRCS) src/*.h
|
||||
doc: $(SRCS) Makefile
|
||||
doxygen
|
||||
|
||||
test:
|
||||
format: $(SRCS) $(HDRS) Makefile
|
||||
indent $(INDENT_FLAGS) $(SRCS) $(HDRS)
|
||||
|
||||
test: $(OBJS) $(TESTS) Makefile
|
||||
bash ./unit-tests.sh
|
||||
|
||||
.PHONY: clean
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue