source: tests/Makefile @ 4c73ba62

Last change on this file since 4c73ba62 was 7fa5c19, checked in by Wilmer van der Gaast <wilmer@…>, at 2012-02-11T12:55:45Z

Rename SRCDIR directory to _SRCDIR_. I guess #907 was caused by SRCDIR
unexpectedly being set to something already.

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