1 ###########################
2 ## Makefile for BitlBee ##
4 ## Copyright 2002 Lintux ##
5 ###########################
9 -include ..
/Makefile.settings
11 _SRCDIR_
:= $(_SRCDIR_
)protocols
/
14 # [SH] Program variables
15 objects
= account.o bee.o bee_chat.o bee_ft.o bee_user.o nogaim.o
18 # [SH] The next two lines should contain the directory name (in $(subdirs))
19 # and the name of the object file, which should be linked into
20 # protocols.o (in $(subdirobjs)). These need to be in order, i.e. the
21 # first object file should be in the first directory.
22 subdirs
= $(PROTOCOLS
)
23 subdirobjs
= $(PROTOOBJS
)
25 # Expansion of variables
26 subdirobjs
:= $(join $(subdirs
),$(addprefix /,$(subdirobjs
)))
36 .PHONY
: all clean distclean $(subdirs
)
39 rm -f
*.o
$(OUTFILE
) core
41 distclean: clean $(subdirs
)
45 @
$(MAKE
) -C
$@
$(MAKECMDGOALS
)
49 protocols.o
: $(objects
) $(subdirs
)
50 @echo
'*' Linking protocols.o
51 @
$(LD
) $(LFLAGS
) $(objects
) $(subdirobjs
) -o protocols.o
53 $(objects
): ..
/Makefile.settings Makefile
55 $(objects
): %.o
: $(_SRCDIR_
)%.c
56 @echo
'*' Compiling
$<
57 @
$(CC
) -c
$(CFLAGS
) $< -o
$@