aboutsummaryrefslogtreecommitdiffstats
path: root/Makefile.am
blob: 4e87caba3870cbd684bba4b19b44f5d30a2fb502 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
# Default help file directory
AM_CFLAGS=-DPOWWOW_DIR=\"$(pkgdatadir)\" -DPLUGIN_DIR=\"$(plugindir)\"

bin_PROGRAMS = powwow powwow-muc powwow-movieplay
powwow_SOURCES = beam.c cmd.c log.c edit.c cmd2.c eval.c \
		 utils.c main.c tcp.c list.c map.c tty.c \
		 ptr.c
powwow_LDFLAGS = @dl_ldflags@
powwowdir = $(pkgincludedir)
powwow_HEADERS = beam.h cmd.h log.h edit.h cmd2.h eval.h \
		 utils.h main.h tcp.h list.h map.h tty.h \
		 ptr.h defines.h
powwow_muc_SOURCES = powwow-muc.c
powwow_movieplay_SOURCES = powwow-movieplay.c

install-exec-hook:
	(cd $(DESTDIR)$(bindir) && \
	 rm -f powwow-movie2ascii$(EXEEXT) && \
	 $(LN_S) powwow-movieplay$(EXEEXT) powwow-movie2ascii$(EXEEXT))

noinst_PROGRAMS = catrw follow
follow_SOURCES = follow.c
catrw_SOURCES = catrw.c

man_MANS = powwow.6
pkgdata_DATA = powwow.doc powwow.help COPYING
EXTRA_DIST = README README.follow README.term README.modules \
		TODO Hacking Config.demo \
		powwow.doc powwow.help powwow.6 plugtest.c debian/rules \
		debian/control debian/changelog powwow.6.utf-8

CLEANFILES = powwow.6

powwow.6: powwow.6.utf-8
if MAN_PAGE_ENCODING_IS_UTF_8
	cp $< $@
else
	iconv -f UTF-8 -t "$(MAN_PAGE_ENCODING)" < $< > $@
endif

plugtest.so: plugtest.c
	gcc -shared -o plugtest.so plugtest.c