commit 43a79dd8d292a53181511b4dbbfda479244570fa Author: flifloo Date: Thu Dec 19 08:46:45 2019 +0100 Init commit diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..fa7e150 --- /dev/null +++ b/.gitignore @@ -0,0 +1,6 @@ +#CLion +.idea +compile_commands.json + +#C trash +**/*.o diff --git a/Makefile b/Makefile new file mode 100644 index 0000000..2d7a052 --- /dev/null +++ b/Makefile @@ -0,0 +1,23 @@ +CC=gcc +FLAGS= -Wall +NAME=xbrightness +SRC=xbrightness.c + +OBJ=$(SRC:.c=.o) + +HEADER=xbrightness.h + +all: $(NAME) + +$(NAME): $(OBJ) $(HEADER) + $(CC) -o $(NAME) $(FLAGS) $(OBJ) + +%.o: %.c + $(CC) -o $@ $(FLAGS) -c $< + +clean: + rm -f *.o + rm -f */*.o + +fclean: clean + rm -f $(NAME) diff --git a/xbrightness.c b/xbrightness.c new file mode 100644 index 0000000..e69de29 diff --git a/xbrightness.h b/xbrightness.h new file mode 100644 index 0000000..e69de29