diff options
author | 2008-11-08 23:42:28 -0500 | |
---|---|---|
committer | 2008-11-08 23:42:28 -0500 | |
commit | ced55dc1815dc522b5d562edd451b1ca36ea31c4 (patch) | |
tree | 243efb28b41427fe04b869d4e2c7fafe355fb119 /src | |
parent | 4ac940a813d54ff401db80c7c6f1ba80bfbe7802 (diff) | |
download | textadept-ced55dc1815dc522b5d562edd451b1ca36ea31c4.tar.gz textadept-ced55dc1815dc522b5d562edd451b1ca36ea31c4.zip |
Changed src/Makefile to make different ARCHes easier to compile and package for.
Diffstat (limited to 'src')
-rw-r--r-- | src/Makefile | 13 |
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 |