blob: fa587e8b55c4d44f16ed3f27b35cc7f1511b3136 (
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
|
$NetBSD: patch-ab,v 1.8 2014/09/13 11:10:58 shattered Exp $
--- nulib2-220/Makefile.in.orig 2004-10-12 00:25:19.000000000 +0200
+++ nulib2-220/Makefile.in
@@ -69,14 +69,18 @@ LIB_PRODUCT = libnufx.a
# Build stuff
#
-all: $(PRODUCT)
+# XXX - until pkgsrc has a sane way to invoke multiple "build" targets
+../nufxlib-220/libnufx.a:
+ cd ../nufxlib-220 && $(MAKE)
+
+all: ../nufxlib-220/libnufx.a $(PRODUCT)
@true
install: $(PRODUCT)
- $(srcdir)/mkinstalldirs $(bindir)
- $(INSTALL_PROGRAM) $(PRODUCT) $(bindir)
- $(srcdir)/mkinstalldirs $(mandir)/man1
- $(INSTALL_DATA) nulib2.1 $(mandir)/man1/
+ $(srcdir)/mkinstalldirs ${DESTDIR}$(bindir)
+ $(INSTALL_PROGRAM) $(PRODUCT) ${DESTDIR}$(bindir)
+ $(srcdir)/mkinstalldirs ${DESTDIR}$(mandir)/man1
+ $(INSTALL_DATA) nulib2.1 ${DESTDIR}$(mandir)/man1/
install-shared:
LIB_PRODUCT="libnufx.so" $(MAKE) -e install
@@ -97,7 +101,7 @@ purify:
@$(MAKE) PURIFY_BUILD=1
$(PRODUCT): $(OBJS) $(NUFXLIB)
- $(PURIFY) $(QUANTIFY) $(CC) -o $@ $(OBJS) -L$(NUFXSRCDIR) -L$(libdir) -lnufx @LIBS@
+ $(PURIFY) $(QUANTIFY) $(CC) -o $@ $(OBJS) -L$(NUFXSRCDIR) $(LDFLAGS) -lnufx @LIBS@
clean:
-rm -f *.o core
|