mirror of
https://github.com/holub/mame
synced 2025-10-06 09:00:04 +03:00
fixed linking on FreeBSD (nw)
also simplified network part in sdl.mak a bit
This commit is contained in:
parent
0bd97a7c13
commit
dfe67b4e7e
@ -768,17 +768,17 @@ endif # USE_XINPUT
|
||||
# Network (TAP/TUN)
|
||||
#-------------------------------------------------
|
||||
|
||||
OSDOBJS += $(SDLOBJ)/netdev.o
|
||||
|
||||
ifndef DONT_USE_NETWORK
|
||||
|
||||
ifeq ($(SDL_NETWORK),taptun)
|
||||
OSDOBJS += \
|
||||
$(SDLOBJ)/netdev.o \
|
||||
$(SDLOBJ)/netdev_tap.o
|
||||
OSDOBJS += $(SDLOBJ)/netdev_tap.o
|
||||
|
||||
DEFS += -DSDLMAME_NETWORK -DSDLMAME_NET_TAPTUN
|
||||
endif
|
||||
|
||||
ifeq ($(SDL_NETWORK),pcap)
|
||||
OSDOBJS += $(SDLOBJ)/netdev.o
|
||||
|
||||
ifeq ($(TARGETOS),macosx)
|
||||
OSDOBJS += $(SDLOBJ)/netdev_pcap_osx.o
|
||||
@ -787,13 +787,14 @@ OSDOBJS += $(SDLOBJ)/netdev_pcap.o
|
||||
endif
|
||||
|
||||
DEFS += -DSDLMAME_NETWORK -DSDLMAME_NET_PCAP
|
||||
|
||||
ifneq ($(TARGETOS),win32)
|
||||
LIBS += -lpcap
|
||||
endif
|
||||
endif
|
||||
else
|
||||
OSDOBJS += $(SDLOBJ)/netdev.o
|
||||
endif
|
||||
|
||||
endif # ifeq ($(SDL_NETWORK),pcap)
|
||||
|
||||
endif # ifndef DONT_USE_NETWORK
|
||||
|
||||
#-------------------------------------------------
|
||||
# Dependencies
|
||||
|
Loading…
Reference in New Issue
Block a user