/[dynamips]/upstream/dynamips-0.2.7-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.7-RC2/Makefile

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

upstream/dynamips-0.2.7-RC1/Makefile revision 7 by dpavlin, Sat Oct 6 16:23:47 2007 UTC upstream/dynamips-0.2.7-RC2/Makefile revision 8 by dpavlin, Sat Oct 6 16:24:54 2007 UTC
# Line 14  HAS_PCAP?=1 Line 14  HAS_PCAP?=1
14    
15  # Current dynamips release  # Current dynamips release
16  VERSION_TRAIN=0.2.7  VERSION_TRAIN=0.2.7
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 51  ifeq ($(shell uname), FreeBSD) Line 51  ifeq ($(shell uname), FreeBSD)
51  else  else
52  ifeq ($(shell uname), Linux)  ifeq ($(shell uname), Linux)
53     PTHREAD_LIBS?=-lpthread     PTHREAD_LIBS?=-lpthread
54     PCAP_LIB=-lpcap  #   PCAP_LIB=-lpcap
55     CFLAGS+=-I/usr/include -I. $(PTHREAD_CFLAGS)     CFLAGS+=-I/usr/include -I. $(PTHREAD_CFLAGS)
56     LIBS=-L/usr/lib -L. -lelf $(PTHREAD_LIBS)     LIBS=-L/usr/lib -L. /usr/lib/libelf.a $(PTHREAD_LIBS)
57     DESTDIR=/usr     DESTDIR=/usr
58  else  else
59  ifeq ($(shell uname -s), Darwin)  ifeq ($(shell uname -s), Darwin)
# Line 90  ARCHIVE_DEV=$(PACKAGE_DEV).tar.gz Line 90  ARCHIVE_DEV=$(PACKAGE_DEV).tar.gz
90    
91  # Header and source files  # Header and source files
92  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 \
93          crc.h base64.h net.h net_io.h net_io_bridge.h net_io_filter.h \          crc.h sbox.h base64.h net.h net_io.h net_io_bridge.h net_io_filter.h \
94          atm.h frame_relay.h eth_switch.h \          atm.h frame_relay.h eth_switch.h \
95          ptask.h timer.h hypervisor.h dynamips.h insn_lookup.h \          ptask.h timer.h dev_vtty.h hypervisor.h dynamips.h insn_lookup.h \
96          vm.h cpu.h memory.h device.h \          vm.h cpu.h memory.h device.h \
97          mips64.h mips64_mem.h mips64_exec.h mips64_jit.h mips64_cp0.h \          mips64.h mips64_mem.h mips64_exec.h mips64_jit.h mips64_cp0.h \
98          ppc32.h ppc32_mem.h ppc32_exec.h ppc32_jit.h ppc32_vmtest.h \          ppc32.h ppc32_mem.h ppc32_exec.h ppc32_jit.h ppc32_vmtest.h \
99          nmc93c46.h cisco_eeprom.h ds1620.h dev_rom.h \          nmc93cX6.h cisco_eeprom.h ds1620.h dev_rom.h \
100          pci_dev.h pci_io.h dev_mpc860.h dev_gt.h dev_mv64460.h dev_plx.h \          pci_dev.h pci_io.h dev_mpc860.h dev_gt.h dev_mv64460.h dev_plx.h \
101          dev_dec21140.h dev_am79c971.h dev_i8254x.h \          dev_dec21140.h dev_am79c971.h dev_i8254x.h \
102          dev_mueslix.h dev_nm_16esw.h \          dev_mueslix.h dev_nm_16esw.h \
103          dev_vtty.h dev_c7200.h dev_c3600.h dev_c3600_bay.h \          dev_c7200.h dev_c7200_mpfpga.h \
104          dev_c2691.h dev_c3725.h dev_c3745.h dev_c2600.h          dev_c3600.h dev_c3600_iofpga.h dev_c3600_bay.h \
105            dev_c2691.h dev_c2691_iofpga.h \
106  SOURCES=mempool.c registry.c rbtree.c hash.c utils.c parser.c ptask.c timer.c \          dev_c3725.h dev_c3725_iofpga.h \
107          crc.c base64.c net.c net_io.c net_io_bridge.c net_io_filter.c \          dev_c3745.h dev_c3745_iofpga.h \
108            dev_c2600.h dev_c2600_iofpga.h \
109            dev_msfc1.h dev_msfc1_mpfpga.h
110    
111    SOURCES=mempool.c registry.c rbtree.c hash.c sbox.c utils.c parser.c \
112            ptask.c timer.c crc.c base64.c \
113            net.c net_io.c net_io_bridge.c net_io_filter.c \
114          atm.c frame_relay.c eth_switch.c \          atm.c frame_relay.c eth_switch.c \
115          dynamips.c insn_lookup.c vm.c cpu.c \          dynamips.c insn_lookup.c vm.c cpu.c \
116          mips64.c mips64_mem.c mips64_cp0.c mips64_jit.c mips64_exec.c \          mips64.c mips64_mem.c mips64_cp0.c mips64_jit.c mips64_exec.c \
117          ppc32.c ppc32_mem.c ppc32_jit.c ppc32_exec.c ppc32_vmtest.c \          ppc32.c ppc32_mem.c ppc32_jit.c ppc32_exec.c ppc32_vmtest.c \
118          memory.c device.c nmc93c46.c cisco_eeprom.c \          memory.c device.c nmc93cX6.c cisco_eeprom.c \
119          pci_dev.c pci_io.c \          pci_dev.c pci_io.c \
120          dev_zero.c dev_bswap.c dev_vtty.c dev_ram.c dev_rom.c dev_nvram.c \          dev_zero.c dev_bswap.c dev_vtty.c dev_ram.c dev_rom.c dev_nvram.c \
121          dev_bootflash.c dev_flash.c dev_mpc860.c \          dev_bootflash.c dev_flash.c dev_mpc860.c \
# Line 127  SOURCES=mempool.c registry.c rbtree.c ha Line 133  SOURCES=mempool.c registry.c rbtree.c ha
133          dev_c3725.c dev_c3725_iofpga.c dev_c3725_eth.c dev_c3725_serial.c \          dev_c3725.c dev_c3725_iofpga.c dev_c3725_eth.c dev_c3725_serial.c \
134          dev_c3745.c dev_c3745_iofpga.c dev_c3745_eth.c dev_c3745_serial.c \          dev_c3745.c dev_c3745_iofpga.c dev_c3745_eth.c dev_c3745_serial.c \
135          dev_c2600.c dev_c2600_pci.c dev_c2600_iofpga.c dev_c2600_eth.c \          dev_c2600.c dev_c2600_pci.c dev_c2600_iofpga.c dev_c2600_eth.c \
136            dev_msfc1.c dev_msfc1_iofpga.c dev_msfc1_mpfpga.c \
137          dev_nm_16esw.c dev_pa_a1.c dev_pa_mc8te1.c \          dev_nm_16esw.c dev_pa_a1.c dev_pa_mc8te1.c \
138          dev_sb1.c dev_sb1_io.c dev_sb1_pci.c hypervisor.c \          dev_sb1.c dev_sb1_io.c dev_sb1_pci.c hypervisor.c \
139          hv_nio.c hv_nio_bridge.c hv_frsw.c hv_atmsw.c hv_ethsw.c \          hv_nio.c hv_nio_bridge.c hv_frsw.c hv_atmsw.c hv_ethsw.c \
# Line 186  FILE_LIST := $(HDR) $(SOURCES) $(SUPPL) Line 193  FILE_LIST := $(HDR) $(SOURCES) $(SUPPL)
193          ppc32_nojit_trans.c ppc32_nojit_trans.h \          ppc32_nojit_trans.c ppc32_nojit_trans.h \
194          linux_eth.c linux_eth.h gen_eth.c gen_eth.h \          linux_eth.c linux_eth.h gen_eth.c gen_eth.h \
195          profiler.c profiler_resolve.pl bin2c.c rom2c.c \          profiler.c profiler_resolve.pl bin2c.c rom2c.c \
196          nvram_export.c          nvram_export.c udp_send.c
197    
198  .PHONY: all  .PHONY: all
199  all: $(PROG) nvram_export  all: $(PROG) nvram_export
# Line 196  $(PROG): mips64_microcode_dump.inc ppc32 Line 203  $(PROG): mips64_microcode_dump.inc ppc32
203          @echo "Linking $@"          @echo "Linking $@"
204          @$(CC) -o $@ $(C_OBJS) $(A_OBJS) $(LIBS)          @$(CC) -o $@ $(C_OBJS) $(A_OBJS) $(LIBS)
205    
206    udp_send$(BIN_EXT): udp_send.c net.c
207            @echo "Linking $@"
208            @$(CC) -Wall $(CFLAGS) -o $@ udp_send.c net.c $(LIBS)
209    
210  rom2c$(BIN_EXT): rom2c.c  rom2c$(BIN_EXT): rom2c.c
211          @echo "Linking $@"          @echo "Linking $@"
212          @$(CC) -Wall $(CFLAGS) -o $@ rom2c.c $(LIBS)          @$(CC) -Wall $(CFLAGS) -o $@ rom2c.c $(LIBS)

Legend:
Removed from v.7  
changed lines
  Added in v.8

  ViewVC Help
Powered by ViewVC 1.1.26