Line | |
---|
1 | ########################### |
---|
2 | ## Makefile for BitlBee ## |
---|
3 | ## ## |
---|
4 | ## Copyright 2006 Lintux ## |
---|
5 | ########################### |
---|
6 | |
---|
7 | ### DEFINITIONS |
---|
8 | |
---|
9 | -include ../Makefile.settings |
---|
10 | ifdef _SRCDIR_ |
---|
11 | _SRCDIR_ := $(_SRCDIR_)lib/ |
---|
12 | endif |
---|
13 | |
---|
14 | # [SH] Program variables |
---|
15 | objects = arc.o base64.o canohost.o $(EVENT_HANDLER) ftutil.o http_client.o ini.o json_util.o md5.o misc.o oauth.o oauth2.o proxy.o sha1.o $(SSL_CLIENT) url.o xmltree.o ns_parse.o |
---|
16 | |
---|
17 | ifneq ($(EXTERNAL_JSON_PARSER),1) |
---|
18 | objects += json.o |
---|
19 | endif |
---|
20 | |
---|
21 | LFLAGS += -r |
---|
22 | |
---|
23 | # [SH] Phony targets |
---|
24 | all: lib.o |
---|
25 | check: all |
---|
26 | lcov: check |
---|
27 | gcov: |
---|
28 | gcov *.c |
---|
29 | |
---|
30 | .PHONY: all clean distclean |
---|
31 | |
---|
32 | clean: $(subdirs) |
---|
33 | rm -f *.o $(OUTFILE) core |
---|
34 | |
---|
35 | distclean: clean $(subdirs) |
---|
36 | rm -rf .depend |
---|
37 | |
---|
38 | ### MAIN PROGRAM |
---|
39 | |
---|
40 | lib.o: $(objects) $(subdirs) |
---|
41 | @echo '*' Linking lib.o |
---|
42 | $(VERBOSE) $(LD) $(LFLAGS) $(objects) -o lib.o |
---|
43 | |
---|
44 | $(objects): ../Makefile.settings Makefile |
---|
45 | |
---|
46 | $(objects): %.o: $(_SRCDIR_)%.c |
---|
47 | @echo '*' Compiling $< |
---|
48 | $(VERBOSE) $(CC) -c $(CFLAGS) $(CFLAGS_BITLBEE) $< -o $@ |
---|
49 | |
---|
50 | -include .depend/*.d |
---|
Note: See
TracBrowser
for help on using the repository browser.