forked from r-type/frodo-libretro
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile.common
85 lines (69 loc) · 2.02 KB
/
Makefile.common
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
INCFLAGS += \
-I$(CORE_DIR)/libretro/core \
-I$(CORE_DIR)/libretro/include \
-I$(CORE_DIR)/libretro/emu \
-I$(CORE_DIR)/libretro \
-I$(CORE_DIR)/Src \
-I$(CORE_DIR)
ifneq ($(NOLIBCO), 1)
INCFLAGS += -I$(CORE_DIR)/libretro/libco
endif
ifeq ($(NOLIBCO), 1)
CPPFLAGS += -DNO_LIBCO
endif
EMU := $(CORE_DIR)/Src
GUI := $(CORE_DIR)/libretro/gui
SOURCES_CXX := \
$(EMU)/main.cpp $(EMU)/Display.cpp $(EMU)/Prefs.cpp \
$(EMU)/SID.cpp $(EMU)/REU.cpp $(EMU)/IEC.cpp $(EMU)/1541fs.cpp \
$(EMU)/1541d64.cpp $(EMU)/1541t64.cpp $(EMU)/1541job.cpp \
$(EMU)/SAM.cpp $(EMU)/CmdPipe.cpp
SLOBJS := \
$(EMU)/C64.cpp $(EMU)/CPUC64.cpp $(EMU)/VIC.cpp \
$(EMU)/CIA.cpp $(EMU)/CPU1541.cpp
PCFLAGS = -DPRECISE_CPU_CYCLES=1 -DPRECISE_CIA_CYCLES=1 -DPC_IS_POINTER=0
SCOBJS = \
$(EMU)/C64_SC.cpp $(EMU)/CPUC64_SC.cpp $(EMU)/VIC_SC.cpp \
$(EMU)/CIA_SC.cpp $(EMU)/CPU1541_SC.cpp $(EMU)/CPU_common.cpp
SCFLAGS = -DFRODO_SC
GUISRCS = sdlgui.cpp file.cpp dlgFileSelect.cpp dlgMain.cpp \
dlgDrives.cpp dlgOptions.cpp dlgVidoSound.cpp \
dlgAdvanced.cpp dlgInput.cpp
ifeq ($(EMUTYPE), frodosc)
SOURCES_CXX += $(SCOBJS)
CPPFLAGS += $(PCFLAGS)
CPPFLAGS += $(SCFLAGS)
else
SOURCES_CXX += $(SLOBJS)
CPPFLAGS += $(PCFLAGS)
endif
VERSION = 4
REVISION = 2
CPPFLAGS += -DFRODO_HPUX_REV=0 -DKBD_LANG=0 -fpermissive
CXXFLAGS += $(CPPFLAGS)
SOURCES_CXX += \
$(CORE_DIR)/libretro/core/libretro-core.cpp \
$(CORE_DIR)/libretro/core/core-mapper.cpp \
$(CORE_DIR)/libretro/core/graph.cpp
SOURCES_CXX += $(GUI)/dialog.cpp\
$(GUI)/paths.cpp \
$(GUI)/file.cpp \
$(GUI)/unzip.cpp \
$(GUI)/thumb.cpp \
$(GUI)/zip.cpp \
$(GUI)/str.cpp \
$(GUI)/dlgFloppy.cpp \
$(GUI)/dlgFileSelect.cpp \
$(GUI)/dlgJoystick.cpp \
$(GUI)/dlgAbout.cpp \
$(GUI)/dlgSound.cpp \
$(GUI)/dlgAlert.cpp \
$(GUI)/dlgMisc.cpp \
$(GUI)/dlgVideo.cpp \
$(GUI)/dlgMain.cpp \
$(GUI)/dlgSnapshot.cpp \
$(GUI)/sdlgui.cpp
ifneq ($(NOLIBCO), 1)
SOURCES_C := \
$(CORE_DIR)/libretro/libco/libco.c
endif