Last change
on this file since c8eeadd was
f60079b,
checked in by Wilmer van der Gaast <wilmer@…>, at 2010-05-25T22:26:54Z
|
Allow one to run the configure script from a different directory and put all
build files in there. I need this to properly make Debian package variants
(i.e. libpurple and native).
|
-
Property mode set to
100644
|
File size:
763 bytes
|
Line | |
---|
1 | -include ../Makefile.settings |
---|
2 | ifdef SRCDIR |
---|
3 | SRCDIR := $(SRCDIR)tests/ |
---|
4 | endif |
---|
5 | |
---|
6 | LFLAGS +=-lcheck |
---|
7 | |
---|
8 | all: check |
---|
9 | ./check $(CHECKFLAGS) |
---|
10 | |
---|
11 | clean: |
---|
12 | rm -f check *.o |
---|
13 | |
---|
14 | distclean: clean |
---|
15 | |
---|
16 | main_objs = account.o bitlbee.o chat.o conf.o crypting.o help.o ipc.o irc.o irc_commands.o log.o nick.o query.o root_commands.o set.o storage.o storage_xml.o storage_text.o user.o |
---|
17 | |
---|
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_crypting.o check_set.o check_jabber_sasl.o check_jabber_util.o |
---|
19 | |
---|
20 | check: $(test_objs) $(addprefix ../, $(main_objs)) ../protocols/protocols.o ../lib/lib.o |
---|
21 | @echo '*' Linking $@ |
---|
22 | @$(CC) $(CFLAGS) -o $@ $^ $(LFLAGS) $(EFLAGS) |
---|
23 | |
---|
24 | %.o: $(SRCDIR)%.c |
---|
25 | @echo '*' Compiling $< |
---|
26 | @$(CC) -c $(CFLAGS) $< -o $@ |
---|
Note: See
TracBrowser
for help on using the repository browser.