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