source: tests/Makefile @ 6a6d7d8

Last change on this file since 6a6d7d8 was 6a6d7d8, checked in by Jelmer Vernooij <jelmer@…>, at 2014-04-20T17:00:48Z

Fix building of testsuite.

  • Property mode set to 100644
File size: 851 bytes
[dcf0f3e]1-include ../Makefile.settings
[7fa5c19]2ifdef _SRCDIR_
3_SRCDIR_ := $(_SRCDIR_)tests/
[6a6d7d8]6CFLAGS += $(shell pkg-config --cflags check)
7LFLAGS += $(shell pkg-config --libs check)
[6a6d7d8]9all: check
[7bcdde3]10        ./check $(CHECKFLAGS)
13        rm -f check *.o
[dcf0f3e]15distclean: clean
[3963fdd]17main_objs = bitlbee.o conf.o dcc.o help.o ipc.o irc.o irc_channel.o irc_commands.o irc_im.o irc_send.o irc_user.o irc_util.o irc_commands.o log.o nick.o query.o root_commands.o set.o storage.o storage_xml.o
[3963fdd]19test_objs = check.o check_util.o check_nick.o check_md5.o check_arc.o check_irc.o check_help.o check_user.o check_set.o check_jabber_sasl.o check_jabber_util.o
[2c7df62]21check: $(test_objs) $(addprefix ../, $(main_objs)) ../protocols/protocols.o ../lib/lib.o
[c2fa827]22        @echo '*' Linking $@
23        @$(CC) $(CFLAGS) -o $@ $^ $(LFLAGS) $(EFLAGS)
[7fa5c19]25%.o: $(_SRCDIR_)%.c
[c2fa827]26        @echo '*' Compiling $<
27        @$(CC) -c $(CFLAGS) $< -o $@
Note: See TracBrowser for help on using the repository browser.