source: protocols/Makefile @ 10a96f4

Last change on this file since 10a96f4 was 10a96f4, checked in by Wilmer van der Gaast <wilmer@…>, at 2010-03-29T12:25:01Z

Start restoring IM-related bits, added bee_user.c with basic functions
and UI callbacks.

  • 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
12#objects = account.o nogaim.o user.o
13objects = bee.o bee_user.o nogaim.o
14
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
30check: all
31lcov: check
32gcov:
33        gcov *.c
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.