Mercurial > backlight
annotate Makefile @ 4:ecda5dd72b79
misc: style
author | David Demelier <markand@malikania.fr> |
---|---|
date | Thu, 18 Oct 2018 12:49:54 +0200 |
parents | 7174d183e592 |
children | 77ea2359f3e4 |
rev | line source |
---|---|
0 | 1 # |
2 # Makefile for backlight | |
3 # | |
3
7174d183e592
misc: update copyrights
David Demelier <markand@malikania.fr>
parents:
2
diff
changeset
|
4 # Copyright (c) 2010-2018 David Demelier <markand@malikania.fr> |
0 | 5 # |
6 # Permission to use, copy, modify, and distribute this software for any | |
7 # purpose with or without fee is hereby granted, provided that the above | |
8 # copyright notice and this permission notice appear in all copies. | |
9 # | |
10 # THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES | |
11 # WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF | |
12 # MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR | |
13 # ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES | |
14 # WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN | |
15 # ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF | |
16 # OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. | |
17 # | |
18 | |
19 PREFIX= /usr/local/bin | |
20 | |
21 CC= gcc | |
2
a81001c9e45a
backlight: add intel_backlight and adjust next value
David Demelier <markand@malikania.fr>
parents:
1
diff
changeset
|
22 CFLAGS= -Wall -Wextra -ansi -pedantic -std=c99 -DNDEBUG |
0 | 23 |
24 ECHO= echo | |
25 RM= rm -f | |
26 INSTALL= install -o root -g wheel -m 4755 | |
27 | |
28 all: backlight | |
29 | |
30 main.o: main.c | |
31 @echo CC $< | |
32 @${CC} ${CFLAGS} -c -o $@ $< | |
33 | |
34 backlight: main.o | |
35 @echo LD $@ | |
36 @${CC} ${CFLAGS} -o $@ $< | |
37 | |
38 clean: | |
39 ${RM} *.o backlight | |
40 | |
41 install: backlight | |
42 ${INSTALL} $< ${PREFIX} |