aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'src/Makefile')
-rw-r--r--src/Makefile20
1 files changed, 20 insertions, 0 deletions
diff --git a/src/Makefile b/src/Makefile
new file mode 100644
index 00000000..0b4b40fc
--- /dev/null
+++ b/src/Makefile
@@ -0,0 +1,20 @@
+# Copyright 2007 Mitchell mitchell<att>caladbolg.net. See LICENSE.
+
+.SUFFIXES: .c .o .h .a
+
+INCLUDEDIRS=-Iscintilla-st/include
+ifdef DEBUG
+CXXFLAGS=-DDEBUG -g -DGTK -DSCI_LEXER -W -Wall
+else
+CXXFLAGS=-DNDEBUG -0s -DGTK -DSCI_LEXER -W -Wall
+endif
+LEXEROBJS=$(wildcard scintilla-st/gtk/Lex*.o)
+
+all: textadept
+
+.c.o:
+ g++ `pkg-config --cflags gtk+-2.0` $(INCLUDEDIRS) $(CXXFLAGS) -c $< -o $@
+textadept: textadept.o lua_interface.o pm.o find_replace.o $(LEXEROBJS) scintilla-st/bin/scintilla.a -llua
+ g++ `pkg-config --libs gtk+-2.0 gthread-2.0` -lstdc++ -DGTK $^ -o $@
+clean:
+ rm -rf textadept *.o