aboutsummaryrefslogtreecommitdiffstats
path: root/tests/Makefile
diff options
context:
space:
mode:
authorWilmer van der Gaast <wilmer@gaast.net>2006-06-25 14:17:39 +0200
committerWilmer van der Gaast <wilmer@gaast.net>2006-06-25 14:17:39 +0200
commit125b35db3243f55489a6e88efbdeeefc2c24018d (patch)
tree1e24ec316678b6af288ed96d29e82bbba37f70bc /tests/Makefile
parent59f5c42a86fe73e95aaed0bfe455c7c816f39d2b (diff)
parent1fc2958b1e503b782081692c1a503bc7bba19fe1 (diff)
Merging from Jelmer (this adds some basic unit testing code).
Diffstat (limited to 'tests/Makefile')
-rw-r--r--tests/Makefile16
1 files changed, 16 insertions, 0 deletions
diff --git a/tests/Makefile b/tests/Makefile
new file mode 100644
index 00000000..ce8ed690
--- /dev/null
+++ b/tests/Makefile
@@ -0,0 +1,16 @@
+include ../Makefile.settings
+
+LFLAGS +=-lcheck
+
+all: check
+ ./check
+
+main_objs = account.o bitlbee.o conf.o crypting.o help.o ini.o ipc.o irc.o irc_commands.o log.o nick.o query.o root_commands.o set.o storage.o storage_text.o url.o user.o util.o
+
+check: check.o check_util.o check_nick.o $(addprefix ../, $(main_objs)) ../protocols/protocols.o
+ @echo '*' Linking $@
+ @$(CC) $(CFLAGS) -o $@ $^ $(LFLAGS) $(EFLAGS)
+
+%.o: %.c
+ @echo '*' Compiling $<
+ @$(CC) -c $(CFLAGS) $< -o $@