blob: 883518b7d61a3fb2edcfd83ca308e4ce1ae5d3b9 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
|
SRCS?= ${PROG:=.c}
include ./common.mk
CPPFLAGS+= -I../src
LDFLAGS+= -L../lib
LIBS+= -loadk_toolbox
VPATH= ../src
all: ${PROG}
${PROG}: ${OBJS}
${CC} ${CFLAGS} ${LDFLAGS} -o $@ \
-Wl,--start-group ${OBJS} ${LIBS} -Wl,--end-group
DESTDIR?=
BINDIR?=/bin
INSTALL?=/usr/bin/install
install:
${INSTALL} -d ${DESTDIR}${BINDIR}/
${INSTALL} -c -m 755 ${PROG} ${DESTDIR}${BINDIR}/
|