summaryrefslogtreecommitdiff
path: root/tools/cpio/Makefile
blob: 142f65b7079e3fbea0a5fcb9384a9495e428cad4 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
# This file is part of the OpenADK project. OpenADK is copyrighted
# material, please see the LICENCE file in the top-level directory.

include $(TOPDIR)/rules.mk

SRCS+=		\
		src/ib_open.c \
		src/ib_close.c \
		src/ib_read.c \
		src/ib_alloc.c \
		src/ib_free.c \
		src/ib_getlin.c \
		src/sfile.c \
		src/gmatch.c \
		src/sigset.c \
		src/memalign.c

SRCS+=		\
		src/version.c \
		src/blast.c \
		src/crc32.c \
		src/expand.c \
		src/explode.c \
		src/flags.c \
		src/inflate.c \
		src/unshrink.c \
		src/nonpax.c \
		src/cpio.c

${TOPDIR}/bin/tools/cpio: ${SRCS}
	@${HOSTCC} ${HOSTCFLAGS} -D_GNU_SOURCE -Isrc -o $@ $^

install: ${TOPDIR}/bin/tools/cpio

include $(TOPDIR)/mk/tools.mk