diff options
author | Wilmer van der Gaast <wilmer@gaast.net> | 2010-05-25 23:26:54 +0100 |
---|---|---|
committer | Wilmer van der Gaast <wilmer@gaast.net> | 2010-05-25 23:26:54 +0100 |
commit | f60079b74053a53da3720b992c603fddf75ff1dd (patch) | |
tree | 4625c2054e6d4a5cff6f938a4b00cf01fe735900 /protocols/oscar | |
parent | 51a799ef9c2a144bf3edc58130bfc1e275cdd53f (diff) |
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).
Diffstat (limited to 'protocols/oscar')
-rw-r--r-- | protocols/oscar/Makefile | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/protocols/oscar/Makefile b/protocols/oscar/Makefile index 2792f22a..0ec7436b 100644 --- a/protocols/oscar/Makefile +++ b/protocols/oscar/Makefile @@ -7,6 +7,10 @@ ### DEFINITIONS -include ../../Makefile.settings +ifdef SRCDIR +SRCDIR := $(SRCDIR)protocols/oscar/ +CFLAGS += -I$(SRCDIR) +endif # [SH] Program variables objects = admin.o auth.o bos.o buddylist.o chat.o chatnav.o conn.o icq.o im.o info.o misc.o msgcookie.o rxhandlers.o rxqueue.o search.o service.o snac.o ssi.o stats.o tlv.o txqueue.o oscar_util.o oscar.o @@ -32,7 +36,7 @@ distclean: clean $(objects): ../../Makefile.settings Makefile -$(objects): %.o: %.c +$(objects): %.o: $(SRCDIR)%.c @echo '*' Compiling $< @$(CC) -c $(CFLAGS) $< -o $@ |