From 8fd2ff4f3a6cc8552cfd7746a773425144f715ad Mon Sep 17 00:00:00 2001 From: mutantturkey Date: Wed, 21 Apr 2010 15:46:13 -0400 Subject: initial stuff --- Makefile | 51 +++++++++++++++++++++++++++++++++++++++++++++++++++ README | 25 +++++++++++++++++++++++++ config.mk | 28 ++++++++++++++++++++++++++++ mt.c | 0 4 files changed, 104 insertions(+) create mode 100644 Makefile create mode 100644 README create mode 100644 config.mk create mode 100644 mt.c diff --git a/Makefile b/Makefile new file mode 100644 index 0000000..7bd468f --- /dev/null +++ b/Makefile @@ -0,0 +1,51 @@ +# surf - simple browser +# See LICENSE file for copyright and license details. + +include config.mk + +SRC = sb.c +OBJ = ${SRC:.c=.o} + +all: options sb + +options: + @echo sb build options: + @echo "CFLAGS = ${CFLAGS}" + @echo "LDFLAGS = ${LDFLAGS}" + @echo "CC = ${CC}" + +.c.o: + @echo CC $< + @${CC} -c ${CFLAGS} $< + +${OBJ}: config.mk + + +sb: ${OBJ} + @echo CC -o $@ + @${CC} -o $@ sb.o ${LDFLAGS} + +clean: + @echo cleaning + @rm -f sb ${OBJ} sb-${VERSION}.tar.gz + +dist: clean + @echo creating dist tarball + @mkdir -p sb-${VERSION} + @cp -R Makefile config.mk ${SRC} sb-${VERSION} + @tar -cf sb-${VERSION}.tar sb-${VERSION} + @gzip sb-${VERSION}.tar + @rm -rf sb-${VERSION} + +install: all + @echo installing executable file to ${DESTDIR}${PREFIX}/bin + @mkdir -p ${DESTDIR}${PREFIX}/bin + @cp -f sb ${DESTDIR}${PREFIX}/bin + @chmod 755 ${DESTDIR}${PREFIX}/bin/sb + +uninstall: + @echo removing executable file from ${DESTDIR}${PREFIX}/bin + @rm -f ${DESTDIR}${PREFIX}/bin/sb + + +.PHONY: all options clean dist install uninstall diff --git a/README b/README new file mode 100644 index 0000000..e5f07d7 --- /dev/null +++ b/README @@ -0,0 +1,25 @@ +Todo/Goals: + +create terminal. xD +tabbing +callbacks +stuff like that +color schemes +rcfile + +mt - multi-terminal: a simple, tabbed, VTE based terminal that aims to simple, flexible, and maintain a ridiculously small codebase + +Basically another minimal GTK incarnation of gtk's VTE integration. + +I was looking for a alternative to Sakura, but is tabbed and gtk based. + + +Bugs: + + +None + + +Swing me some electronic mail :) mutantturkey@gmail.com + + diff --git a/config.mk b/config.mk new file mode 100644 index 0000000..30e8f87 --- /dev/null +++ b/config.mk @@ -0,0 +1,28 @@ +# mocicon version: +VERSION = 0.1.4 + +# Customize below to fit your system + +# paths +PREFIX = /usr +MANPREFIX = ${PREFIX}/share/man + + +# includes and libs + +GTKINC=$(shell pkg-config --cflags gtk+-2.0 vte ) +GTKLIB=$(shell pkg-config --libs gtk+-2.0 vte ) + +INCS = -I. -I/usr/include ${GTKINC} +LIBS = -L/usr/lib -lc ${GTKLIB} +# flags +CPPFLAGS = -DVERSION=\"${VERSION}\" ${XINERAMAFLAGS} +CFLAGS = -std=c99 -O3 ${INCS} ${CPPFLAGS} +LDFLAGS = -s ${LIBS} + +# Solaris +#CFLAGS = -fast ${INCS} -DVERSION=\"${VERSION}\" +#LDFLAGS = ${LIBS} + +# compiler and linker +CC = cc diff --git a/mt.c b/mt.c new file mode 100644 index 0000000..e69de29 -- cgit v1.2.3