aboutsummaryrefslogtreecommitdiffstats
path: root/protocols/purple
diff options
context:
space:
mode:
Diffstat (limited to 'protocols/purple')
-rw-r--r--protocols/purple/Makefile5
1 files changed, 4 insertions, 1 deletions
diff --git a/protocols/purple/Makefile b/protocols/purple/Makefile
index 403db799..97a5bb6a 100644
--- a/protocols/purple/Makefile
+++ b/protocols/purple/Makefile
@@ -7,6 +7,9 @@
### DEFINITIONS
-include ../../Makefile.settings
+ifdef SRCDIR
+SRCDIR := $(SRCDIR)protocols/purple/
+endif
# [SH] Program variables
objects = ft.o purple.o
@@ -32,7 +35,7 @@ distclean: clean
$(objects): ../../Makefile.settings Makefile
-$(objects): %.o: %.c
+$(objects): %.o: $(SRCDIR)%.c
@echo '*' Compiling $<
@$(CC) -c $(CFLAGS) $< -o $@