Enable cirrus continous integration task for freebsd
[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
6
7all: elfdbg
8
9elfdbg: ${OBJS}
10 ${CC} ${OBJS} ${LDFLAGS} -o $@
11
12.c.o:
13 ${CC} ${CFLAGS} -c $<
14
15install: elfdbg
16 install -m 755 elfdbg ${DESTDIR}${PREFIX}/bin/
17
18install-strip: elfdbg
19 install -s -m 755 elfdbg ${DESTDIR}${PREFIX}/bin/
20
21clean:
22 rm -rf ${OBJS} elfdbg
23
24.PHONY: elfdbg