source: lib/Makefile @ b86f37d

Last change on this file since b86f37d 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
RevLine 
[df1694b]1###########################
2## Makefile for BitlBee  ##
3##                       ##
4## Copyright 2006 Lintux ##
5###########################
6
7### DEFINITIONS
8
9-include ../Makefile.settings
[7fa5c19]10ifdef _SRCDIR_
11_SRCDIR_ := $(_SRCDIR_)lib/
[f60079b]12endif
[df1694b]13
14# [SH] Program variables
[da0202a]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
[df1694b]20
21LFLAGS += -r
22
23# [SH] Phony targets
24all: lib.o
[a51be64]25check: all
[fc5cf88]26lcov: check
[a51be64]27gcov:
28        gcov *.c
[2c7df62]29
[df1694b]30.PHONY: all clean distclean
31
32clean: $(subdirs)
33        rm -f *.o $(OUTFILE) core
34
35distclean: clean $(subdirs)
[b0a89cc]36        rm -rf .depend
[df1694b]37
38### MAIN PROGRAM
39
40lib.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.