diff options
author | Tom Feist <shabble@metavore.org> | 2010-11-07 00:56:27 +0000 |
---|---|---|
committer | Tom Feist <shabble@metavore.org> | 2010-11-07 00:56:27 +0000 |
commit | e8103212057eb6cf587ca77c36a11a87aa05bab9 (patch) | |
tree | b45c299fea5bbf9cc0b9eb5ae138a8d7f789033c /modules/test_harness/Makefile | |
parent | rl_search_history: bump version number (diff) | |
download | irssi-scripts-e8103212057eb6cf587ca77c36a11a87aa05bab9.tar.gz irssi-scripts-e8103212057eb6cf587ca77c36a11a87aa05bab9.zip |
test_harness: added a stubbed C irssi module for eventual signal capture/injection
Diffstat (limited to 'modules/test_harness/Makefile')
-rw-r--r-- | modules/test_harness/Makefile | 32 |
1 files changed, 32 insertions, 0 deletions
diff --git a/modules/test_harness/Makefile b/modules/test_harness/Makefile new file mode 100644 index 0000000..ed1ee93 --- /dev/null +++ b/modules/test_harness/Makefile @@ -0,0 +1,32 @@ +CFLAGS = -Wall -O2 -Werror -g +LDFLAGS = -avoid-version -module -bundle -flat_namespace -undefined suppress +INSTALL_DIR = $(HOME)/projects/tmp/test/irssi +OBJECTS = test_harness.o + +IRSSI_DIST = /opt/stow/repo/irssi/include/irssi + +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 + +LUA_CFLAGS = $(shell pkg-config lua --cflags) +GLIB_CFLAGS = $(shell pkg-config glib-2.0 --cflags) +LUA_LIBS = $(shell pkg-config lua --libs) + +all: libtest_harness.so + +%.o: %.c + $(CC) $(CFLAGS) $(LUA_CFLAGS) $(GLIB_CFLAGS) $(IRSSI_INCLUDE) -I. -fPIC -c $< + +libtest_harness.so: $(OBJECTS) + $(CC) $(CFLAGS) $(LDFLAGS) $(LUA_LIBS) $(OBJECTS) -o $@ + +install: libtest_harness.so + install $< $(INSTALL_DIR)/modules/ + +clean: + rm -rf *~ *.o *.so core || true + +.default: all + +.phony: clean install |