/[dynamips]/upstream/dynamips-0.2.6-RC2/Makefile
This is repository of my old source code which isn't updated any more. Go to git.rot13.org for current projects!
ViewVC logotype

Diff of /upstream/dynamips-0.2.6-RC2/Makefile

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

upstream/dynamips-0.2.6-RC1/Makefile revision 2 by dpavlin, Sat Oct 6 16:03:58 2007 UTC upstream/dynamips-0.2.6-RC2/Makefile revision 3 by dpavlin, Sat Oct 6 16:05:34 2007 UTC
# Line 1  Line 1 
1  # Makefile for Dynamips 0.2.5  # Makefile for Dynamips 0.2.6
2  # Copyright (c) 2005-2006 Christophe Fillot.  # Copyright (c) 2005-2006 Christophe Fillot.
3    
4  # Replace x86 by amd64 for a build on x86_64.  # Replace x86 by amd64 for a build on x86_64.
# Line 14  HAS_PCAP?=1 Line 14  HAS_PCAP?=1
14    
15  # Current dynamips release  # Current dynamips release
16  VERSION_TRAIN=0.2.6  VERSION_TRAIN=0.2.6
17  VERSION_SUB=-RC1  VERSION_SUB=-RC2
18    
19  VERSION=$(VERSION_TRAIN)$(VERSION_SUB)  VERSION=$(VERSION_TRAIN)$(VERSION_SUB)
20  VERSION_DEV=$(VERSION_TRAIN)-$(shell date +%Y%m%d-%H)  VERSION_DEV=$(VERSION_TRAIN)-$(shell date +%Y%m%d-%H)
# Line 32  ARCH_INC_FILE=\"$(DYNAMIPS_ARCH)_trans.h Line 32  ARCH_INC_FILE=\"$(DYNAMIPS_ARCH)_trans.h
32  CFLAGS+=-g -Wall -O3 -fomit-frame-pointer \  CFLAGS+=-g -Wall -O3 -fomit-frame-pointer \
33          -DJIT_ARCH=\"$(DYNAMIPS_ARCH)\" \          -DJIT_ARCH=\"$(DYNAMIPS_ARCH)\" \
34          -DARCH_INC_FILE=$(ARCH_INC_FILE) -DDYNAMIPS_VERSION=\"$(VERSION)\" \          -DARCH_INC_FILE=$(ARCH_INC_FILE) -DDYNAMIPS_VERSION=\"$(VERSION)\" \
35          -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE \          -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE \
36          -DHAS_RFC2553=$(HAS_RFC2553)          -DHAS_RFC2553=$(HAS_RFC2553)
37    
38  PCAP_LIB=/usr/local/lib/libpcap.a  PCAP_LIB=/usr/local/lib/libpcap.a
# Line 40  PCAP_LIB=/usr/local/lib/libpcap.a Line 40  PCAP_LIB=/usr/local/lib/libpcap.a
40    
41  ifeq ($(shell uname), FreeBSD)  ifeq ($(shell uname), FreeBSD)
42     PTHREAD_LIBS?=-pthread     PTHREAD_LIBS?=-pthread
43     CFLAGS+=-I/usr/local/include -I/usr/local/include/libelf $(PTHREAD_CFLAGS)     CFLAGS+=-I/usr/local/include -I/usr/local/include/libelf $(PTHREAD_CFLAGS) \
44             -D_FILE_OFFSET_BITS=64
45     LIBS=-L/usr/local/lib -L. -lelf $(PTHREAD_LIBS)     LIBS=-L/usr/local/lib -L. -lelf $(PTHREAD_LIBS)
46  else  else
47  ifeq ($(shell uname -s), Darwin)  ifeq ($(shell uname -s), Darwin)
48     CFLAGS+=-I/usr/local/include -mdynamic-no-pic     CFLAGS+=-I/usr/local/include -mdynamic-no-pic -D_FILE_OFFSET_BITS=64
49     LIBS=-L/usr/local/lib -L. -lelf -lpthread     LIBS=-L/usr/local/lib -L. -lelf -lpthread
50  else  else
51    ifeq ($(shell uname -s), SunOS)
52       CFLAGS+=-I/usr/local/include -DINADDR_NONE=0xFFFFFFFF \
53            -I /opt/csw/include -DSUNOS
54       LIBS=-L/usr/local/lib -L. -lelf -lpthread -L/opt/csw/lib \
55            -lsocket -lnsl -lresolv
56       PCAP_LIB=/opt/csw/lib/libpcap.a
57    else
58  ifeq ($(shell uname -o), Cygwin)  ifeq ($(shell uname -o), Cygwin)
59     CFLAGS+=-I/usr/local/include -I/usr/local/include/libelf -DCYGWIN     CFLAGS+=-I/usr/local/include -I/usr/local/include/libelf -DCYGWIN \
60            -D_FILE_OFFSET_BITS=64
61     LIBS=-L/usr/local/lib -L. -lelf -lpthread     LIBS=-L/usr/local/lib -L. -lelf -lpthread
62     PCAP_LIB=-lpacket -lwpcap     PCAP_LIB=-lpacket -lwpcap
63  else  else
64     CFLAGS+=-I/usr/include/libelf     CFLAGS+=-I/usr/include/libelf -D_FILE_OFFSET_BITS=64
65     LIBS=-L. /usr/lib/libelf.a -lpthread     LIBS=-L. /usr/lib/libelf.a -lpthread
66  endif  endif
67  endif  endif
68  endif  endif
69    endif
70    
71  PROG=dynamips$(BIN_EXT)  PROG=dynamips$(BIN_EXT)
72  PACKAGE=$(PROG)-$(VERSION)  PACKAGE=$(PROG)-$(VERSION)
# Line 69  ARCHIVE_DEV=$(PACKAGE_DEV).tar.gz Line 79  ARCHIVE_DEV=$(PACKAGE_DEV).tar.gz
79  HDR=mempool.h registry.h rbtree.h hash.h utils.h parser.h \  HDR=mempool.h registry.h rbtree.h hash.h utils.h parser.h \
80          crc.h base64.h net.h net_io.h net_io_bridge.h net_io_filter.h \          crc.h base64.h net.h net_io.h net_io_bridge.h net_io_filter.h \
81          atm.h frame_relay.h eth_switch.h \          atm.h frame_relay.h eth_switch.h \
82          ptask.h hypervisor.h dynamips.h insn_lookup.h \          ptask.h timer.h hypervisor.h dynamips.h insn_lookup.h \
83          vm.h mips64.h mips64_exec.h cpu.h cp0.h memory.h device.h \          vm.h mips64.h mips64_exec.h cpu.h cp0.h memory.h device.h \
84          nmc93c46.h cisco_eeprom.h ds1620.h pci_dev.h pci_io.h \          nmc93c46.h cisco_eeprom.h ds1620.h pci_dev.h pci_io.h \
85          dev_dec21140.h dev_am79c971.h dev_mueslix.h \          dev_dec21140.h dev_am79c971.h dev_mueslix.h \
86          dev_vtty.h dev_c7200.h dev_c3600.h dev_c3600_bay.h          dev_vtty.h dev_c7200.h dev_c3600.h dev_c3600_bay.h
87  SOURCES=mempool.c registry.c rbtree.c hash.c utils.c parser.c ptask.c \  SOURCES=mempool.c registry.c rbtree.c hash.c utils.c parser.c ptask.c timer.c \
88          crc.c base64.c net.c net_io.c net_io_bridge.c net_io_filter.c \          crc.c base64.c net.c net_io.c net_io_bridge.c net_io_filter.c \
89          atm.c frame_relay.c eth_switch.c \          atm.c frame_relay.c eth_switch.c \
90          dynamips.c insn_lookup.c vm.c mips64.c mips64_jit.c mips64_exec.c \          dynamips.c insn_lookup.c vm.c mips64.c mips64_jit.c mips64_exec.c \

Legend:
Removed from v.2  
changed lines
  Added in v.3

  ViewVC Help
Powered by ViewVC 1.1.26