summaryrefslogtreecommitdiff
path: root/net/netatalk/patches/patch-ak
blob: 3ab2097fcfa6dc7d5b2b4eeb41b52b4287ec8b1e (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
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
$NetBSD: patch-ak,v 1.2 1999/08/31 22:09:43 wrstuden Exp $

--- libatalk/Makefile	Tue Feb 20 08:38:05 1996
+++ libatalk/Makefile	Tue Aug 31 02:28:01 1999
@@ -1,63 +1,17 @@
-ALL=	asp atp nbp adouble util compat
-LIBS=	asp/asplib atp/atplib nbp/nbplib adouble/adoublelib \
-	util/utillib compat/compatlib
-PLIBS=	asp/asplib_p atp/atplib_p nbp/nbplib_p adouble/adoublelib_p \
-	util/utillib_p compat/compatlib_p
-TAGSFILE=tags
-CC=cc
-INSTALL=install
+LIB=	atalk
 
-all:	libatalk.a
+MKPROFILE=	no
 
-libatalk.a: ${LIBS}
-	rm -rf tmp
-	-mkdir tmp
-	for i in ${ALL}; do (cd tmp; ar x ../$$i/$${i}lib); done
-	(cd tmp; ar cr libatalk.a  *.o; ranlib libatalk.a)
-	mv tmp/libatalk.a libatalk.a
-	ranlib libatalk.a
-	rm -rf tmp tmp_p
-	-mkdir tmp_p
-	for i in ${ALL}; do (cd tmp_p; ar x ../$$i/$${i}lib_p); done
-	(cd tmp_p; ar cr libatalk_p.a  *.o; ranlib libatalk_p.a)
-	mv tmp_p/libatalk_p.a libatalk_p.a
-	ranlib libatalk_p.a
-	rm -rf tmp_p
+.include "${.CURDIR}/asp/Makefile.inc"
+.include "${.CURDIR}/atp/Makefile.inc"
+.include "${.CURDIR}/nbp/Makefile.inc"
+.include "${.CURDIR}/adouble/Makefile.inc"
+.include "${.CURDIR}/util/Makefile.inc"
+.include "${.CURDIR}/compat/Makefile.inc"
 
-${ALL}: FRC
-	cd $@; ${MAKE} ${MFLAGS} CC="${CC}" DEFS="${DEFS}" \
-	    OPTOPTS="${OPTOPTS}"
+CPPFLAGS=	${DEFS} ${OPTOPTS} -I${.CURDIR}/../include
 
-asp/asplib:	asp
-atp/atplib:	atp
-nbp/nbplib:	nbp
-adouble/adoublelib:	adouble
-util/utillib:	util
-compat/compatlib:	compat
+SHLIB_MAJOR=	1
+SHLIB_MINOR=	0
 
-FRC:
-
-tags:
-	for i in ${ALL}; do \
-	    (cd $$i; ${MAKE} ${MFLAGS} DEFS="${DEFS}" \
-		TAGSFILE=../${TAGSFILE} tags); \
-	done
-
-install: all
-	-mkdir ${LIBDIR}
-	${INSTALL} -c libatalk.a ${LIBDIR}/libatalk.a
-	(cd ${LIBDIR}; ranlib ${LIBDIR}/libatalk.a)
-	${INSTALL} -c libatalk_p.a ${LIBDIR}/libatalk_p.a
-	(cd ${LIBDIR}; ranlib ${LIBDIR}/libatalk_p.a)
-
-clean:
-	for i in ${ALL}; \
-	    do (cd $$i; ${MAKE} ${MFLAGS} clean); \
-	done
-	rm -f *[Ee]rrs libatalk.a libatalk_p.a
-	rm -rf tmp tmp_p
-
-depend:
-	for i in ${ALL}; \
-	    do (cd $$i; ${MAKE} ${MFLAGS} DEFS=${DEFS} depend); \
-	done
+.include <bsd.lib.mk>