2019-12-19 08:46:45 +01:00
|
|
|
CC=gcc
|
|
|
|
FLAGS= -Wall
|
|
|
|
NAME=xbrightness
|
|
|
|
SRC=xbrightness.c
|
|
|
|
|
|
|
|
OBJ=$(SRC:.c=.o)
|
|
|
|
|
|
|
|
HEADER=xbrightness.h
|
|
|
|
|
2019-12-19 11:56:37 +01:00
|
|
|
install: all
|
|
|
|
cp $(NAME) /usr/local/bin/
|
|
|
|
@make clean
|
|
|
|
|
2019-12-19 08:46:45 +01:00
|
|
|
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)
|