mirror of
https://github.com/kanjitalk755/macemu.git
synced 2024-12-02 02:49:40 +00:00
Moved cross-platform sources into their own directory so that Windows builds don't need to add Unix to the include directory list.
This commit is contained in:
parent
c92feaf767
commit
284900f905
@ -21,7 +21,7 @@ CFLAGS = @CFLAGS@
|
|||||||
CXXFLAGS = @CXXFLAGS@
|
CXXFLAGS = @CXXFLAGS@
|
||||||
CPUINCLUDES_FLAGS=@CPUINCLUDES@
|
CPUINCLUDES_FLAGS=@CPUINCLUDES@
|
||||||
CPUINCLUDES_FLAGS:=$(CPUINCLUDES_FLAGS:-I%=-I@top_srcdir@/%)
|
CPUINCLUDES_FLAGS:=$(CPUINCLUDES_FLAGS:-I%=-I@top_srcdir@/%)
|
||||||
CPPFLAGS = @CPPFLAGS@ -I@top_srcdir@/../include -I@top_srcdir@/. -I. $(CPUINCLUDES_FLAGS) -I@top_srcdir@/../slirp
|
CPPFLAGS = @CPPFLAGS@ -I@top_srcdir@/../include -I@top_srcdir@/. -I. -I@top_srcdir@/../CrossPlatform $(CPUINCLUDES_FLAGS) -I@top_srcdir@/../slirp
|
||||||
DEFS = @DEFS@ @DEFINES@ -D_REENTRANT -DDATADIR=\"$(datadir)/$(APP)\"
|
DEFS = @DEFS@ @DEFINES@ -D_REENTRANT -DDATADIR=\"$(datadir)/$(APP)\"
|
||||||
LDFLAGS = @LDFLAGS@
|
LDFLAGS = @LDFLAGS@
|
||||||
LIBS = @LIBS@
|
LIBS = @LIBS@
|
||||||
@ -43,17 +43,18 @@ GUI_LIBS = @GUI_LIBS@
|
|||||||
GUI_SRCS = ../prefs.cpp prefs_unix.cpp prefs_editor_gtk.cpp ../prefs_items.cpp \
|
GUI_SRCS = ../prefs.cpp prefs_unix.cpp prefs_editor_gtk.cpp ../prefs_items.cpp \
|
||||||
../user_strings.cpp user_strings_unix.cpp xpram_unix.cpp sys_unix.cpp rpc_unix.cpp
|
../user_strings.cpp user_strings_unix.cpp xpram_unix.cpp sys_unix.cpp rpc_unix.cpp
|
||||||
|
|
||||||
|
XPLAT_SRCS = ../CrossPlatform/vm_alloc.cpp ../CrossPlatform/sigsegv.cpp ../CrossPlatform/video_blit.cpp
|
||||||
|
|
||||||
## Files
|
## Files
|
||||||
SRCS = ../main.cpp ../prefs.cpp ../prefs_items.cpp \
|
SRCS = ../main.cpp ../prefs.cpp ../prefs_items.cpp \
|
||||||
sys_unix.cpp ../rom_patches.cpp ../slot_rom.cpp ../rsrc_patches.cpp \
|
sys_unix.cpp ../rom_patches.cpp ../slot_rom.cpp ../rsrc_patches.cpp \
|
||||||
../emul_op.cpp ../macos_util.cpp ../xpram.cpp xpram_unix.cpp ../timer.cpp \
|
../emul_op.cpp ../macos_util.cpp ../xpram.cpp xpram_unix.cpp ../timer.cpp \
|
||||||
timer_unix.cpp ../adb.cpp ../serial.cpp ../ether.cpp \
|
timer_unix.cpp ../adb.cpp ../serial.cpp ../ether.cpp \
|
||||||
../sony.cpp ../disk.cpp ../cdrom.cpp ../scsi.cpp ../video.cpp \
|
../sony.cpp ../disk.cpp ../cdrom.cpp ../scsi.cpp ../video.cpp \
|
||||||
video_blit.cpp \
|
../audio.cpp ../extfs.cpp disk_sparsebundle.cpp \
|
||||||
vm_alloc.cpp sigsegv.cpp ../audio.cpp ../extfs.cpp disk_sparsebundle.cpp \
|
|
||||||
tinyxml2.cpp \
|
tinyxml2.cpp \
|
||||||
../user_strings.cpp user_strings_unix.cpp sshpty.c strlcpy.c rpc_unix.cpp \
|
../user_strings.cpp user_strings_unix.cpp sshpty.c strlcpy.c rpc_unix.cpp \
|
||||||
$(SYSSRCS) $(CPUSRCS) $(SLIRP_SRCS)
|
$(XPLAT_SRCS) $(SYSSRCS) $(CPUSRCS) $(SLIRP_SRCS)
|
||||||
APP_FLAVOR ?=
|
APP_FLAVOR ?=
|
||||||
ifneq ($(APP_FLAVOR),)
|
ifneq ($(APP_FLAVOR),)
|
||||||
CURR_APP_FLAVOR := -$(APP_FLAVOR)
|
CURR_APP_FLAVOR := -$(APP_FLAVOR)
|
||||||
|
@ -37,7 +37,7 @@ CC = @CC@
|
|||||||
CXX = @CXX@
|
CXX = @CXX@
|
||||||
CFLAGS = @CFLAGS@ $(SDL_CFLAGS)
|
CFLAGS = @CFLAGS@ $(SDL_CFLAGS)
|
||||||
CXXFLAGS = @CXXFLAGS@ $(SDL_CFLAGS)
|
CXXFLAGS = @CXXFLAGS@ $(SDL_CFLAGS)
|
||||||
CPPFLAGS = @CPPFLAGS@ -I../include -I. @CPUINCLUDES@ -I../slirp
|
CPPFLAGS = @CPPFLAGS@ -I../include -I. -I../CrossPlatform @CPUINCLUDES@ -I../slirp
|
||||||
DEFS = @DEFS@ @DEFINES@
|
DEFS = @DEFS@ @DEFINES@
|
||||||
LDFLAGS = @LDFLAGS@
|
LDFLAGS = @LDFLAGS@
|
||||||
LIBS = @LIBS@ -lwsock32 -liphlpapi
|
LIBS = @LIBS@ -lwsock32 -liphlpapi
|
||||||
@ -50,7 +50,7 @@ HOST_CXXFLAGS = -O2
|
|||||||
HOST_LDFLAGS =
|
HOST_LDFLAGS =
|
||||||
|
|
||||||
## Files
|
## Files
|
||||||
UNIXSRCS = vm_alloc.cpp vm_alloc.h sigsegv.cpp sigsegv.h video_vosf.h video_blit.cpp video_blit.h
|
XPLATSRCS = vm_alloc.cpp vm_alloc.h sigsegv.cpp sigsegv.h video_vosf.h video_blit.cpp video_blit.h
|
||||||
|
|
||||||
CDENABLESRCS = cdenable/cache.cpp cdenable/eject_nt.cpp cdenable/ntcd.cpp
|
CDENABLESRCS = cdenable/cache.cpp cdenable/eject_nt.cpp cdenable/ntcd.cpp
|
||||||
|
|
||||||
@ -91,7 +91,7 @@ endif
|
|||||||
|
|
||||||
all: $(PROGS)
|
all: $(PROGS)
|
||||||
|
|
||||||
$(UNIXSRCS): %: ../Unix/%
|
$(XPLATSRCS): %: ../CrossPlatform/%
|
||||||
$(LN_S) $< $@
|
$(LN_S) $< $@
|
||||||
|
|
||||||
OBJ_DIR = obj
|
OBJ_DIR = obj
|
||||||
@ -114,17 +114,17 @@ SRC_PATHS += $(sort $(foreach file, $(SRCS), $(dir $(file))))
|
|||||||
VPATH :=
|
VPATH :=
|
||||||
VPATH += $(addprefix :, $(subst ,:, $(filter-out $($(subst, :, ,$(VPATH))), $(SRC_PATHS))))
|
VPATH += $(addprefix :, $(subst ,:, $(filter-out $($(subst, :, ,$(VPATH))), $(SRC_PATHS))))
|
||||||
|
|
||||||
$(APP): $(UNIXSRCS) $(OBJ_DIR) $(OBJS)
|
$(APP): $(XPLATSRCS) $(OBJ_DIR) $(OBJS)
|
||||||
$(CXX) -o $@ $(LDFLAGS) $(OBJS) $(LIBS) $(SDL_LIBS)
|
$(CXX) -o $@ $(LDFLAGS) $(OBJS) $(LIBS) $(SDL_LIBS)
|
||||||
|
|
||||||
$(UI_APP): $(UNIXSRCS) $(OBJ_DIR) $(UI_OBJS)
|
$(UI_APP): $(XPLATSRCS) $(OBJ_DIR) $(UI_OBJS)
|
||||||
$(CXX) -o $@ $(LDFLAGS) $(UI_OBJS) $(LIBS) $(GTK_LIBS) -mwindows -mno-cygwin
|
$(CXX) -o $@ $(LDFLAGS) $(UI_OBJS) $(LIBS) $(GTK_LIBS) -mwindows -mno-cygwin
|
||||||
|
|
||||||
mostlyclean:
|
mostlyclean:
|
||||||
rm -f $(APP) $(UI_APP) $(OBJ_DIR)/* core* *.core *~ *.bak
|
rm -f $(APP) $(UI_APP) $(OBJ_DIR)/* core* *.core *~ *.bak
|
||||||
|
|
||||||
clean: mostlyclean
|
clean: mostlyclean
|
||||||
rm -f $(UNIXSRCS)
|
rm -f $(XPLATSRCS)
|
||||||
rm -f cpuemu.cpp cpudefs.cpp cputmp*.s cpufast*.s cpustbl.cpp cputbl.h compemu.cpp compstbl.cpp comptbl.h
|
rm -f cpuemu.cpp cpudefs.cpp cputmp*.s cpufast*.s cpustbl.cpp cputbl.h compemu.cpp compstbl.cpp comptbl.h
|
||||||
|
|
||||||
distclean: clean
|
distclean: clean
|
||||||
|
Loading…
Reference in New Issue
Block a user