source: protocols/Makefile @ f4aa393

Last change on this file since f4aa393 was 66b9e86e, checked in by Jelmer Vernooij <jelmer@…>, at 2006-07-07T13:33:31Z

Add support for checking test suite coverage using gcov.

  • Property mode set to 100644
File size: 1.2 KB
Line 
1###########################
2## Makefile for BitlBee  ##
3##                       ##
4## Copyright 2002 Lintux ##
5###########################
6
7### DEFINITIONS
8
9-include ../Makefile.settings
10
11# [SH] Program variables
12objects = $(EVENT_HANDLER) http_client.o md5.o nogaim.o proxy.o sha.o $(SSL_CLIENT)
13
14# [SH] The next two lines should contain the directory name (in $(subdirs))
15#      and the name of the object file, which should be linked into
16#      protocols.o (in $(subdirobjs)). These need to be in order, i.e. the
17#      first object file should be in the first directory.
18subdirs = $(PROTOCOLS)
19subdirobjs = $(PROTOOBJS)
20
21# Expansion of variables
22subdirobjs := $(join $(subdirs),$(addprefix /,$(subdirobjs)))
23CFLAGS += -Wall
24LFLAGS += -r
25
26# [SH] Phony targets
27all: protocols.o
28check: all
29gcov:
30        gcov *.c
31
32.PHONY: all clean distclean $(subdirs)
33
34clean: $(subdirs)
35        rm -f *.o $(OUTFILE) core
36
37distclean: clean $(subdirs)
38
39$(subdirs):
40        @$(MAKE) -C $@ $(MAKECMDGOALS)
41
42### MAIN PROGRAM
43
44protocols.o: $(objects) $(subdirs)
45        @echo '*' Linking protocols.o
46        @$(LD) $(LFLAGS) $(objects) $(subdirobjs) -o protocols.o
47
48$(objects): ../Makefile.settings Makefile
49
50$(objects): %.o: %.c
51        @echo '*' Compiling $<
52        @$(CC) -c $(CFLAGS) $< -o $@
Note: See TracBrowser for help on using the repository browser.