source: protocols/Makefile @ 47fae0f

Last change on this file since 47fae0f was aea8b68, checked in by Wilmer van der Gaast <wilmer@…>, at 2010-05-06T00:28:56Z

Starting to restore chatroom stuff. Only enough to create and be joined
into a room. More will follow soon.

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