aboutsummaryrefslogtreecommitdiffstats
path: root/protocols/yahoo/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'protocols/yahoo/Makefile')
-rw-r--r--protocols/yahoo/Makefile47
1 files changed, 47 insertions, 0 deletions
diff --git a/protocols/yahoo/Makefile b/protocols/yahoo/Makefile
new file mode 100644
index 00000000..7908b773
--- /dev/null
+++ b/protocols/yahoo/Makefile
@@ -0,0 +1,47 @@
+###########################
+## Makefile for BitlBee ##
+## ##
+## Copyright 2002 Lintux ##
+###########################
+
+### DEFINITIONS
+
+-include ../../Makefile.settings
+ifdef SRCDIR
+SRCDIR := $(SRCDIR)protocols/yahoo/
+endif
+
+# [SH] Program variables
+objects = yahoo.o crypt.o libyahoo2.o yahoo_fn.o yahoo_httplib.o yahoo_util.o
+
+CFLAGS += -DSTDC_HEADERS -DHAVE_STRING_H -DHAVE_STRCHR -DHAVE_MEMCPY -DHAVE_GLIB
+LFLAGS += -r
+
+# [SH] Phony targets
+all: yahoo_mod.o
+check: all
+lcov: check
+gcov:
+ gcov *.c
+
+.PHONY: all clean distclean
+
+clean:
+ rm -f *.o core
+
+distclean: clean
+ rm -rf .depend
+
+### MAIN PROGRAM
+
+$(objects): ../../Makefile.settings Makefile
+
+$(objects): %.o: $(SRCDIR)%.c
+ @echo '*' Compiling $<
+ @$(CC) -c $(CFLAGS) $< -o $@
+
+yahoo_mod.o: $(objects)
+ @echo '*' Linking yahoo_mod.o
+ @$(LD) $(LFLAGS) $(objects) -o yahoo_mod.o
+
+-include .depend/*.d