Palacios Public Git Repository

To checkout Palacios execute

  git clone http://v3vee.org/palacios/palacios.web/palacios.git
This will give you the master branch. You probably want the devel branch or one of the release branches. To switch to the devel branch, simply execute
  cd palacios
  git checkout --track -b devel origin/devel
The other branches are similar.


885adf9cffb2036056356656124f88280f043cb9
[palacios.git] / misc / network_servers / vtl / Makefile
1 DISTDIR= ../dist
2 PREFIX=../local
3 DEBUG=-DDEBUG
4 #DEBUG=
5 #PROFILER=-pg
6 PROFILER=
7
8 INCLUDEDIR=$(PREFIX)/include
9 LIBDIR=$(PREFIX)/lib
10 BINDIR=$(PREFIX)/bin
11
12 VTL_OBJS = vtl_util.o  if.o socks.o util.o net_util.o raw_ethernet_packet.o vtl_model.o config.o
13 TOR_VTL_OBJS = vtl_socks5.o tor_vtl.o vtl_dns.o
14
15 VTL_HDRS = vtl.h vtl_util.h util.h socks.h if.h net_util.h vtl_model.h raw_ethernet_packet.h debug.h config.h vtl_harness.h
16
17 DISTFILES = config.cc config.h debug.h if.cc if.h net_util.cc net_util.h raw_ethernet_packet.cc raw_ethernet_packet.h socks.cc socks.h util.cc util.h vtl.h vtl_harness.h vtl_model.cc vtl_model.h vtl_util.cc vtl_util.h Makefile .dependencies
18
19 LIBNETLDFLAGS = -L$(LIBDIR) -lnet
20 SSLFLAGS        = -lssl
21 #LIBNETLDFLAGS = 
22 #SSLFLAGS =     
23 PCAPCFLAGS  = -I$(INCLUDEDIR)
24 PCAPLDFLAGS = -L$(LIBDIR) -lpcap
25
26
27 CXX=g++
28 CC=/usr/bin/gcc 
29 AR=ar
30 RANLIB=ranlib
31
32 #CXXFLAGS =  -DDEBUG  -g -gstabs+ -Wall $(PCAPCFLAGS) -I/usr/kerberos/include
33 CXXFLAGS =   $(DEBUG) -Wall -g -gstabs+ -DUSE_SSL $(PCAPCFLAGS) -I/usr/kerberos/include
34 LDFLAGS  =  -L$(LIBDIR) $(PCAPLDFLAGS) $(LIBNETLDFLAGS) $(SSLFLAGS) 
35
36
37 all: vtl
38
39 #vtl_test: $(VTL_OBJS) vtl_test.o
40 #       $(CXX) $(CXXFLAGS)  $(VTL_OBJS) vtl_test.o $(LDFLAGS) -o vtl_test
41
42 #vtl_ack_test: vtl_ack_test.o $(VTL_OBJS) libvtl.a
43 #       $(CXX)  $(CXXFLAGS) -L. vtl_ack_test.o -Bstatic -lvtl -Bdynamic $(LDFLAGS) -o vtl_ack_test
44
45
46 vtl: $(VTL_OBJS)
47         $(AR) rcs libvtl.a $(VTL_OBJS) 
48
49
50 %.o : %.cc
51         $(CXX) $(CXXFLAGS) -c $< -o $(@F) $(PROFILER)
52
53 depend:
54         $(CXX) $(CXXFLAGS) -MM $(VNET_OBJS:.o=.cc) > .dependencies
55
56 clean: 
57         rm -f *.o
58         rm -f $(VTL_OBJS) libvtl.a
59 #       rm -f vtl_ack_test
60
61 install: vtl
62         mkdir -p $(BINDIR)
63         mkdir -p $(LIBDIR)
64         mkdir -p $(INCLUDEDIR)
65         cp  libvtl.a $(LIBDIR)/libvtl.a
66         cp  $(VTL_HDRS) $(INCLUDEDIR)/
67
68
69 dist: $(DISTFILES)
70         mkdir -p $(DISTDIR)/vtl
71         cp $(DISTFILES) $(DISTDIR)/vtl
72
73 include .dependencies
74
75
76