source: protocols/Makefile @ 3ddb7477

Last change on this file since 3ddb7477 was 3ddb7477, checked in by Wilmer van der Gaast <wilmer@…>, at 2010-03-26T12:14:37Z

One total mess that doesn't do much yet, but reorganised some stuff and
untying the IRC and the core parts a little bit. Lots of work left to do.

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