Mercurial > bcc
annotate Makefile @ 10:9ab498c63f57 2.0.0
misc: update before 2.0.0
author | David Demelier <markand@malikania.fr> |
---|---|
date | Tue, 13 Apr 2021 21:29:55 +0200 |
parents | ab5c41277358 |
children | 9fa084386faa |
rev | line source |
---|---|
0 | 1 # |
10
9ab498c63f57
misc: update before 2.0.0
David Demelier <markand@malikania.fr>
parents:
9
diff
changeset
|
2 # Makefile -- basic Makefile for bcc |
0 | 3 # |
9
ab5c41277358
misc: update copyright years
David Demelier <markand@malikania.fr>
parents:
0
diff
changeset
|
4 # Copyright (c) 2020-2021 David Demelier <markand@malikania.fr> |
0 | 5 # |
6 # Permission to use, copy, modify, and/or 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 .POSIX: | |
20 | |
21 # User options. | |
22 CC= cc | |
23 CFLAGS= -Wall -Wextra -DNDEBUG -D_XOPEN_SOURCE=700 -O3 -std=c11 -pedantic | |
24 | |
25 # Installation paths. | |
26 PREFIX= /usr/local | |
27 BINDIR= ${PREFIX}/bin | |
28 MANDIR= ${PREFIX}/share/man | |
29 | |
10
9ab498c63f57
misc: update before 2.0.0
David Demelier <markand@malikania.fr>
parents:
9
diff
changeset
|
30 VERSION= 2.0.0 |
0 | 31 SRCS= bcc.c |
32 OBJS= ${SRCS:.c=.o} | |
33 | |
34 .SUFFIXES: | |
35 .SUFFIXES: .o .c | |
36 | |
37 all: bcc | |
38 | |
39 .c.o: | |
40 ${CC} ${CFLAGS} -c $< -o $@ | |
41 | |
42 bcc: ${OBJS} | |
43 ${CC} -o $@ ${OBJS}${LDFLAGS} | |
44 | |
45 dist: clean | |
46 mkdir bcc-${VERSION} | |
47 cp CHANGES.md INSTALL.md LICENSE.md Makefile README.md bcc.1 bcc.c bcc-${VERSION} | |
48 tar -cJf bcc-${VERSION}.tar.xz bcc-${VERSION} | |
49 rm -rf bcc-${VERSION} | |
50 | |
51 install: | |
52 mkdir -p ${DESTDIR}${BINDIR} | |
53 cp bcc ${DESTDIR}${BINDIR} | |
54 mkdir -p ${DESTDIR}${MANDIR}/man1 | |
55 cp bcc.1 ${DESTDIR}${MANDIR}/man1 | |
56 | |
57 clean: | |
58 rm -f bcc ${OBJS} bcc-${VERSION}.tar.xz | |
59 | |
60 .PHONY: all clean dist install |