source:
tests/Makefile
@
f68fd5f
Last change on this file since f68fd5f was 3963fdd, checked in by , at 2010-07-29T07:19:57Z | |
---|---|
|
|
File size: 773 bytes |
Rev | Line | |
---|---|---|
[dcf0f3e] | 1 | -include ../Makefile.settings |
[f60079b] | 2 | ifdef SRCDIR |
3 | SRCDIR := $(SRCDIR)tests/ | |
4 | endif | |
[c2fa827] | 5 | |
6 | LFLAGS +=-lcheck | |
7 | ||
[66b9e86e] | 8 | all: check |
[7bcdde3] | 9 | ./check $(CHECKFLAGS) |
[c2fa827] | 10 | |
[66b9e86e] | 11 | clean: |
12 | rm -f check *.o | |
13 | ||
[dcf0f3e] | 14 | distclean: clean |
15 | ||
[3963fdd] | 16 | main_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 |
[1fc2958] | 17 | |
[3963fdd] | 18 | test_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 |
[66b9e86e] | 19 | |
[2c7df62] | 20 | check: $(test_objs) $(addprefix ../, $(main_objs)) ../protocols/protocols.o ../lib/lib.o |
[c2fa827] | 21 | @echo '*' Linking $@ |
22 | @$(CC) $(CFLAGS) -o $@ $^ $(LFLAGS) $(EFLAGS) | |
23 | ||
[f60079b] | 24 | %.o: $(SRCDIR)%.c |
[c2fa827] | 25 | @echo '*' Compiling $< |
26 | @$(CC) -c $(CFLAGS) $< -o $@ |
Note: See TracBrowser
for help on using the repository browser.