source: lib/Makefile @ 8ca172f

Last change on this file since 8ca172f was da0202a, checked in by Jelmer Vernooij <jelmer@…>, at 2022-08-22T14:38:38Z

Support using system libjsonparser.

  • Property mode set to 100644
File size: 1009 bytes
Line 
1###########################
2## Makefile for BitlBee  ##
3##                       ##
4## Copyright 2006 Lintux ##
5###########################
6
7### DEFINITIONS
8
9-include ../Makefile.settings
10ifdef _SRCDIR_
11_SRCDIR_ := $(_SRCDIR_)lib/
12endif
13
14# [SH] Program variables
15objects = 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
17ifneq ($(EXTERNAL_JSON_PARSER),1)
18objects += json.o
19endif
20
21LFLAGS += -r
22
23# [SH] Phony targets
24all: lib.o
25check: all
26lcov: check
27gcov:
28        gcov *.c
29
30.PHONY: all clean distclean
31
32clean: $(subdirs)
33        rm -f *.o $(OUTFILE) core
34
35distclean: clean $(subdirs)
36        rm -rf .depend
37
38### MAIN PROGRAM
39
40lib.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.