From 9d7518c2cb43f1fb1eb54495899945523fd5dc99 Mon Sep 17 00:00:00 2001 From: Waldemar Brodkorb Date: Sun, 25 Feb 2018 13:53:05 +0000 Subject: toolbox: add OpenADK toolbox for very small systems, thx Thorsten Glaser --- package/toolbox/src/tool.mk | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100644 package/toolbox/src/tool.mk (limited to 'package/toolbox/src/tool.mk') diff --git a/package/toolbox/src/tool.mk b/package/toolbox/src/tool.mk new file mode 100644 index 000000000..883518b7d --- /dev/null +++ b/package/toolbox/src/tool.mk @@ -0,0 +1,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}/ -- cgit v1.2.3