diff options
Diffstat (limited to 'protocols/purple/Makefile')
-rw-r--r-- | protocols/purple/Makefile | 47 |
1 files changed, 47 insertions, 0 deletions
diff --git a/protocols/purple/Makefile b/protocols/purple/Makefile new file mode 100644 index 00000000..5a096777 --- /dev/null +++ b/protocols/purple/Makefile @@ -0,0 +1,47 @@ +########################### +## Makefile for BitlBee ## +## ## +## Copyright 2002 Lintux ## +########################### + +### DEFINITIONS + +-include ../../Makefile.settings +ifdef SRCDIR +SRCDIR := $(SRCDIR)protocols/purple/ +endif + +# [SH] Program variables +objects = ft.o purple.o + +CFLAGS += -Wall $(PURPLE_CFLAGS) +LFLAGS += -r + +# [SH] Phony targets +all: purple_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 $@ + +purple_mod.o: $(objects) + @echo '*' Linking purple_mod.o + @$(LD) $(LFLAGS) $(objects) -o purple_mod.o + +-include .depend/*.d |