-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
48 lines (40 loc) · 1.12 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
35
36
37
38
39
40
41
42
43
44
45
46
47
48
#
# Makefile
# Computer Networking Programing Assignments
#
# Created by Phillip Romig on 4/3/12.
# Copyright 2012 Colorado School of Mines. All rights reserved.
#
CXX = g++
LD = g++
CXXFLAGS = -g -std=c++11 -DBOOST_LOG_DYN_LINK
LDFLAGS = -g
#CXXFLAGS = -g -pthread -std=c++11 -DBOOST_LOG_DYN_LINK
#LDFLAGS = -g -pthread
#
# You should be able to add object files here without changing anything else
#
TARGET = packetstats
OBJ_FILES = ${TARGET}.o pk_processor.o resultsC.o statisticsC.o
INC_FILES = ${TARGET}.h pk_processor.h resultsC.h statisticsC.h
#
# Any libraries we might need.
#
LIBRARYS = -lbsd -lboost_regex -lboost_log_setup -lboost_log -lboost_thread -lboost_system -lpthread -lpcap
${TARGET}: ${OBJ_FILES}
${LD} ${LDFLAGS} ${OBJ_FILES} -o $@ ${LIBRARYS}
%.o : %.cc ${INC_FILES}
${CXX} -c ${CXXFLAGS} -o $@ $<
#
# Please remember not to submit objects or binarys.
#
clean:
rm -f core ${TARGET} ${OBJ_FILES}
#
# This might work to create the submission tarball in the formal I asked for.
#
submit:
rm -f core ${TARGET} ${OBJ_FILES}
mkdir `whoami`
cp Makefile README.txt *.h *.cpp `whoami`
tar zcf `whoami`.tgz `whoami`