From 7d68fdafcd42e42c8bceeb384af7be1b5dfd3a65 Mon Sep 17 00:00:00 2001 From: Robin Haberkorn Date: Thu, 15 Nov 2012 08:28:49 +0100 Subject: added NCurses user interface (based on Scinterm) * terminal resizing not yet supported * file popups are sort of a hack --- Makefile | 21 ++++++++++++--------- 1 file changed, 12 insertions(+), 9 deletions(-) (limited to 'Makefile') diff --git a/Makefile b/Makefile index 3011366..d24505f 100644 --- a/Makefile +++ b/Makefile @@ -6,22 +6,24 @@ GOB2:=gob2 GLIB_CFLAGS:=$(shell pkg-config --cflags glib-2.0) GLIB_LDFLAGS:=$(shell pkg-config --libs glib-2.0) +SCI_CFLAGS:=-I../scintilla/include -D$(INTERFACE) -DSCI_LEXER +SCI_LDFLAGS:=../scintilla/bin/scintilla.a + ifeq ($(INTERFACE),GTK) GTK_CFLAGS:=$(shell pkg-config --cflags gtk+-2.0) GTK_LDFLAGS:=$(shell pkg-config --libs gtk+-2.0) else ifeq ($(INTERFACE),NCURSES) -# TODO +SCI_CFLAGS+=-I../scintilla/scinterm_1.0 +NCURSES_CFLAGS:= +NCURSES_LDFLAGS:=-lncurses endif -SCI_CFLAGS:=-I../scintilla/include -D$(INTERFACE) -DSCI_LEXER -SCI_LDFLAGS:=../scintilla/bin/scintilla.a - CPPFLAGS:=-DINTERFACE_$(INTERFACE) CFLAGS:=-Wall -std=c99 -g -O0 \ - $(GLIB_CFLAGS) $(GTK_CFLAGS) $(SCI_CFLAGS) + $(GLIB_CFLAGS) $(GTK_CFLAGS) $(NCURSES_CFLAGS) $(SCI_CFLAGS) CXXFLAGS:=-Wall -g -O0 \ - $(GLIB_CFLAGS) $(GTK_CFLAGS) $(SCI_CFLAGS) -LDFLAGS:=$(GLIB_LDFLAGS) $(GTK_LDFLAGS) $(SCI_LDFLAGS) + $(GLIB_CFLAGS) $(GTK_CFLAGS) $(NCURSES_CFLAGS) $(SCI_CFLAGS) +LDFLAGS:=$(GLIB_LDFLAGS) $(GTK_LDFLAGS) $(NCURSES_LDFLAGS) $(SCI_LDFLAGS) all : sciteco @@ -34,13 +36,14 @@ ifeq ($(INTERFACE),GTK) interface.a : interface-gtk.o gtk-info-popup.o $(AR) rc $@ $^ + touch $@ interface-gtk.o : gtk-info-popup.h else ifeq ($(INTERFACE),NCURSES) -# TODO -interface.a : +interface.a : interface-ncurses.o $(AR) rc $@ $^ + touch $@ endif -- cgit v1.2.3