source: tests/Makefile @ 4bc66ae

Last change on this file since 4bc66ae was 3963fdd, checked in by Wilmer van der Gaast <wilmer@…>, at 2010-07-29T07:19:57Z

"Fix up" unittests enough to at least compile. Never touched these during
the ui-fix works.

  • Property mode set to 100644
File size: 773 bytes
Line 
1-include ../Makefile.settings
2ifdef SRCDIR
3SRCDIR := $(SRCDIR)tests/
4endif
5
6LFLAGS +=-lcheck
7
8all: check
9        ./check $(CHECKFLAGS)
10
11clean:
12        rm -f check *.o
13
14distclean: clean
15
16main_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
17
18test_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
19
20check: $(test_objs) $(addprefix ../, $(main_objs)) ../protocols/protocols.o ../lib/lib.o
21        @echo '*' Linking $@
22        @$(CC) $(CFLAGS) -o $@ $^ $(LFLAGS) $(EFLAGS)
23
24%.o: $(SRCDIR)%.c
25        @echo '*' Compiling $<
26        @$(CC) -c $(CFLAGS) $< -o $@
Note: See TracBrowser for help on using the repository browser.