blob: 93065fb7aa3d0933338194a45760808dfa01241a (
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
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
|
# $MirOS: contrib/hosted/fwcf/fwcf.helper/Makefile,v 1.9 2007/03/13 18:14:31 tg Exp $
# This file is part of the FreeWRT project. FreeWRT is copyrighted
# material, please see the LICENCE file in the top-level directory
# or at http://www.freewrt.org/licence for details.
PROG= fwcf.helper
SRCS= tool.c sys_bsd.c
CFLAGS_tool.o+= -DSMALL
_CFLADD+= tool.o
NOMAN= Yes
SRCS+= compress.c
SRCS+= cpr_get.c
SRCS+= cpr_list.c
SRCS+= cpr_lsth.c
SRCS+= ft_creat.c
SRCS+= ft_pack.c
SRCS+= ft_packm.c
SRCS+= fts_subs.c
SRCS+= header.c
SRCS+= minilzop.c
SRCS+= unwraps.c
SRCS+= wraps.c
CLEANFILES+= ${.CURDIR}/test.out ${.CURDIR}/test.nil
LIB= # don't need, thanks
.ifdef COMPRESSOR_ZLIB
SRCS+= c_zlib.c
DPADD+= ${LIBZ}
LDADD+= -lz
.else
SRCS+= c_lzo1x1.c
.endif
test: ${PROG}
./${PROG} -M ${.CURDIR}/../mkfwcf/CVS >${.CURDIR}/test.out
./${PROG} -Me >${.CURDIR}/test.nil
# ./${PROG} -U out.test <${.CURDIR}/../mkfwcf/test.out
.ifdef COMPRESSOR_ZLIB
./${PROG} -U out.tesz <${.CURDIR}/../mkfwcf/tesz.out
.else
./${PROG} -U out.tesL <${.CURDIR}/../mkfwcf/tesL.out
.endif
.include <bsd.prog.mk>
clean cleandir: clean-local
clean-local:
-rm -rf out.test out.tesz out.tesL
|