aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/Makefile13
1 files changed, 13 insertions, 0 deletions
diff --git a/src/Makefile b/src/Makefile
index 62bac715..bb48c991 100644
--- a/src/Makefile
+++ b/src/Makefile
@@ -12,13 +12,26 @@ GTKFLAGS=$(shell pkg-config --cflags gtk+-2.0)
GTKLIBS=$(shell pkg-config --libs gtk+-2.0 gthread-2.0)
EXPORTLUASYMS=-rdynamic -Wl,--retain-symbols-file -Wl,lua.sym
+ifndef X86_64
+ARCHDIR=lib32
+else
+ARCHDIR=x86_64
+endif
+LUA51A=../$(ARCHDIR)/src/liblua5.1.a
+GTKSO=../$(ARCHDIR)/core/gtk.so
+LPEGSO=../$(ARCHDIR)/lexers/lpeg.so
+
all: textadept
.c.o:
g++ $(GTKFLAGS) $(INCLUDEDIRS) $(CXXFLAGS) -c $< -o $@
+liblua5.1.a:
+ cp $(LUA51A) .
textadept:\
textadept.o lua_interface.o \
scintilla-st/gtk/LexLPeg.o scintilla-st/bin/scintilla.a liblua5.1.a
g++ $(GTKLIBS) $(EXPORTLUASYMS) -DGTK $^ -o $@
+ cp $(GTKSO) ../core/
+ cp $(LPEGSO) ../lexers/
clean:
rm textadept *.o