blob: 54224ee98358c087998aa1a55942bba5dc233134 (
plain) (
blame)
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
|
--- src/gtkscintilla2/Makefile.orig Thu Dec 22 22:02:47 2005
+++ src/gtkscintilla2/Makefile Thu Dec 22 22:04:02 2005
@@ -2,7 +2,7 @@
NAME = GtkScintilla2
LIB_NAME = gtkscintilla2
-VERSION = 0.1.0
+VERSION = 0
PREFIX = $(shell pkg-config --variable=prefix gtk+-2.0)
SCINTILLA_DIR = ./scintilla
@@ -10,12 +10,12 @@
SCINTILLA_LIB = $(SCINTILLA_DIR)/bin/scintilla.a
SCINTILLA_IFACE = $(SCINTILLA_INCLUDE)/Scintilla.iface
LEXERS = $(wildcard $(SCINTILLA_DIR)/gtk/Lex*.o)
-CFLAGS = $(shell pkg-config --cflags gtk+-2.0) -g -Wall -DGTK -DSCI_LEXER -fPIC
-LDFLAGS_PRE = $(shell pkg-config --libs gtk+-2.0) -DGTK2
+CFLAGS = $(shell pkg-config --cflags gtk+-2.0 gthread-2.0) -g -Wall -DGTK -DSCI_LEXER -fPIC
+LDFLAGS_PRE = $(shell pkg-config --libs gtk+-2.0 gthread-2.0) -DGTK2
LDFLAGS_POST = $(LEXERS) $(SCINTILLA_LIB) -lstdc++
-CC = gcc
-LD = gcc
+CC ?= gcc
+LD ?= $(CC)
AR = ar
STATIC_LIB = lib$(LIB_NAME).a
@@ -23,7 +23,7 @@
LIB_DIR = $(PREFIX)/lib
INCLUDE_DIR = $(PREFIX)/include/$(LIB_NAME)
-PKG_CONFIG_DIR = $(PREFIX)/lib/pkgconfig
+PKG_CONFIG_DIR = $(PREFIX)/libdata/pkgconfig
all: $(STATIC_LIB) $(SHARED_LIB)
|