blob: 21241f80ba0fbbfceb29da5a7872a1889ce9cab0 (
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
|
$NetBSD: patch-aa,v 1.2 2008/06/20 01:09:41 joerg Exp $
--- src/Makefile.in.orig 2003-11-29 13:14:14.000000000 +0000
+++ src/Makefile.in
@@ -3,8 +3,8 @@ PROG = bkedit#
CC = gcc
LD = gcc
-CFLAGS = -Wall `@GTK_CONFIG@ --cflags` `@XML2_CONFIG@ --cflags`#-ggdb -pg -a
-LDFLAGS = @LIB@ `@GTK_CONFIG@ --libs` `@XML2_CONFIG@ --libs` -Wl,-export-dynamic# -rdynamic 'reverse dependencies' # -pg
+CFLAGS = $(PKG_CFLAGS) -Wall `@GTK_CONFIG@ --cflags` `@XML2_CONFIG@ --cflags`#-ggdb -pg -a
+LDFLAGS = $(PKG_LDFLAGS) @LIB@ `@GTK_CONFIG@ --libs` `@XML2_CONFIG@ --libs` -Wl,-export-dynamic# -rdynamic 'reverse dependencies' # -pg
OBJS = bk_edit.o bk_edit_menu.o bk_edit_tree.o bk_edit_edit.o bk_edit_file.o \
bk_edit_ccp.o bk_edit_data.o bk_edit_undo.o bk_edit_dnd.o bk_edit_misc.o \
@@ -29,10 +29,10 @@ plugs:
cd plugins && make
install:
- $(INSTALL) -d -m 755 @PREFIX@/bin/
- $(INSTALL) -m 755 $(PROG) @PREFIX@/bin/
- $(INSTALL) -d -m 755 @PREFIX@/share/bkedit/
- $(INSTALL) -m 755 ./plugins/*.so @PREFIX@/share/bkedit/
+ $(INSTALL) -d -m 755 ${DESTDIR}@PREFIX@/bin/
+ $(INSTALL) -m 755 $(PROG) ${DESTDIR}@PREFIX@/bin/
+ $(INSTALL) -d -m 755 ${DESTDIR}@PREFIX@/share/bkedit/
+ $(INSTALL) -m 755 ./plugins/*.so ${DESTDIR}@PREFIX@/share/bkedit/
uninstall:
$(RM) @PREFIX@/bin/$(PROG)
|