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 |
---|
[7ed3199] | 12 | objects = base64.o $(EVENT_HANDLER) http_client.o ini.o md5.o misc.o proxy.o rc4.o sha.o $(SSL_CLIENT) url.o |
---|
[df1694b] | 13 | |
---|
| 14 | CFLAGS += -Wall |
---|
| 15 | LFLAGS += -r |
---|
| 16 | |
---|
| 17 | # [SH] Phony targets |
---|
| 18 | all: lib.o |
---|
[a51be64] | 19 | check: all |
---|
| 20 | gcov: |
---|
| 21 | gcov *.c |
---|
[2c7df62] | 22 | |
---|
[df1694b] | 23 | .PHONY: all clean distclean |
---|
| 24 | |
---|
| 25 | clean: $(subdirs) |
---|
| 26 | rm -f *.o $(OUTFILE) core |
---|
| 27 | |
---|
| 28 | distclean: clean $(subdirs) |
---|
| 29 | |
---|
| 30 | ### MAIN PROGRAM |
---|
| 31 | |
---|
| 32 | lib.o: $(objects) $(subdirs) |
---|
| 33 | @echo '*' Linking lib.o |
---|
| 34 | @$(LD) $(LFLAGS) $(objects) -o lib.o |
---|
| 35 | |
---|
| 36 | $(objects): ../Makefile.settings Makefile |
---|
| 37 | |
---|
| 38 | $(objects): %.o: %.c |
---|
| 39 | @echo '*' Compiling $< |
---|
| 40 | @$(CC) -c $(CFLAGS) $< -o $@ |
---|
Note: See
TracBrowser
for help on using the repository browser.