-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
34 lines (28 loc) · 1.14 KB
/
Makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
NAME=voce
CC=gcc
CFLAGS=-std=c99 -Wall -Iinclude -o $(NAME) -DWITH_SSL
LDFLAGS=-pthread -lssl -lcrypto
ifeq ($(DEBUG),yes)
CFLAGS+=-Wextra -Werror -pedantic
endif
voce: src/*.c include/*.h
@echo -n Building $(NAME)...
@$(CC) $(LDFLAGS) $(CFLAGS) src/*
@echo " done."
@echo ""
@echo " **********************************************************"
@echo " **************************************************************"
@echo " ** Congratulations! You have compiled Voce the IRC bot. **"
@echo " ** Voce is able to do lots of fun stuffs... Enjoy! **"
@echo " ** **"
@echo " ** To run voce use the command: **"
@echo " ** ./voce **"
@echo " ** **"
@echo " ** You may also specify the -d option to daemonize the bot. **"
@echo " **************************************************************"
@echo " **********************************************************"
@echo ""
clean:
@echo -n Cleaning up build files...
@rm -f $(NAME)
@echo " done."