summarylogtreecommitdiffstats
path: root/makefile
blob: ca12437ba677a7c4b61237a081ae4da59730b1f6 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
CC=gcc
CFLAGS=
DESTDIR=/usr/bin
NAME=xbacklight-auto
DEPS= stdio.h stdlib.h sys/ioctl.h getopt.h fcntl.h errno.h sys/mman.h unistd.h stdint.h string.h linux/videodev2.h
all:
	$(CC) xbacklight-auto.c -o $(NAME) $(CFLAGS)
test:
	@ for header in $(DEPS); do printf "found "; ls /usr/include/$$header; done
	@ echo "All dependencies satisfied." 
clean: 
	@rm ./$(NAME)
install:
	@install ./$(NAME) $(DESTDIR)/$(NAME)
uninstall:
	@rm $(DESTDIR)/$(NAME)