Author: Pedro Lucas Porcellis <pedrolucasporcellis@gmail.com>
Add makefile and editorconfig
.editorconfig | 7 ++++++- Makefile | 21 +++++++++++++++++++++
diff --git a/.editorconfig b/.editorconfig index a1f064e1b62ffb086af45fbfbd6f57a48bfb8371..738fc4c2a67dd03fdc0bf013105664d013bc5feb 100644 --- a/.editorconfig +++ b/.editorconfig @@ -4,6 +4,11 @@ [*] end_of_line = lf insert_final_newline = true charset = utf-8 -trim_trailing_whitespace = true indent_style = tab +trim_trailing_whitespace = true indent_size = 8 +max_line_length = 80 + +[*.yml] +indent_size = 2 +indent_style = space diff --git a/Makefile b/Makefile new file mode 100644 index 0000000000000000000000000000000000000000..dbe6c0091c9277a7c9969c6228343c71f0ef1696 --- /dev/null +++ b/Makefile @@ -0,0 +1,21 @@ +# We want to display all warnings +CFLAGS+= -Wall + +# We need to link against the X11 Library. +LDADD+= -lX11 + +# Name of our source code and binary output +EXEC=igiwm + +# Compiler to use (we could use musl c if we wanted to) +CC=gcc + +all: $(EXEC) + +# We will pass along with our flags an additional flag -Os which will try to +# optimize the code for size, so trying to generate a smaller footprint binary +igiwm: igiwm.o + $(CC) $(LDFLAGS) -Os -o $@ $+ $(LDADD) + +clean: + rm -f igiwm *.o