From 6ea0d0b0b703261869ab24ce2cbf62c7c64f3dc8 Mon Sep 17 00:00:00 2001 From: Tom Feist Date: Sat, 19 Feb 2011 13:34:26 +0000 Subject: added module 'overlay' to test out some ideas for fiddling with curses widgets internally --- modules/overlays/Makefile | 57 +++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 57 insertions(+) create mode 100644 modules/overlays/Makefile (limited to 'modules/overlays/Makefile') diff --git a/modules/overlays/Makefile b/modules/overlays/Makefile new file mode 100644 index 0000000..917abb6 --- /dev/null +++ b/modules/overlays/Makefile @@ -0,0 +1,57 @@ + +### Edit these parameters ### + +# change this to 'find' if you're on a decent system. +FIND = gfind # stupid OSX non-gnu defaults. + +# Where your irssi include files live. You might need to install an +# 'irssi-dev' package or something like that. +IRSSI_DIST = /opt/stow/repo/irssi-debug/include/irssi + +# probably $(HOME)/.irssi for most people. +IRSSI_USER_DIR = $(HOME)/projects/tmp/test/irssi-debug +MODULE_NAME = overlay + +### You shouldn't need to edit anything beyond this point ### + +LIB_NAME = lib$(MODULE_NAME).so +CFLAGS = -Wall -O2 -Werror -g -DMODULE_NAME=\"$(MODULE_NAME)\" +LDFLAGS = -avoid-version -module -bundle -flat_namespace -undefined suppress + +# When you start adding more components to your module, add them here. +OBJECTS = overlay_core.o \ + overlay_impl.o + +IRSSI_INCLUDE = -I$(IRSSI_DIST) \ + -I$(IRSSI_DIST)/src \ + -I$(IRSSI_DIST)/src/fe-common/core \ + -I$(IRSSI_DIST)/src/core \ + -I$(IRSSI_DIST)/src/fe-text \ + -I$(IRSSI_DIST)/src/irc \ + -I$(IRSSI_DIST)/src/irc/core \ + -I$(IRSSI_DIST)/src/irc/dcc \ + -I$(IRSSI_DIST)/src/irc/notifylist + + +GLIB_CFLAGS = $(shell pkg-config glib-2.0 --cflags) + +all: $(LIB_NAME) + +%.o: %.c Makefile + $(CC) $(CFLAGS) $(GLIB_CFLAGS) $(IRSSI_INCLUDE) -I. -fPIC -c $< + +$(LIB_NAME): $(OBJECTS) + $(CC) $(CFLAGS) $(LDFLAGS) $(OBJECTS) -o $@ + +install: $(LIB_NAME) + install $< $(IRSSI_USER_DIR)/modules + +clean: + rm -rf *~ *.o *.so core || true + +TAGS: + $(FIND) -type f -exec etags -a -o TAGS {} \; + +.default: all + +.phony: clean install TAGS -- cgit v1.2.3 From 5bbf53a0369922ea853efc51ff54adaa0f8686e1 Mon Sep 17 00:00:00 2001 From: Tom Feist Date: Sat, 19 Feb 2011 16:28:57 +0000 Subject: added a 'overlay' loadable module that's hopefully going to do osme dirty dirty things to the curses layer. --- modules/overlays/Makefile | 20 +++++++++++--------- 1 file changed, 11 insertions(+), 9 deletions(-) (limited to 'modules/overlays/Makefile') diff --git a/modules/overlays/Makefile b/modules/overlays/Makefile index 917abb6..ba5d787 100644 --- a/modules/overlays/Makefile +++ b/modules/overlays/Makefile @@ -22,15 +22,17 @@ LDFLAGS = -avoid-version -module -bundle -flat_namespace -undefined suppress OBJECTS = overlay_core.o \ overlay_impl.o -IRSSI_INCLUDE = -I$(IRSSI_DIST) \ - -I$(IRSSI_DIST)/src \ - -I$(IRSSI_DIST)/src/fe-common/core \ - -I$(IRSSI_DIST)/src/core \ - -I$(IRSSI_DIST)/src/fe-text \ - -I$(IRSSI_DIST)/src/irc \ - -I$(IRSSI_DIST)/src/irc/core \ - -I$(IRSSI_DIST)/src/irc/dcc \ - -I$(IRSSI_DIST)/src/irc/notifylist +IRSSI_INC = $(HOME)/sources/irssi-git + +IRSSI_INCLUDE = -I$(IRSSI_INC) \ + -I$(IRSSI_INC)/src \ + -I$(IRSSI_INC)/src/fe-common/core \ + -I$(IRSSI_INC)/src/core \ + -I$(IRSSI_INC)/src/fe-text \ + -I$(IRSSI_INC)/src/irc \ + -I$(IRSSI_INC)/src/irc/core \ + -I$(IRSSI_INC)/src/irc/dcc \ + -I$(IRSSI_INC)/src/irc/notifylist GLIB_CFLAGS = $(shell pkg-config glib-2.0 --cflags) -- cgit v1.2.3