-
Notifications
You must be signed in to change notification settings - Fork 13
/
Copy pathMakefile
33 lines (25 loc) · 810 Bytes
/
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
#
# nezhad - Makefile
#
# Author: dccmx <[email protected]>
#
VERSION = 0.1
OBJFILES = eventloop.cc
INCFILES = eventloop.h
CFLAGS_GEN = -Wall -g $(CFLAGS) -DVERSION=\"$(VERSION)\"
CFLAGS_DBG = -ggdb $(CFLAGS_GEN)
CFLAGS_OPT = -O3 -Wno-format -Wno-unused-result $(CFLAGS_GEN)
LDFLAGS +=
LIBS +=
all: echoserver example
@echo
@echo "Make Complete. See README for how to use."
@echo
@echo "Having problems with it? Send complains and bugs to [email protected]"
@echo
example: example.cc $(OBJFILES) $(INCFILES)
$(CXX) $(LDFLAGS) -o example $(CFLAGS_OPT) $(LIBS) $^
echoserver: example.cc $(OBJFILES) $(INCFILES)
$(CXX) $(LDFLAGS) -o echoserver $(CFLAGS_OPT) $(LIBS) $^
clean:
rm -f example echoserver core core.[1-9][0-9]* memcheck.out callgrind.out.[1-9][0-9]* massif.out.[1-9][0-9]*