From 1aa6c6702415079a6546f1325789c3a86f733f34 Mon Sep 17 00:00:00 2001 From: mitchell <70453897+667e-11@users.noreply.github.com> Date: Mon, 6 Aug 2007 04:58:17 -0400 Subject: Initial import of core C files. --- src/Makefile | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 src/Makefile (limited to 'src/Makefile') 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 mitchellcaladbolg.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 -- cgit v1.2.3