1 # Use config.mak to override any of the following variables.
2 # Do not make changes here.
5 exec_prefix = /usr
/local
6 bindir = $(exec_prefix)/bin
9 includedir = $(prefix)/include
10 libdir = $(prefix)/lib
12 SRCS
= $(sort $(wildcard src
/common
/*.c src
/fe-gtk
/*.c
))
19 PIXMAP
=src
/pixmaps
/inline_pngs.h
20 _PNGS
= message.png highlight.png fileoffer.png book.png hop.png op.png purple.png red.png voice.png
22 PNGS
= $(pixsrcdir
)/message.png
$(pixsrcdir
)/highlight.png
$(pixsrcdir
)/fileoffer.png \
23 $(pixsrcdir
)/book.png
$(pixsrcdir
)/hop.png
$(pixsrcdir
)/op.png
$(pixsrcdir
)/purple.png \
24 $(pixsrcdir
)/red.png
$(pixsrcdir
)/voice.png
26 PIXMAPLIST
= traymsgpng
$(pixsrcdir
)/message.png \
27 trayhilightpng
$(pixsrcdir
)/highlight.png \
28 trayfilepng
$(pixsrcdir
)/fileoffer.png \
29 bookpng
$(pixsrcdir
)/book.png \
30 hoppng
$(pixsrcdir
)/hop.png \
31 oppng
$(pixsrcdir
)/op.png \
32 purplepng
$(pixsrcdir
)/purple.png \
33 redpng
$(pixsrcdir
)/red.png \
34 voicepng
$(pixsrcdir
)/voice.png \
35 xchatpng
$(pixsrcdir
)/..
/..
/xchat.png
37 PERL_HEADERS
= plugins
/perl
/irc.pm.h plugins
/perl
/xchat.pm.h
41 all: $(ALL_TOOLS
) $(PLUGINS
)
43 install: $(ALL_TOOLS
:%=$(DESTDIR
)$(bindir)/%) install-plugins
45 install-plugins
: $(PLUGINS
:%=$(DESTDIR
)$(libdir)/xchat
/plugins
/%)
47 $(DESTDIR
)$(libdir)/xchat
/plugins
/%: %
51 plugins
/perl
/generate_header
53 tcl.so
: plugins
/tcl
/tcl.o
54 $(CC
) $< -shared
-rdynamic
-o
$@
$(LDFLAGS
) $(TCL_LDFLAGS
)
56 plugins
/tcl
/tcl.o
: plugins
/tcl
/tclplugin.c
57 $(CC
) $(CFLAGS
) $(TCL_CFLAGS
) -fPIC
-c
$< -o
$@
59 python.so
: plugins
/python
/python.o
60 $(CC
) $< -shared
-rdynamic
-o
$@
$(LDFLAGS
) $(PY_LDFLAGS
)
62 plugins
/python
/python.o
: plugins
/python
/python.c
63 $(CC
) $(CFLAGS
) $(PY_CFLAGS
) -fPIC
-c
$< -o
$@
65 perl.so
: plugins
/perl
/perl.o
66 $(CC
) $< -shared
-rdynamic
-o
$@
$(LDFLAGS
) $(PERL_LDFLAGS
)
68 plugins
/perl
/perl.o
: plugins
/perl
/perl.c
$(PERL_HEADERS
)
69 $(CC
) $(CFLAGS
) $(PERL_CFLAGS
) -fPIC
-c
$< -o
$@
72 $(CC
) $(LDFLAGS
) -o ixchat
$(OBJS
)
80 rm -f plugins
/perl
/*.o
81 rm -f plugins
/python
/*.o
85 $(PIXMAPCONVERT
) --raw
--build-list
$(PIXMAPLIST
) > $(PIXMAP
)
88 $(CC
) $(CFLAGS
) -c
-o
$@
$<
90 $(DESTDIR
)$(bindir)/%: %
93 $(DESTDIR
)$(prefix)/%: %
94 install -D
-m
644 $< $@
96 .PHONY
: all clean install