Deleted Added
full compact
Makefile (54312) Makefile (54351)
1# @(#)Makefile 8.2 (Berkeley) 1/4/94
1# @(#)Makefile 8.2 (Berkeley) 1/4/94
2# $FreeBSD: head/include/Makefile 54312 1999-12-08 13:47:30Z marcel $
2# $FreeBSD: head/include/Makefile 54351 1999-12-09 09:35:36Z marcel $
3#
4# Doing a make install builds /usr/include
3#
4# Doing a make install builds /usr/include
5#
6# The ``rm -rf''s used below are safe because rm doesn't follow symbolic
7# links.
5
6CLEANFILES= osreldate.h version vers.c
7SUBDIR= rpcsvc
8FILES= a.out.h ar.h assert.h bitstring.h ctype.h db.h dirent.h disktab.h \
9 dlfcn.h elf.h err.h fnmatch.h fstab.h \
10 fts.h glob.h grp.h strhash.h histedit.h ieeefp.h iso646.h \
11 limits.h link.h locale.h malloc.h memory.h mpool.h \
12 ndbm.h netdb.h nl_types.h nlist.h objformat.h \

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

27 rpc.h rpc_com.h rpc_msg.h svc.h svc_auth.h types.h xdr.h \
28 auth_des.h des.h des_crypt.h
29
30MFILES= float.h floatingpoint.h stdarg.h varargs.h
31
32# posix4/aio.h conflicts with dysons and isn't installed:
33PFILES= mqueue.h sched.h semaphore.h # aio.h
34
8
9CLEANFILES= osreldate.h version vers.c
10SUBDIR= rpcsvc
11FILES= a.out.h ar.h assert.h bitstring.h ctype.h db.h dirent.h disktab.h \
12 dlfcn.h elf.h err.h fnmatch.h fstab.h \
13 fts.h glob.h grp.h strhash.h histedit.h ieeefp.h iso646.h \
14 limits.h link.h locale.h malloc.h memory.h mpool.h \
15 ndbm.h netdb.h nl_types.h nlist.h objformat.h \

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

30 rpc.h rpc_com.h rpc_msg.h svc.h svc_auth.h types.h xdr.h \
31 auth_des.h des.h des_crypt.h
32
33MFILES= float.h floatingpoint.h stdarg.h varargs.h
34
35# posix4/aio.h conflicts with dysons and isn't installed:
36PFILES= mqueue.h sched.h semaphore.h # aio.h
37
35SFILES= joystick.h soundcard.h
38# Only for default SHARED=copies case
39SFILES= soundcard.h joystick.h
36
37LFILES= aio.h errno.h fcntl.h inttypes.h linker_set.h poll.h syslog.h \
38 termios.h ucontext.h
39
40
41LFILES= aio.h errno.h fcntl.h inttypes.h linker_set.h poll.h syslog.h \
42 termios.h ucontext.h
43
40LDIRS= cam cam/scsi isofs/cd9660 msdosfs net netatalk netatm netgraph \
41 netinet netinet6 netipx netkey netncp netns nfs ntfs nwfs pccard \
42 posix4 sys ufs/ffs ufs/mfs ufs/ufs vm
44LDIRS= cam msdosfs net netatalk netatm netgraph netinet netinet6 \
45 netipx netkey netncp netns nfs ntfs nwfs pccard posix4 sys vm
43
46
47LNOHEADERDIRS= isofs ufs
48LSUBDIRS= isofs/cd9660 ufs/ffs ufs/mfs ufs/ufs cam/scsi
49
50# Define SHARED to indicate whether you want symbolic links to the system
51# source (``symlinks''), or a separate copy (``copies''). ``symlinks'' is
52# probably only useful for developers and should be avoided if you do not
53# wish to tie your /usr/include and /usr/src together.
54#SHARED= symlinks
55SHARED?= copies
56
44all: osreldate.h
45
46osreldate.h: ${.CURDIR}/../sys/conf/newvers.sh \
47 ${.CURDIR}/../sys/sys/param.h
48 @${ECHO} creating osreldate.h from newvers.sh
49 setvar PARAMFILE ${.CURDIR}/../sys/sys/param.h; \
50 . ${.CURDIR}/../sys/conf/newvers.sh; \
51 echo "$$COPYRIGHT" > osreldate.h; \
52 echo \#'undef __FreeBSD_version' >> osreldate.h; \
53 echo \#'define __FreeBSD_version' $$RELDATE >> osreldate.h
54
57all: osreldate.h
58
59osreldate.h: ${.CURDIR}/../sys/conf/newvers.sh \
60 ${.CURDIR}/../sys/sys/param.h
61 @${ECHO} creating osreldate.h from newvers.sh
62 setvar PARAMFILE ${.CURDIR}/../sys/sys/param.h; \
63 . ${.CURDIR}/../sys/conf/newvers.sh; \
64 echo "$$COPYRIGHT" > osreldate.h; \
65 echo \#'undef __FreeBSD_version' >> osreldate.h; \
66 echo \#'define __FreeBSD_version' $$RELDATE >> osreldate.h
67
55beforeinstall:
56 ${INSTALL} -C -o ${BINOWN} -g ${BINGRP} -m 444 ${.OBJDIR}/osreldate.h \
57 ${DESTDIR}/usr/include
68beforeinstall: ${SHARED}
69 @rm -f ${DESTDIR}/usr/include/timepps.h
58 cd ${.CURDIR}; \
70 cd ${.CURDIR}; \
59 ${INSTALL} -C -o ${BINOWN} -g ${BINGRP} -m 444 ${FILES} \
60 ${DESTDIR}/usr/include
71 ${INSTALL} -C -o ${BINOWN} -g ${BINGRP} -m 444 \
72 ${FILES} ${DESTDIR}/usr/include
61 cd ${.CURDIR}/arpa; \
73 cd ${.CURDIR}/arpa; \
62 ${INSTALL} -C -o ${BINOWN} -g ${BINGRP} -m 444 ${ARPAFILES} \
63 ${DESTDIR}/usr/include/arpa
74 ${INSTALL} -C -o ${BINOWN} -g ${BINGRP} -m 444 \
75 ${ARPAFILES} ${DESTDIR}/usr/include/arpa
64 cd ${.CURDIR}/protocols; \
76 cd ${.CURDIR}/protocols; \
65 ${INSTALL} -C -o ${BINOWN} -g ${BINGRP} -m 444 ${PROTOFILES} \
66 ${DESTDIR}/usr/include/protocols
77 ${INSTALL} -C -o ${BINOWN} -g ${BINGRP} -m 444 \
78 ${PROTOFILES} ${DESTDIR}/usr/include/protocols
67 cd ${.CURDIR}/rpc; \
79 cd ${.CURDIR}/rpc; \
68 ${INSTALL} -C -o ${BINOWN} -g ${BINGRP} -m 444 ${RPCFILES} \
69 ${DESTDIR}/usr/include/rpc
70.for i in ${LDIRS}
71 cd ${.CURDIR}/../sys; \
72 ${INSTALL} -C -o ${BINOWN} -g ${BINGRP} -m 444 $i/*.h \
73 ${DESTDIR}/usr/include/$i
74.endfor
75.if exists(${.CURDIR}/../sys/${MACHINE_ARCH}/include)
76 cd ${.CURDIR}/../sys/${MACHINE_ARCH}/include; \
77 ${INSTALL} -C -o ${BINOWN} -g ${BINGRP} -m 444 *.h \
78 ${DESTDIR}/usr/include/machine
79.endif
80 ${INSTALL} -C -o ${BINOWN} -g ${BINGRP} -m 444 \
81 ${RPCFILES} ${DESTDIR}/usr/include/rpc
82 ${INSTALL} -C -o ${BINOWN} -g ${BINGRP} -m 444 \
83 ${.OBJDIR}/osreldate.h \
84 ${DESTDIR}/usr/include
80.for i in ${LFILES}
81 ln -sf sys/$i ${DESTDIR}/usr/include/$i
82.endfor
83.for i in ${MFILES}
84 ln -sf machine/$i ${DESTDIR}/usr/include/$i
85.endfor
86.for i in ${PFILES}
87 ln -sf posix4/$i ${DESTDIR}/usr/include/$i
88.endfor
85.for i in ${LFILES}
86 ln -sf sys/$i ${DESTDIR}/usr/include/$i
87.endfor
88.for i in ${MFILES}
89 ln -sf machine/$i ${DESTDIR}/usr/include/$i
90.endfor
91.for i in ${PFILES}
92 ln -sf posix4/$i ${DESTDIR}/usr/include/$i
93.endfor
94
95copies:
96.for i in ${LDIRS} ${LNOHEADERDIRS} machine
97 if [ -h ${DESTDIR}/usr/include/$i ]; then \
98 rm -f ${DESTDIR}/usr/include/$i; \
99 fi
100.endfor
101 mtree -deU -f ${.CURDIR}/../etc/mtree/BSD.include.dist \
102 -p ${DESTDIR}/usr/include
103.for i in ${LDIRS} ${LSUBDIRS}
104 cd ${.CURDIR}/../sys; \
105 ${INSTALL} -C -o ${BINOWN} -g ${BINGRP} -m 444 $i/*.h \
106 ${DESTDIR}/usr/include/$i
107.endfor
108.if exists(${.CURDIR}/../sys/${MACHINE_ARCH}/include)
109 cd ${.CURDIR}/../sys/${MACHINE_ARCH}/include; \
110 ${INSTALL} -C -o ${BINOWN} -g ${BINGRP} -m 444 *.h \
111 ${DESTDIR}/usr/include/machine
112.endif
89.for i in ${SFILES}
90 ln -sf ../sys/$i ${DESTDIR}/usr/include/machine/$i
91.endfor
92
113.for i in ${SFILES}
114 ln -sf ../sys/$i ${DESTDIR}/usr/include/machine/$i
115.endfor
116
117symlinks:
118 @${ECHO} "Setting up symlinks to kernel source tree..."
119.for i in ${LDIRS} ${LNOHEADERDIRS}
120 rm -rf ${DESTDIR}/usr/include/$i
121 ln -s ../../sys/$i ${DESTDIR}/usr/include/$i
122.endfor
123 rm -rf ${DESTDIR}/usr/include/machine
124 ln -s ../../sys/${MACHINE_ARCH}/include ${DESTDIR}/usr/include/machine
125
93.include <bsd.prog.mk>
126.include <bsd.prog.mk>