English Language flag
// Log In
// CVSweb
Project: FreeWRT
// Summary // Activity // Search // Tracker // Lists // News // SCM // Wiki

SCM Repository

ViewVC logotype

Contents of /branches/freewrt_1_0/tools/paxmirabilis/Makefile

Parent Directory Parent Directory | Revision Log Revision Log


Revision 2715 - (show annotations) (download)
Tue Jun 5 14:52:44 2007 UTC (6 years, 8 months ago) by tg
File size: 1623 byte(s)
• 1.0 -> scripts/param.h, paxmirabilis: MFC the new version from trunk
• both 1.0 and trunk: implement “make targz”, “make tarbz2”
  (I like the gzip(1)d versions better though)
• 1.0 -> package/config/Makefile: quieten the “clean” target to be consistent
1 # $FreeWRT$
2 #-
3 # This file is part of the FreeWRT project. FreeWRT is copyrighted
4 # material, please see the LICENCE file in the top-level directory
5 # or at http://www.freewrt.org/licence for details.
6
7 include $(TOPDIR)/rules.mk
8
9 WRKBUILD= $(TOOLS_BUILD_DIR)/paxmirabilis
10
11 OUR_FLAGS= -I${TOPDIR}/scripts \
12 -include ${TOPDIR}/scripts/param.h
13
14 ifeq ($(OStype),Linux)
15 OUR_FLAGS+= -DLONG_OFF_T \
16 -D_STRLCPY_DEFNS
17 SRCS+= strlfun.c \
18 strmode.c \
19 fgetln.c
20 endif
21
22 SRCS+= \
23 src/ar_io.c \
24 src/ar_subs.c \
25 src/buf_subs.c \
26 src/cache.c \
27 src/cpio.c \
28 src/file_subs.c \
29 src/ftree.c \
30 src/gen_subs.c \
31 src/getoldopt.c \
32 src/options.c \
33 src/pat_rep.c \
34 src/pax.c \
35 src/sel_subs.c \
36 src/tables.c \
37 src/tar.c \
38 src/tty_subs.c
39
40 prepare: ${WRKBUILD}
41
42 compile: prepare ${WRKBUILD}/pax
43
44 install: compile
45 mkdir -p $(STAGING_DIR)/bin
46 -rm -f $(STAGING_DIR)/bin/{pax,cpio,tar} ${TOPDIR}/lbin/{pax,cpio,tar}
47 install -c -s -m 555 ${WRKBUILD}/pax $(STAGING_DIR)/bin/pax
48 cd ${STAGING_DIR}/bin && ln pax cpio && ln pax tar
49 cp $(STAGING_DIR)/bin/pax ${TOPDIR}/lbin/pax
50 cd ${TOPDIR}/lbin && ln pax cpio && ln pax tar
51
52 install-lbin:
53 rm -f ${TOPDIR}/lbin/{pax,cpio,tar}
54 if [ -e $(STAGING_DIR)/bin/pax ]; then \
55 cp $(STAGING_DIR)/bin/pax ${TOPDIR}/lbin/pax; \
56 cd ${TOPDIR}/lbin && ln pax cpio && ln pax tar; \
57 else \
58 rm -f $(TOOLS_STAMP_DIR)/.tools_paxmirabilis-install; \
59 fi
60
61 package:
62
63 clean:
64 rm -rf ${WRKBUILD}
65 rm -f $(STAGING_DIR)/bin/{pax,cpio,tar} ${TOPDIR}/lbin/{pax,cpio,tar}
66
67 ${WRKBUILD}:
68 mkdir -p ${WRKBUILD}
69
70 ${WRKBUILD}/pax: ${SRCS}
71 ${HOSTCC} ${HOSTCFLAGS} -Isrc ${OUR_FLAGS} -o $@ $^

root@freewrt.org:443
ViewVC Help
Powered by ViewVC 1.1.20