Rev | Line | |
---|
[df1694b] | 1 | ########################### |
---|
| 2 | ## Makefile for BitlBee ## |
---|
| 3 | ## ## |
---|
| 4 | ## Copyright 2006 Lintux ## |
---|
| 5 | ########################### |
---|
| 6 | |
---|
| 7 | ### DEFINITIONS |
---|
| 8 | |
---|
| 9 | -include ../Makefile.settings |
---|
| 10 | |
---|
| 11 | # [SH] Program variables |
---|
[f924563] | 12 | objects = arc.o base64.o $(EVENT_HANDLER) ftutil.o http_client.o ini.o md5.o misc.o oauth.o proxy.o sha1.o $(SSL_CLIENT) url.o xmltree.o |
---|
[df1694b] | 13 | |
---|
| 14 | CFLAGS += -Wall |
---|
| 15 | LFLAGS += -r |
---|
| 16 | |
---|
| 17 | # [SH] Phony targets |
---|
| 18 | all: lib.o |
---|
[a51be64] | 19 | check: all |
---|
[fc5cf88] | 20 | lcov: check |
---|
[a51be64] | 21 | gcov: |
---|
| 22 | gcov *.c |
---|
[2c7df62] | 23 | |
---|
[df1694b] | 24 | .PHONY: all clean distclean |
---|
| 25 | |
---|
| 26 | clean: $(subdirs) |
---|
| 27 | rm -f *.o $(OUTFILE) core |
---|
| 28 | |
---|
| 29 | distclean: clean $(subdirs) |
---|
| 30 | |
---|
| 31 | ### MAIN PROGRAM |
---|
| 32 | |
---|
| 33 | lib.o: $(objects) $(subdirs) |
---|
| 34 | @echo '*' Linking lib.o |
---|
| 35 | @$(LD) $(LFLAGS) $(objects) -o lib.o |
---|
| 36 | |
---|
| 37 | $(objects): ../Makefile.settings Makefile |
---|
| 38 | |
---|
| 39 | $(objects): %.o: %.c |
---|
| 40 | @echo '*' Compiling $< |
---|
| 41 | @$(CC) -c $(CFLAGS) $< -o $@ |
---|
Note: See
TracBrowser
for help on using the repository browser.