Last change
on this file since b919363 was
3ddb7477,
checked in by Wilmer van der Gaast <wilmer@…>, at 2010-03-26T12:14:37Z
|
One total mess that doesn't do much yet, but reorganised some stuff and
untying the IRC and the core parts a little bit. Lots of work left to do.
|
-
Property mode set to
100644
|
File size:
1.2 KB
|
Rev | Line | |
---|
[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 |
---|
[3ddb7477] | 12 | #objects = account.o nogaim.o user.o |
---|
| 13 | objects = bee.o |
---|
| 14 | |
---|
[b7d3cc34] | 15 | |
---|
| 16 | # [SH] The next two lines should contain the directory name (in $(subdirs)) |
---|
| 17 | # and the name of the object file, which should be linked into |
---|
| 18 | # protocols.o (in $(subdirobjs)). These need to be in order, i.e. the |
---|
| 19 | # first object file should be in the first directory. |
---|
| 20 | subdirs = $(PROTOCOLS) |
---|
| 21 | subdirobjs = $(PROTOOBJS) |
---|
| 22 | |
---|
| 23 | # Expansion of variables |
---|
| 24 | subdirobjs := $(join $(subdirs),$(addprefix /,$(subdirobjs))) |
---|
| 25 | CFLAGS += -Wall |
---|
| 26 | LFLAGS += -r |
---|
| 27 | |
---|
| 28 | # [SH] Phony targets |
---|
| 29 | all: protocols.o |
---|
[66b9e86e] | 30 | check: all |
---|
[fc5cf88] | 31 | lcov: check |
---|
[66b9e86e] | 32 | gcov: |
---|
| 33 | gcov *.c |
---|
[b7d3cc34] | 34 | |
---|
| 35 | .PHONY: all clean distclean $(subdirs) |
---|
| 36 | |
---|
| 37 | clean: $(subdirs) |
---|
| 38 | rm -f *.o $(OUTFILE) core |
---|
| 39 | |
---|
| 40 | distclean: clean $(subdirs) |
---|
| 41 | |
---|
| 42 | $(subdirs): |
---|
| 43 | @$(MAKE) -C $@ $(MAKECMDGOALS) |
---|
| 44 | |
---|
| 45 | ### MAIN PROGRAM |
---|
| 46 | |
---|
| 47 | protocols.o: $(objects) $(subdirs) |
---|
| 48 | @echo '*' Linking protocols.o |
---|
| 49 | @$(LD) $(LFLAGS) $(objects) $(subdirobjs) -o protocols.o |
---|
| 50 | |
---|
| 51 | $(objects): ../Makefile.settings Makefile |
---|
| 52 | |
---|
| 53 | $(objects): %.o: %.c |
---|
| 54 | @echo '*' Compiling $< |
---|
| 55 | @$(CC) -c $(CFLAGS) $< -o $@ |
---|
Note: See
TracBrowser
for help on using the repository browser.