From ced55dc1815dc522b5d562edd451b1ca36ea31c4 Mon Sep 17 00:00:00 2001 From: mitchell <70453897+667e-11@users.noreply.github.com> Date: Sat, 8 Nov 2008 23:42:28 -0500 Subject: Changed src/Makefile to make different ARCHes easier to compile and package for. --- src/Makefile | 13 +++++++++++++ 1 file changed, 13 insertions(+) (limited to 'src') 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 -- cgit v1.2.3