source: tests/Makefile @ fb774da

Last change on this file since fb774da was da0202a, checked in by Jelmer Vernooij <jelmer@…>, at 2022-08-22T14:38:38Z

Support using system libjsonparser.

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