blob: e02967c21f6f707bf890663c68925e434d4d3d61 (
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
|
$FreeBSD$
--- Makefile.orig Mon Mar 26 11:40:47 2001
+++ Makefile Tue Apr 17 14:31:13 2001
@@ -2,28 +2,18 @@
NAME = GtkScintilla
LIB_NAME = gtkscintilla
-VERSION = 0.3.1
-PREFIX = $(shell gtk-config --prefix)
+VERSION = 0
+PREFIX = $(shell $(GTK_CONFIG) --prefix)
SCINTILLA_DIR = ./scintilla
-SCINTILLA_INCLUDE = $(SCINTILLA_DIR)/include
+SCINTILLA_INCLUDE = $(X11BASE)/include/scintilla
SCINTILLA_SOURCE = $(SCINTILLA_DIR)/src
-SCINTILLA_LIB = $(SCINTILLA_DIR)/bin/scintilla.a
-LEXERS = \
- $(SCINTILLA_DIR)/gtk/LexCPP.o \
- $(SCINTILLA_DIR)/gtk/LexConf.o \
- $(SCINTILLA_DIR)/gtk/LexHTML.o \
- $(SCINTILLA_DIR)/gtk/LexLua.o \
- $(SCINTILLA_DIR)/gtk/LexOthers.o \
- $(SCINTILLA_DIR)/gtk/LexPascal.o \
- $(SCINTILLA_DIR)/gtk/LexPerl.o \
- $(SCINTILLA_DIR)/gtk/LexPython.o \
- $(SCINTILLA_DIR)/gtk/LexSQL.o \
- $(SCINTILLA_DIR)/gtk/LexVB.o
-CFLAGS = $(shell gtk-config --cflags) -g -Wall -DGTK -DSCI_LEXER
-LDFLAGS = $(shell gtk-config --libs) $(SCINTILLA_LIB) $(LEXERS)
-CC = gcc
-LD = gcc
+SCINTILLA_LIB = -lscintilla
+LEXERS = -lscintilla_lexers
+CFLAGS = $(shell $(GTK_CONFIG) --cflags) -Wall -DGTK -DSCI_LEXER -I$(SCINTILLA_INCLUDE)
+LDFLAGS = $(shell $(GTK_CONFIG) --libs) $(SCINTILLA_LIB) $(LEXERS)
+CC ?= gcc
+LD = $(CC)
AR = ar
SOURCES = $(wildcard *.c)
@@ -36,7 +26,7 @@
LIB_DIR = $(PREFIX)/lib/
INCLUDE_DIR = $(PREFIX)/include/
-all: ./$(SCINTILLA_LIB) $(STATIC_LIB) $(SHARED_LIB)
+all: $(STATIC_LIB) $(SHARED_LIB)
scintilla: ./$(SCINTILLA_LIB)
|