aboutsummaryrefslogtreecommitdiffstats
path: root/protocols/yahoo/Makefile
blob: 8ac73e49cf7b8c0697908afe736b7e8640cd8b2f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
###########################
## Makefile for BitlBee  ##
##                       ##
## Copyright 2002 Lintux ##
###########################

### DEFINITIONS

-include ../../Makefile.settings
ifdef _SRCDIR_
_SRCDIR_ := $(_SRCDIR_)protocols/yahoo/
endif

# [SH] Program variables
objects = yahoo.o libyahoo2.o yahoo_httplib.o yahoo_util.o

CFLAGS += -DSTDC_HEADERS -DHAVE_STRING_H -DHAVE_STRCHR -DHAVE_MEMCPY -DHAVE_GLIB
LFLAGS += -r

# [SH] Phony targets
all: yahoo_mod.o
check: all
lcov: check
gcov: 
	gcov *.c

.PHONY: all clean distclean

clean:
	rm -f *.o core

distclean: clean
	rm -rf .depend

### MAIN PROGRAM

$(objects): ../../Makefile.settings Makefile

$(objects): %.o: $(_SRCDIR_)%.c
	@echo '*' Compiling $<
	@$(CC) -c $(CFLAGS) $(CFLAGS_BITLBEE) $< -o $@

yahoo_mod.o: $(objects)
	@echo '*' Linking yahoo_mod.o
	@$(LD) $(LFLAGS) $(objects) -o yahoo_mod.o

-include .depend/*.d