source: protocols/Makefile @ c98be00

Last change on this file since c98be00 was fc2ee0f, checked in by Wilmer van der Gaast <wilmer@…>, at 2006-05-13T10:29:53Z

It works, it works! \o/

  • Property mode set to 100644
File size: 1.3 KB
RevLine 
[b7d3cc34]1###########################
2## Makefile for BitlBee  ##
3##                       ##
4## Copyright 2002 Lintux ##
5###########################
6
7### DEFINITIONS
8
9-include ../Makefile.settings
10
11# [SH] Program variables
[13cc96c]12objects = events_libevent.o http_client.o md5.o nogaim.o proxy.o sha.o $(SSL_CLIENT)
[fc2ee0f]13#objects = events_glib.o http_client.o md5.o nogaim.o proxy.o sha.o $(SSL_CLIENT)
[b7d3cc34]14
15# [SH] The next two lines should contain the directory name (in $(subdirs))
16#      and the name of the object file, which should be linked into
17#      protocols.o (in $(subdirobjs)). These need to be in order, i.e. the
18#      first object file should be in the first directory.
19subdirs = $(PROTOCOLS)
20subdirobjs = $(PROTOOBJS)
21
22# Expansion of variables
23subdirobjs := $(join $(subdirs),$(addprefix /,$(subdirobjs)))
24CFLAGS += -Wall
25LFLAGS += -r
26
27# [SH] Phony targets
28all: protocols.o
29
30.PHONY: all clean distclean $(subdirs)
31
32clean: $(subdirs)
33        rm -f *.o $(OUTFILE) core
34
35distclean: clean $(subdirs)
36
37$(subdirs):
38        @$(MAKE) -C $@ $(MAKECMDGOALS)
39
40### MAIN PROGRAM
41
42protocols.o: $(objects) $(subdirs)
43        @echo '*' Linking protocols.o
44        @$(LD) $(LFLAGS) $(objects) $(subdirobjs) -o protocols.o
45
46$(objects): ../Makefile.settings Makefile
47
48$(objects): %.o: %.c
49        @echo '*' Compiling $<
50        @$(CC) -c $(CFLAGS) $< -o $@
Note: See TracBrowser for help on using the repository browser.