2 # gcc cbot.c config.c b_socket.c irc_cmd.c log.c -o cbot -g -Wall -Wextra;
8 SRC_FILES
= cbot.c config.c b_socket.c irc_cmd.c log.c
9 OBJ_FILES
= $(patsubst %.c
, %.o
, ${SRC_FILES})
10 DEP_FILES
= $(patsubst %.c
, %.dep
, ${SRC_FILES})
14 CFLAGS
= -c
-Wall
-Wextra
-g3
18 gcc
${LDFLAGS} -o cbot
${OBJ_FILES}
21 gcc
${CFLAGS} -o
$@
$<
33 gcc
-MM
$(CFLAGS
) $< > $@.
$$$$; \
34 sed
's,\($*\)\.o[ :]*,\1.o $@ : ,g' < $@.
$$$$ > $@
; \