Browse Source

Use astyle to format source code properly

pull/8/head
Rafal Kupiec 3 years ago
parent
commit
8dd1305a51
Signed by: belliash GPG Key ID: 4E829243E0CFE6B4
1 changed files with 28 additions and 0 deletions
  1. +28
    -0
      Makefile

+ 28
- 0
Makefile View File

@ -18,12 +18,40 @@ OBJ =\
vfs.o \
vm.o
ASTYLE_FLAGS =\
--style=java \
--indent=force-tab \
--attach-closing-while \
--attach-inlines \
--attach-classes \
--indent-classes \
--indent-modifiers \
--indent-switches \
--indent-cases \
--indent-preproc-block \
--indent-preproc-define \
--indent-col1-comments \
--pad-oper \
--pad-comma \
--unpad-paren \
--delete-empty-lines \
--align-pointer=name \
--align-reference=name \
--break-one-line-headers \
--add-braces \
--verbose \
--formatted \
--lineend=linux
all: main
clean:
rm -f *.o ph7
style:
astyle $(ASTYLE_FLAGS) --recursive ./*.c,*.h
main: $(OBJ)
$(CC) $(OBJ) $(LIBS) -o ph7


Loading…
Cancel
Save