source:
lib/Makefile
@
e9eee04
Last change on this file since e9eee04 was da0202a, checked in by , at 2022-08-22T14:38:38Z | |
---|---|
|
|
File size: 1009 bytes |
Rev | Line | |
---|---|---|
[df1694b] | 1 | ########################### |
2 | ## Makefile for BitlBee ## | |
3 | ## ## | |
4 | ## Copyright 2006 Lintux ## | |
5 | ########################### | |
6 | ||
7 | ### DEFINITIONS | |
8 | ||
9 | -include ../Makefile.settings | |
[7fa5c19] | 10 | ifdef _SRCDIR_ |
11 | _SRCDIR_ := $(_SRCDIR_)lib/ | |
[f60079b] | 12 | endif |
[df1694b] | 13 | |
14 | # [SH] Program variables | |
[da0202a] | 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 | |
[df1694b] | 20 | |
21 | LFLAGS += -r | |
22 | ||
23 | # [SH] Phony targets | |
24 | all: lib.o | |
[a51be64] | 25 | check: all |
[fc5cf88] | 26 | lcov: check |
[a51be64] | 27 | gcov: |
28 | gcov *.c | |
[2c7df62] | 29 | |
[df1694b] | 30 | .PHONY: all clean distclean |
31 | ||
32 | clean: $(subdirs) | |
33 | rm -f *.o $(OUTFILE) core | |
34 | ||
35 | distclean: clean $(subdirs) | |
[b0a89cc] | 36 | rm -rf .depend |
[df1694b] | 37 | |
38 | ### MAIN PROGRAM | |
39 | ||
40 | lib.o: $(objects) $(subdirs) | |
41 | @echo '*' Linking lib.o | |
[65d0dfd] | 42 | $(VERBOSE) $(LD) $(LFLAGS) $(objects) -o lib.o |
[df1694b] | 43 | |
44 | $(objects): ../Makefile.settings Makefile | |
45 | ||
[7fa5c19] | 46 | $(objects): %.o: $(_SRCDIR_)%.c |
[df1694b] | 47 | @echo '*' Compiling $< |
[65d0dfd] | 48 | $(VERBOSE) $(CC) -c $(CFLAGS) $(CFLAGS_BITLBEE) $< -o $@ |
[b0a89cc] | 49 | |
50 | -include .depend/*.d |
Note: See TracBrowser
for help on using the repository browser.