1.2.4-2
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 |
---|
[df1694b] | 12 | objects = nogaim.o |
---|
[b7d3cc34] | 13 | |
---|
| 14 | # [SH] The next two lines should contain the directory name (in $(subdirs)) |
---|
| 15 | # and the name of the object file, which should be linked into |
---|
| 16 | # protocols.o (in $(subdirobjs)). These need to be in order, i.e. the |
---|
| 17 | # first object file should be in the first directory. |
---|
| 18 | subdirs = $(PROTOCOLS) |
---|
| 19 | subdirobjs = $(PROTOOBJS) |
---|
| 20 | |
---|
| 21 | # Expansion of variables |
---|
| 22 | subdirobjs := $(join $(subdirs),$(addprefix /,$(subdirobjs))) |
---|
| 23 | CFLAGS += -Wall |
---|
| 24 | LFLAGS += -r |
---|
| 25 | |
---|
| 26 | # [SH] Phony targets |
---|
| 27 | all: protocols.o |
---|
[66b9e86e] | 28 | check: all |
---|
[fc5cf88] | 29 | lcov: check |
---|
[66b9e86e] | 30 | gcov: |
---|
| 31 | gcov *.c |
---|
[b7d3cc34] | 32 | |
---|
| 33 | .PHONY: all clean distclean $(subdirs) |
---|
| 34 | |
---|
| 35 | clean: $(subdirs) |
---|
| 36 | rm -f *.o $(OUTFILE) core |
---|
| 37 | |
---|
| 38 | distclean: clean $(subdirs) |
---|
| 39 | |
---|
| 40 | $(subdirs): |
---|
| 41 | @$(MAKE) -C $@ $(MAKECMDGOALS) |
---|
| 42 | |
---|
| 43 | ### MAIN PROGRAM |
---|
| 44 | |
---|
| 45 | protocols.o: $(objects) $(subdirs) |
---|
| 46 | @echo '*' Linking protocols.o |
---|
| 47 | @$(LD) $(LFLAGS) $(objects) $(subdirobjs) -o protocols.o |
---|
| 48 | |
---|
| 49 | $(objects): ../Makefile.settings Makefile |
---|
| 50 | |
---|
| 51 | $(objects): %.o: %.c |
---|
| 52 | @echo '*' Compiling $< |
---|
| 53 | @$(CC) -c $(CFLAGS) $< -o $@ |
---|
Note: See
TracBrowser
for help on using the repository browser.