Last change
on this file since c7eb771 was
4aa0f6b,
checked in by Wilmer van der Gaast <wilmer@…>, at 2010-06-07T14:31:07Z
|
Merging killerbee stuff, bringing all the bleeding-edge stuff together.
|
-
Property mode set to
100644
|
File size:
1.3 KB
|
Line | |
---|
1 | ########################### |
---|
2 | ## Makefile for BitlBee ## |
---|
3 | ## ## |
---|
4 | ## Copyright 2002 Lintux ## |
---|
5 | ########################### |
---|
6 | |
---|
7 | ### DEFINITIONS |
---|
8 | |
---|
9 | -include ../Makefile.settings |
---|
10 | ifdef SRCDIR |
---|
11 | SRCDIR := $(SRCDIR)protocols/ |
---|
12 | endif |
---|
13 | |
---|
14 | # [SH] Program variables |
---|
15 | objects = account.o bee.o bee_chat.o bee_ft.o bee_user.o nogaim.o |
---|
16 | |
---|
17 | |
---|
18 | # [SH] The next two lines should contain the directory name (in $(subdirs)) |
---|
19 | # and the name of the object file, which should be linked into |
---|
20 | # protocols.o (in $(subdirobjs)). These need to be in order, i.e. the |
---|
21 | # first object file should be in the first directory. |
---|
22 | subdirs = $(PROTOCOLS) |
---|
23 | subdirobjs = $(PROTOOBJS) |
---|
24 | |
---|
25 | # Expansion of variables |
---|
26 | subdirobjs := $(join $(subdirs),$(addprefix /,$(subdirobjs))) |
---|
27 | CFLAGS += -Wall |
---|
28 | LFLAGS += -r |
---|
29 | |
---|
30 | # [SH] Phony targets |
---|
31 | all: protocols.o |
---|
32 | check: all |
---|
33 | lcov: check |
---|
34 | gcov: |
---|
35 | gcov *.c |
---|
36 | |
---|
37 | .PHONY: all clean distclean $(subdirs) |
---|
38 | |
---|
39 | clean: $(subdirs) |
---|
40 | rm -f *.o $(OUTFILE) core |
---|
41 | |
---|
42 | distclean: clean $(subdirs) |
---|
43 | |
---|
44 | $(subdirs): |
---|
45 | @$(MAKE) -C $@ $(MAKECMDGOALS) |
---|
46 | |
---|
47 | ### MAIN PROGRAM |
---|
48 | |
---|
49 | protocols.o: $(objects) $(subdirs) |
---|
50 | @echo '*' Linking protocols.o |
---|
51 | @$(LD) $(LFLAGS) $(objects) $(subdirobjs) -o protocols.o |
---|
52 | |
---|
53 | $(objects): ../Makefile.settings Makefile |
---|
54 | |
---|
55 | $(objects): %.o: $(SRCDIR)%.c |
---|
56 | @echo '*' Compiling $< |
---|
57 | @$(CC) -c $(CFLAGS) $< -o $@ |
---|
Note: See
TracBrowser
for help on using the repository browser.