From 8269f15af4db2e994e0ae223aff327ebc23cd6c0 Mon Sep 17 00:00:00 2001 From: Alexander Popov Date: Sat, 11 Jun 2022 02:29:15 +0300 Subject: [PATCH] add Makefile --- .editorconfig | 54 ++++++++++++++++++++++++++++++++++++++++++++++----- ~/C/Makefile | 5 +++++ 2 files changed, 54 insertions(+), 5 deletions(-) create mode 100644 ~/C/Makefile diff --git a/.editorconfig b/.editorconfig index 02e1c5b..1047692 100644 --- a/.editorconfig +++ b/.editorconfig @@ -1,23 +1,67 @@ +# EditorConfig is awesome: https://EditorConfig.org root = true +# for all projects [*] +indent_style = space +indent_size = 4 end_of_line = lf charset = utf-8 trim_trailing_whitespace = true insert_final_newline = true +# Python +[*.py] +indent_style = space +indent_size = 4 + +# PHP [*.php] indent_style = space indent_size = 4 -[{*.html,*.css}] -indent_style = tab -indent_size = 4 - -[*.js] +# Crystal +[*.cr] indent_style = space indent_size = 2 +# C +[{*.c,*.h}] +indent_style = space +indent_size = 4 + +# Web Sites +[{*.html,*.css,*.json}] +indent_style = tab +indent_size = 4 + [humans.txt] indent_style = tab indent_size = 2 + +# Other +[Makefile] +indent_style = tab +indent_size = 4 + +[.gitconfig] +indent_style = tab +indent_size = 4 + +# JavaScript +[*.js] +indent_style = space +indent_size = 2 + +[package.json] +indent_style = space +indent_size = 2 + +## for this repo +[~/SSH/config] +indent_style = tab +indent_size = 4 + +[~/SublimeText/*.sublime-*] +indent_style = tab +indent_size = 4 diff --git a/~/C/Makefile b/~/C/Makefile new file mode 100644 index 0000000..5cd162f --- /dev/null +++ b/~/C/Makefile @@ -0,0 +1,5 @@ +CC = clang +CFLAGS = -O2 +LDFLAGS = -lsqlite3 + +all: sqlite3_create sqlite3_insert sqlite3_select sqlite3_update sqlite3_delete