source:
tests/Makefile
@
19ba56e
Last change on this file since 19ba56e was 65d0dfd, checked in by , at 2017-03-12T04:16:58Z | |
---|---|
|
|
File size: 903 bytes |
Rev | Line | |
---|---|---|
[dcf0f3e] | 1 | -include ../Makefile.settings |
[7fa5c19] | 2 | ifdef _SRCDIR_ |
3 | _SRCDIR_ := $(_SRCDIR_)tests/ | |
[f60079b] | 4 | endif |
[c2fa827] | 5 | |
[6a6d7d8] | 6 | CFLAGS += $(shell pkg-config --cflags check) |
7 | LFLAGS += $(shell pkg-config --libs check) | |
[c2fa827] | 8 | |
[6a6d7d8] | 9 | all: check |
[7bcdde3] | 10 | ./check $(CHECKFLAGS) |
[c2fa827] | 11 | |
[66b9e86e] | 12 | clean: |
13 | rm -f check *.o | |
14 | ||
[dcf0f3e] | 15 | distclean: clean |
16 | ||
[727a68b] | 17 | main_objs = bitlbee.o conf.o dcc.o help.o ipc.o irc.o irc_cap.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_OBJS) auth.o $(AUTH_OBJS) |
[1fc2958] | 18 | |
[3963fdd] | 19 | 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] | 20 | |
[2c7df62] | 21 | check: $(test_objs) $(addprefix ../, $(main_objs)) ../protocols/protocols.o ../lib/lib.o |
[c2fa827] | 22 | @echo '*' Linking $@ |
[65d0dfd] | 23 | $(VERBOSE) $(CC) $(CFLAGS) -o $@ $^ $(LFLAGS) $(EFLAGS) |
[c2fa827] | 24 | |
[7fa5c19] | 25 | %.o: $(_SRCDIR_)%.c |
[c2fa827] | 26 | @echo '*' Compiling $< |
[65d0dfd] | 27 | $(VERBOSE) $(CC) -c $(CFLAGS) $< -o $@ |
Note: See TracBrowser
for help on using the repository browser.