blob: 848863fe9422c1f5c56326bcee52f7c15048f07b (
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
|
$NetBSD: patch-ab,v 1.3 2008/12/23 11:22:06 obache Exp $
--- Makefile.orig 2006-03-08 04:10:25.000000000 +0900
+++ Makefile
@@ -11,33 +11,12 @@ SRCS= attrstack.c config.c detailer.c di
globtree.c idcache.c keyword.c lister.c main.c misc.c mux.c parse.y \
pathcomp.c proto.c status.c stream.c threads.c token.l updater.c
-CFLAGS+= -I. -I${.CURDIR} -g -pthread -DHAVE_FFLAGS -DNDEBUG
+CFLAGS+= -I. -I${.CURDIR} -g -DNDEBUG
WARNS?= 6
-# A bit of tweaking is needed to get this Makefile working
-# with the bsd.prog.mk of all the *BSD OSes...
-.if (${UNAME} == "NetBSD")
-LDFLAGS+= -pthread
+# The NetBSD rules apply on all pkgsrc platforms.
YHEADER= yes
-.elif (${UNAME} == "OpenBSD")
-# I bet there's a better way to do this with the OpenBSD mk
-# framework but well, this works and I got bored.
-LDFLAGS+= -pthread
-YFLAGS= -d
-CLEANFILES+= parse.c parse.h y.tab.h
-
-config.c: parse.h
-
-token.l: parse.h
-
-y.tab.h: parse.c
-
-parse.h: y.tab.h
- cp ${.ALLSRC} ${.TARGET}
-
-.endif
-
DPADD= ${LIBCRYPTO} ${LIBZ}
LDADD= -lcrypto -lz
|