Display continous integration build status per task
[elfdbg/.git] / GNUMakefile
CommitLineData
418b72b3
SB
1CC?= cc
2CFLAGS?= -O2 -g -pipe -D_DEFAULT_SOURCE -Wincompatible-pointer-types
3SRCS= elf.c elfdbg.c compat.c
4OBJS= ${SRCS:.c=.o}
5PREFIX?= /usr/local
a7e22170 6MANPREFIX?= /usr/share/man
418b72b3
SB
7
8all: elfdbg
9
10elfdbg: ${OBJS}
11 ${CC} ${OBJS} ${LDFLAGS} -o $@
12
13.c.o:
14 ${CC} ${CFLAGS} -c $<
15
a7e22170 16install: elfdbg install-man
418b72b3
SB
17 install -m 755 elfdbg ${DESTDIR}${PREFIX}/bin/
18
a7e22170
SB
19install-man:
20 gzip elfdbg.1 || /usr/bin/true
21 install -m 644 elfdbg.1.gz ${MANPREFIX}/man1/
22
418b72b3
SB
23install-strip: elfdbg
24 install -s -m 755 elfdbg ${DESTDIR}${PREFIX}/bin/
25
26clean:
27 rm -rf ${OBJS} elfdbg
28
29.PHONY: elfdbg