Init commit
This commit is contained in:
commit
43a79dd8d2
4 changed files with 29 additions and 0 deletions
6
.gitignore
vendored
Normal file
6
.gitignore
vendored
Normal file
|
@ -0,0 +1,6 @@
|
||||||
|
#CLion
|
||||||
|
.idea
|
||||||
|
compile_commands.json
|
||||||
|
|
||||||
|
#C trash
|
||||||
|
**/*.o
|
23
Makefile
Normal file
23
Makefile
Normal file
|
@ -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)
|
0
xbrightness.c
Normal file
0
xbrightness.c
Normal file
0
xbrightness.h
Normal file
0
xbrightness.h
Normal file
Loading…
Reference in a new issue