aboutsummaryrefslogtreecommitdiff
path: root/old/Makefile
blob: ac75b80b1357b096658315dc310970c911b35ae2 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
SRC = ../src/espik.c ../src/espik_irc.c ../src/espik_config.c ../src/error.c ../src/espik_common_handler.c ../src/espik_net.c
NAME = espik

CFLAGS += -W -Wall -g
LDFLAGS += -lecore -lecore_config -lecore_con
OBJ = $(SRC:c=o)
RM = rm -f
CC = gcc

$(NAME): $(OBJ)
	$(CC) -o $(NAME) $(CFLAGS) $(LDFLAGS) $(OBJ)
	chmod u+x $(NAME)
	cp $(NAME) ~/bin

clean:
	$(RM) ../src/*.swp
	$(RM) $(OBJ)
	$(RM) ../src/*.c~ ../src/*.h~

fclean:	clean
	$(RM) $(NAME)

re:	fclean $(NAME) clean