Last change
on this file since 96ace1b was
e62762b,
checked in by Wilmer van der Gaast <wilmer@…>, at 2005-12-27T15:10:15Z
|
Moved util.c to root, moved some things to there from bitlbee.c
|
-
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 = http_client.o md5.o nogaim.o proxy.o sha.o $(SSL_CLIENT) |
---|
13 | |
---|
14 | # [SH] The next two lines should contain the directory name (in $(subdirs)) |
---|
15 | # and the name of the object file, which should be linked into |
---|
16 | # protocols.o (in $(subdirobjs)). These need to be in order, i.e. the |
---|
17 | # first object file should be in the first directory. |
---|
18 | subdirs = $(PROTOCOLS) |
---|
19 | subdirobjs = $(PROTOOBJS) |
---|
20 | |
---|
21 | # Expansion of variables |
---|
22 | subdirobjs := $(join $(subdirs),$(addprefix /,$(subdirobjs))) |
---|
23 | CFLAGS += -Wall |
---|
24 | LFLAGS += -r |
---|
25 | |
---|
26 | # [SH] Phony targets |
---|
27 | all: protocols.o |
---|
28 | |
---|
29 | .PHONY: all clean distclean $(subdirs) |
---|
30 | |
---|
31 | clean: $(subdirs) |
---|
32 | rm -f *.o $(OUTFILE) core |
---|
33 | |
---|
34 | distclean: clean $(subdirs) |
---|
35 | |
---|
36 | $(subdirs): |
---|
37 | @$(MAKE) -C $@ $(MAKECMDGOALS) |
---|
38 | |
---|
39 | ### MAIN PROGRAM |
---|
40 | |
---|
41 | protocols.o: $(objects) $(subdirs) |
---|
42 | @echo '*' Linking protocols.o |
---|
43 | @$(LD) $(LFLAGS) $(objects) $(subdirobjs) -o protocols.o |
---|
44 | |
---|
45 | $(objects): ../Makefile.settings Makefile |
---|
46 | |
---|
47 | $(objects): %.o: %.c |
---|
48 | @echo '*' Compiling $< |
---|
49 | @$(CC) -c $(CFLAGS) $< -o $@ |
---|
Note: See
TracBrowser
for help on using the repository browser.