source: freewrt/tools/paxmirabilis/Makefile@ 2c03383

freewrt_1_0 freewrt_2_0
Last change on this file since 2c03383 was 2c03383, checked in by Thorsten Glaser <tg@…>, 19 years ago

fgetln from Debian libbsd

git-svn-id: svn://www.freewrt.org/trunk/freewrt@219 afb5a338-a214-0410-bd46-81f09a774fd1

  • Property mode set to 100644
File size: 892 bytes
Line 
1include $(TOPDIR)/rules.mk
2
3WRKBUILD= $(TOOLS_BUILD_DIR)/paxmirabilis
4
5OUR_FLAGS= -I${TOPDIR}/scripts \
6 -D_STRLCPY_DEFNS \
7 -std=gnu99 \
8 -include ${TOPDIR}/scripts/param.h
9
10SRCS= strlfun.c \
11 strmode.c \
12 fgetln.c \
13 src/ar_io.c \
14 src/ar_subs.c \
15 src/buf_subs.c \
16 src/cache.c \
17 src/cpio.c \
18 src/file_subs.c \
19 src/ftree.c \
20 src/gen_subs.c \
21 src/getoldopt.c \
22 src/options.c \
23 src/pat_rep.c \
24 src/pax.c \
25 src/sel_subs.c \
26 src/tables.c \
27 src/tar.c \
28 src/tty_subs.c
29
30prepare: ${WRKBUILD}
31
32compile: prepare ${WRKBUILD}/pax
33
34install: compile
35 -rm -f ${TOPDIR}/lbin/{pax,cpio,tar}
36 install -c -s -m 555 ${WRKBUILD}/pax ${TOPDIR}/lbin/pax
37 cd ${TOPDIR}/lbin && ln pax cpio && ln pax tar
38
39package:
40
41clean:
42 rm -rf src ${TOPDIR}/lbin/{pax,cpio,tar}
43
44${WRKBUILD}:
45 mkdir -p ${WRKBUILD}
46
47${WRKBUILD}/pax: ${SRCS}
48 ${HOSTCC} ${HOSTCFLAGS} -Isrc ${OUR_FLAGS} -o $@ $^
Note: See TracBrowser for help on using the repository browser.