-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathMakefile
24 lines (21 loc) · 864 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
OBJ = capture/debug.o capture/decode.o capture/neti.o capture/netistats.o \
capture/strlcpyu.o capture/util.o capture.o secvis.o gfx.o list.o \
miscgl.o gui.o
UNAME := $(shell uname)
ifeq ($(UNAME), Darwin)
LIBS = -lpcap -lpthread -lglut -lGL -lGLU -lXmu -lXi -lXext -lX11 -lm -lQtCore -lQtGui
LIBPATH = -L/opt/X11/lib -L/opt/local/lib/
INCPATH = -I/opt/local/include/Qt -I/opt/local/include -I/opt/X11/include
CXXFLAGS = $(INCPATH) -Wall -DHAVE_PCAP_FINDALLDEVS
else # fix this for Qt4
LIBS = -lpcap -lpthread -lglut -lGL -lGLU -lXmu -lXi -lXext -lX11 -lm -lqt
LIBPATH = -L/usr/X11R6/lib/ -L/usr/qt/3/lib/
INCPATH = -I/usr/qt/3/include -I/usr/qt/3/mkspecs/linux-g++
CXXFLAGS = $(INCPATH)
endif
#.cc.o:
# g++ -c $(CXXFLAGS) $(INCPATH) -o $@ $<
secvis: $(OBJ)
g++ -g -o secvis $(OBJ) $(LIBPATH) $(LIBS) $(INCPATH)
clean:
rm -f secvis *.o capture/*.o