Deleted Added
full compact
Makefile (96462) Makefile (100394)
1# $FreeBSD: head/lib/libstand/Makefile 96462 2002-05-12 16:01:00Z ru $
1# $FreeBSD: head/lib/libstand/Makefile 100394 2002-07-20 04:18:20Z peter $
2# Originally from $NetBSD: Makefile,v 1.21 1997/10/26 22:08:38 lukem Exp $
3#
4# Notes:
5# - We don't use the libc strerror/sys_errlist because the string table is
6# quite large.
7#
8
9LIB= stand
10NOPROFILE= YES
11NOPIC= YES
12INCS= stand.h
13MAN= libstand.3
14
2# Originally from $NetBSD: Makefile,v 1.21 1997/10/26 22:08:38 lukem Exp $
3#
4# Notes:
5# - We don't use the libc strerror/sys_errlist because the string table is
6# quite large.
7#
8
9LIB= stand
10NOPROFILE= YES
11NOPIC= YES
12INCS= stand.h
13MAN= libstand.3
14
15CFLAGS+= -ffreestanding
15CFLAGS+= -ffreestanding -Wformat
16CFLAGS+= -I${.CURDIR}
16
17.if ${MACHINE_ARCH} == "alpha"
18CFLAGS+= -mno-fp-regs
19.endif
20.if ${MACHINE_ARCH} == "i386"
21CFLAGS+= -mpreferred-stack-boundary=2
22.endif
23.if ${MACHINE_ARCH} == "powerpc"
24CFLAGS+= -msoft-float
25.endif
26
27# standalone components and stuff we have modified locally
17
18.if ${MACHINE_ARCH} == "alpha"
19CFLAGS+= -mno-fp-regs
20.endif
21.if ${MACHINE_ARCH} == "i386"
22CFLAGS+= -mpreferred-stack-boundary=2
23.endif
24.if ${MACHINE_ARCH} == "powerpc"
25CFLAGS+= -msoft-float
26.endif
27
28# standalone components and stuff we have modified locally
28SRCS+= __main.c assert.c bcd.c bswap.c environment.c getopt.c gets.c \
29SRCS+= zutil.h __main.c assert.c bcd.c bswap.c environment.c getopt.c gets.c \
29 globals.c pager.c printf.c strdup.c strerror.c strtol.c random.c \
30 sbrk.c twiddle.c zalloc.c zalloc_malloc.c
31
32# private (pruned) versions of libc string functions
33SRCS+= strcasecmp.c
34
35# byte order functions from libc
36.PATH: ${.CURDIR}/../libc/${MACHINE_ARCH}/net

--- 90 unchanged lines hidden (view full) ---

127CLEANFILES+= _${file}
128
129_${file}: ${file}
130 sed "s|bzlib_private\.h|_bzlib_private.h|" ${.ALLSRC} > ${.TARGET}
131.endfor
132
133# decompression functionality from libz
134.PATH: ${.CURDIR}/../libz
30 globals.c pager.c printf.c strdup.c strerror.c strtol.c random.c \
31 sbrk.c twiddle.c zalloc.c zalloc_malloc.c
32
33# private (pruned) versions of libc string functions
34SRCS+= strcasecmp.c
35
36# byte order functions from libc
37.PATH: ${.CURDIR}/../libc/${MACHINE_ARCH}/net

--- 90 unchanged lines hidden (view full) ---

128CLEANFILES+= _${file}
129
130_${file}: ${file}
131 sed "s|bzlib_private\.h|_bzlib_private.h|" ${.ALLSRC} > ${.TARGET}
132.endfor
133
134# decompression functionality from libz
135.PATH: ${.CURDIR}/../libz
135CFLAGS+=-DHAVE_MEMCPY
136SRCS+= adler32.c crc32.c infblock.c infcodes.c inffast.c inflate.c \
137 inftrees.c infutil.c zutil.c
136CFLAGS+=-DHAVE_MEMCPY -I${.CURDIR}/../libz
137SRCS+= adler32.c crc32.c _infblock.c _infcodes.c _inffast.c _inflate.c \
138 _inftrees.c _infutil.c _zutil.c _zutil.h
138
139
140# aargh
141.for file in zutil.h
142CLEANFILES+= _${file} _${file}.orig
143
144_${file}: ${file} ${file}.diff
145 patch -s -b .orig -o ${.TARGET} < ${.ALLSRC:M*.diff} ${.ALLSRC:M*.[ch]}
146.endfor
147
148.for file in infblock.c infcodes.c inffast.c inflate.c inftrees.c infutil.c zutil.c
149_${file}: ${file}
150 sed "s|zutil\.h|_zutil.h|" ${.ALLSRC} > ${.TARGET}
151.endfor
152
139# io routines
140SRCS+= closeall.c dev.c ioctl.c nullfs.c stat.c \
141 fstat.c close.c lseek.c open.c read.c write.c readdir.c
142
143# network routines
144SRCS+= arp.c ether.c inet_ntoa.c in_cksum.c net.c udp.c netif.c rpc.c
145
146# network info services:
147SRCS+= bootp.c rarp.c bootparam.c
148
149# boot filesystems
150SRCS+= ufs.c nfs.c cd9660.c tftp.c zipfs.c bzipfs.c
151SRCS+= netif.c nfs.c
152SRCS+= dosfs.c ext2fs.c
153SRCS+= splitfs.c
154
155.include <bsd.lib.mk>
153# io routines
154SRCS+= closeall.c dev.c ioctl.c nullfs.c stat.c \
155 fstat.c close.c lseek.c open.c read.c write.c readdir.c
156
157# network routines
158SRCS+= arp.c ether.c inet_ntoa.c in_cksum.c net.c udp.c netif.c rpc.c
159
160# network info services:
161SRCS+= bootp.c rarp.c bootparam.c
162
163# boot filesystems
164SRCS+= ufs.c nfs.c cd9660.c tftp.c zipfs.c bzipfs.c
165SRCS+= netif.c nfs.c
166SRCS+= dosfs.c ext2fs.c
167SRCS+= splitfs.c
168
169.include <bsd.lib.mk>