aboutsummaryrefslogtreecommitdiffstats
path: root/protocols/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'protocols/Makefile')
-rw-r--r--protocols/Makefile9
1 files changed, 6 insertions, 3 deletions
diff --git a/protocols/Makefile b/protocols/Makefile
index 18d79e8d..1c7816bc 100644
--- a/protocols/Makefile
+++ b/protocols/Makefile
@@ -7,9 +7,13 @@
### DEFINITIONS
-include ../Makefile.settings
+ifdef SRCDIR
+SRCDIR := $(SRCDIR)protocols/
+endif
# [SH] Program variables
-objects = nogaim.o
+objects = account.o bee.o bee_chat.o bee_ft.o bee_user.o nogaim.o
+
# [SH] The next two lines should contain the directory name (in $(subdirs))
# and the name of the object file, which should be linked into
@@ -20,7 +24,6 @@ subdirobjs = $(PROTOOBJS)
# Expansion of variables
subdirobjs := $(join $(subdirs),$(addprefix /,$(subdirobjs)))
-CFLAGS += -Wall
LFLAGS += -r
# [SH] Phony targets
@@ -48,6 +51,6 @@ protocols.o: $(objects) $(subdirs)
$(objects): ../Makefile.settings Makefile
-$(objects): %.o: %.c
+$(objects): %.o: $(SRCDIR)%.c
@echo '*' Compiling $<
@$(CC) -c $(CFLAGS) $< -o $@