Last change
on this file since bc49ec2 was
f60079b,
checked in by Wilmer van der Gaast <wilmer@…>, at 2010-05-25T22:26:54Z
|
Allow one to run the configure script from a different directory and put all
build files in there. I need this to properly make Debian package variants
(i.e. libpurple and native).
|
-
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 | ifdef SRCDIR |
---|
11 | SRCDIR := $(SRCDIR)protocols/ |
---|
12 | endif |
---|
13 | |
---|
14 | # [SH] Program variables |
---|
15 | objects = nogaim.o |
---|
16 | |
---|
17 | # [SH] The next two lines should contain the directory name (in $(subdirs)) |
---|
18 | # and the name of the object file, which should be linked into |
---|
19 | # protocols.o (in $(subdirobjs)). These need to be in order, i.e. the |
---|
20 | # first object file should be in the first directory. |
---|
21 | subdirs = $(PROTOCOLS) |
---|
22 | subdirobjs = $(PROTOOBJS) |
---|
23 | |
---|
24 | # Expansion of variables |
---|
25 | subdirobjs := $(join $(subdirs),$(addprefix /,$(subdirobjs))) |
---|
26 | CFLAGS += -Wall |
---|
27 | LFLAGS += -r |
---|
28 | |
---|
29 | # [SH] Phony targets |
---|
30 | all: protocols.o |
---|
31 | check: all |
---|
32 | lcov: check |
---|
33 | gcov: |
---|
34 | gcov *.c |
---|
35 | |
---|
36 | .PHONY: all clean distclean $(subdirs) |
---|
37 | |
---|
38 | clean: $(subdirs) |
---|
39 | rm -f *.o $(OUTFILE) core |
---|
40 | |
---|
41 | distclean: clean $(subdirs) |
---|
42 | |
---|
43 | $(subdirs): |
---|
44 | @$(MAKE) -C $@ $(MAKECMDGOALS) |
---|
45 | |
---|
46 | ### MAIN PROGRAM |
---|
47 | |
---|
48 | protocols.o: $(objects) $(subdirs) |
---|
49 | @echo '*' Linking protocols.o |
---|
50 | @$(LD) $(LFLAGS) $(objects) $(subdirobjs) -o protocols.o |
---|
51 | |
---|
52 | $(objects): ../Makefile.settings Makefile |
---|
53 | |
---|
54 | $(objects): %.o: $(SRCDIR)%.c |
---|
55 | @echo '*' Compiling $< |
---|
56 | @$(CC) -c $(CFLAGS) $< -o $@ |
---|
Note: See
TracBrowser
for help on using the repository browser.