-
Notifications
You must be signed in to change notification settings - Fork 100
/
step7.mk
185 lines (147 loc) · 10.3 KB
/
step7.mk
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
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
##
## Auto Generated makefile by CodeLite IDE
## any manual changes will be erased
##
## Debug
ProjectName :=step7
ConfigurationName :=Debug
WorkspacePath :=D:/github/StepFC
ProjectPath :=D:/github/StepFC/step7
IntermediateDirectory :=./Debug
OutDir := $(IntermediateDirectory)
CurrentFileName :=
CurrentFilePath :=
CurrentFileFullPath :=
User :=dustpg
Date :=13/09/2018
CodeLitePath :="C:/Program Files/CodeLite"
LinkerName :=g++
SharedObjectLinkerName :=g++ -shared -fPIC
ObjectSuffix :=.o
DependSuffix :=.o.d
PreprocessSuffix :=.o.i
DebugSwitch :=-gstab
IncludeSwitch :=-I
LibrarySwitch :=-l
OutputSwitch :=-o
LibraryPathSwitch :=-L
PreprocessorSwitch :=-D
SourceSwitch :=-c
OutputFile :=$(IntermediateDirectory)/$(ProjectName)
Preprocessors :=$(PreprocessorSwitch)_WIN32_WINNT=0x0601
ObjectSwitch :=-o
ArchiveOutputSwitch :=
PreprocessOnlySwitch :=-E
ObjectsFileList :="step7.txt"
PCHCompileFlags :=
MakeDirCommand :=makedir
RcCmpOptions :=
RcCompilerName :=windres
LinkOptions := -O0
IncludePath := $(IncludeSwitch). $(IncludeSwitch).
IncludePCH :=
RcIncludePath :=
Libs := $(LibrarySwitch)d3d11 $(LibrarySwitch)d2d1 $(LibrarySwitch)dxguid $(LibrarySwitch)uuid
ArLibs := "d3d11" "d2d1" "dxguid" "uuid"
LibPath := $(LibraryPathSwitch). $(LibraryPathSwitch). $(LibraryPathSwitch)Debug
##
## Common variables
## AR, CXX, CC, AS, CXXFLAGS and CFLAGS can be overriden using an environment variables
##
AR := ar rcus
CXX := g++
CC := gcc
CXXFLAGS := -std=c++14 -g -Wall $(Preprocessors)
CFLAGS := -mssse3 $(Preprocessors)
ASFLAGS :=
AS := as
##
## User defined environment variables
##
CodeLiteDir:=C:\Program Files\CodeLite
Objects0=$(IntermediateDirectory)/sfc_famicom.c$(ObjectSuffix) $(IntermediateDirectory)/sfc_ppu.c$(ObjectSuffix) $(IntermediateDirectory)/up_common_d2d_draw.cpp$(ObjectSuffix) $(IntermediateDirectory)/sfc_cpu.c$(ObjectSuffix) $(IntermediateDirectory)/main.c$(ObjectSuffix) $(IntermediateDirectory)/sfc_config.c$(ObjectSuffix) $(IntermediateDirectory)/sfc_addr4020.c$(ObjectSuffix) $(IntermediateDirectory)/sfc_6502.c$(ObjectSuffix) $(IntermediateDirectory)/sfc_mapper.c$(ObjectSuffix) $(IntermediateDirectory)/sfc_render_ez.c$(ObjectSuffix) \
Objects=$(Objects0)
##
## Main Build Targets
##
.PHONY: all clean PreBuild PrePreBuild PostBuild MakeIntermediateDirs
all: $(OutputFile)
$(OutputFile): $(IntermediateDirectory)/.d $(Objects)
@$(MakeDirCommand) $(@D)
@echo "" > $(IntermediateDirectory)/.d
@echo $(Objects0) > $(ObjectsFileList)
$(LinkerName) $(OutputSwitch)$(OutputFile) @$(ObjectsFileList) $(LibPath) $(Libs) $(LinkOptions)
MakeIntermediateDirs:
@$(MakeDirCommand) "./Debug"
$(IntermediateDirectory)/.d:
@$(MakeDirCommand) "./Debug"
PreBuild:
##
## Objects
##
$(IntermediateDirectory)/sfc_famicom.c$(ObjectSuffix): sfc_famicom.c $(IntermediateDirectory)/sfc_famicom.c$(DependSuffix)
$(CC) $(SourceSwitch) "D:/github/StepFC/step7/sfc_famicom.c" $(CFLAGS) $(ObjectSwitch)$(IntermediateDirectory)/sfc_famicom.c$(ObjectSuffix) $(IncludePath)
$(IntermediateDirectory)/sfc_famicom.c$(DependSuffix): sfc_famicom.c
@$(CC) $(CFLAGS) $(IncludePath) -MG -MP -MT$(IntermediateDirectory)/sfc_famicom.c$(ObjectSuffix) -MF$(IntermediateDirectory)/sfc_famicom.c$(DependSuffix) -MM sfc_famicom.c
$(IntermediateDirectory)/sfc_famicom.c$(PreprocessSuffix): sfc_famicom.c
$(CC) $(CFLAGS) $(IncludePath) $(PreprocessOnlySwitch) $(OutputSwitch) $(IntermediateDirectory)/sfc_famicom.c$(PreprocessSuffix) sfc_famicom.c
$(IntermediateDirectory)/sfc_ppu.c$(ObjectSuffix): sfc_ppu.c $(IntermediateDirectory)/sfc_ppu.c$(DependSuffix)
$(CC) $(SourceSwitch) "D:/github/StepFC/step7/sfc_ppu.c" $(CFLAGS) $(ObjectSwitch)$(IntermediateDirectory)/sfc_ppu.c$(ObjectSuffix) $(IncludePath)
$(IntermediateDirectory)/sfc_ppu.c$(DependSuffix): sfc_ppu.c
@$(CC) $(CFLAGS) $(IncludePath) -MG -MP -MT$(IntermediateDirectory)/sfc_ppu.c$(ObjectSuffix) -MF$(IntermediateDirectory)/sfc_ppu.c$(DependSuffix) -MM sfc_ppu.c
$(IntermediateDirectory)/sfc_ppu.c$(PreprocessSuffix): sfc_ppu.c
$(CC) $(CFLAGS) $(IncludePath) $(PreprocessOnlySwitch) $(OutputSwitch) $(IntermediateDirectory)/sfc_ppu.c$(PreprocessSuffix) sfc_ppu.c
$(IntermediateDirectory)/up_common_d2d_draw.cpp$(ObjectSuffix): ../common/d2d_draw.cpp $(IntermediateDirectory)/up_common_d2d_draw.cpp$(DependSuffix)
$(CXX) $(IncludePCH) $(SourceSwitch) "D:/github/StepFC/common/d2d_draw.cpp" $(CXXFLAGS) $(ObjectSwitch)$(IntermediateDirectory)/up_common_d2d_draw.cpp$(ObjectSuffix) $(IncludePath)
$(IntermediateDirectory)/up_common_d2d_draw.cpp$(DependSuffix): ../common/d2d_draw.cpp
@$(CXX) $(CXXFLAGS) $(IncludePCH) $(IncludePath) -MG -MP -MT$(IntermediateDirectory)/up_common_d2d_draw.cpp$(ObjectSuffix) -MF$(IntermediateDirectory)/up_common_d2d_draw.cpp$(DependSuffix) -MM ../common/d2d_draw.cpp
$(IntermediateDirectory)/up_common_d2d_draw.cpp$(PreprocessSuffix): ../common/d2d_draw.cpp
$(CXX) $(CXXFLAGS) $(IncludePCH) $(IncludePath) $(PreprocessOnlySwitch) $(OutputSwitch) $(IntermediateDirectory)/up_common_d2d_draw.cpp$(PreprocessSuffix) ../common/d2d_draw.cpp
$(IntermediateDirectory)/sfc_cpu.c$(ObjectSuffix): sfc_cpu.c $(IntermediateDirectory)/sfc_cpu.c$(DependSuffix)
$(CC) $(SourceSwitch) "D:/github/StepFC/step7/sfc_cpu.c" $(CFLAGS) $(ObjectSwitch)$(IntermediateDirectory)/sfc_cpu.c$(ObjectSuffix) $(IncludePath)
$(IntermediateDirectory)/sfc_cpu.c$(DependSuffix): sfc_cpu.c
@$(CC) $(CFLAGS) $(IncludePath) -MG -MP -MT$(IntermediateDirectory)/sfc_cpu.c$(ObjectSuffix) -MF$(IntermediateDirectory)/sfc_cpu.c$(DependSuffix) -MM sfc_cpu.c
$(IntermediateDirectory)/sfc_cpu.c$(PreprocessSuffix): sfc_cpu.c
$(CC) $(CFLAGS) $(IncludePath) $(PreprocessOnlySwitch) $(OutputSwitch) $(IntermediateDirectory)/sfc_cpu.c$(PreprocessSuffix) sfc_cpu.c
$(IntermediateDirectory)/main.c$(ObjectSuffix): main.c $(IntermediateDirectory)/main.c$(DependSuffix)
$(CC) $(SourceSwitch) "D:/github/StepFC/step7/main.c" $(CFLAGS) $(ObjectSwitch)$(IntermediateDirectory)/main.c$(ObjectSuffix) $(IncludePath)
$(IntermediateDirectory)/main.c$(DependSuffix): main.c
@$(CC) $(CFLAGS) $(IncludePath) -MG -MP -MT$(IntermediateDirectory)/main.c$(ObjectSuffix) -MF$(IntermediateDirectory)/main.c$(DependSuffix) -MM main.c
$(IntermediateDirectory)/main.c$(PreprocessSuffix): main.c
$(CC) $(CFLAGS) $(IncludePath) $(PreprocessOnlySwitch) $(OutputSwitch) $(IntermediateDirectory)/main.c$(PreprocessSuffix) main.c
$(IntermediateDirectory)/sfc_config.c$(ObjectSuffix): sfc_config.c $(IntermediateDirectory)/sfc_config.c$(DependSuffix)
$(CC) $(SourceSwitch) "D:/github/StepFC/step7/sfc_config.c" $(CFLAGS) $(ObjectSwitch)$(IntermediateDirectory)/sfc_config.c$(ObjectSuffix) $(IncludePath)
$(IntermediateDirectory)/sfc_config.c$(DependSuffix): sfc_config.c
@$(CC) $(CFLAGS) $(IncludePath) -MG -MP -MT$(IntermediateDirectory)/sfc_config.c$(ObjectSuffix) -MF$(IntermediateDirectory)/sfc_config.c$(DependSuffix) -MM sfc_config.c
$(IntermediateDirectory)/sfc_config.c$(PreprocessSuffix): sfc_config.c
$(CC) $(CFLAGS) $(IncludePath) $(PreprocessOnlySwitch) $(OutputSwitch) $(IntermediateDirectory)/sfc_config.c$(PreprocessSuffix) sfc_config.c
$(IntermediateDirectory)/sfc_addr4020.c$(ObjectSuffix): sfc_addr4020.c $(IntermediateDirectory)/sfc_addr4020.c$(DependSuffix)
$(CC) $(SourceSwitch) "D:/github/StepFC/step7/sfc_addr4020.c" $(CFLAGS) $(ObjectSwitch)$(IntermediateDirectory)/sfc_addr4020.c$(ObjectSuffix) $(IncludePath)
$(IntermediateDirectory)/sfc_addr4020.c$(DependSuffix): sfc_addr4020.c
@$(CC) $(CFLAGS) $(IncludePath) -MG -MP -MT$(IntermediateDirectory)/sfc_addr4020.c$(ObjectSuffix) -MF$(IntermediateDirectory)/sfc_addr4020.c$(DependSuffix) -MM sfc_addr4020.c
$(IntermediateDirectory)/sfc_addr4020.c$(PreprocessSuffix): sfc_addr4020.c
$(CC) $(CFLAGS) $(IncludePath) $(PreprocessOnlySwitch) $(OutputSwitch) $(IntermediateDirectory)/sfc_addr4020.c$(PreprocessSuffix) sfc_addr4020.c
$(IntermediateDirectory)/sfc_6502.c$(ObjectSuffix): sfc_6502.c $(IntermediateDirectory)/sfc_6502.c$(DependSuffix)
$(CC) $(SourceSwitch) "D:/github/StepFC/step7/sfc_6502.c" $(CFLAGS) $(ObjectSwitch)$(IntermediateDirectory)/sfc_6502.c$(ObjectSuffix) $(IncludePath)
$(IntermediateDirectory)/sfc_6502.c$(DependSuffix): sfc_6502.c
@$(CC) $(CFLAGS) $(IncludePath) -MG -MP -MT$(IntermediateDirectory)/sfc_6502.c$(ObjectSuffix) -MF$(IntermediateDirectory)/sfc_6502.c$(DependSuffix) -MM sfc_6502.c
$(IntermediateDirectory)/sfc_6502.c$(PreprocessSuffix): sfc_6502.c
$(CC) $(CFLAGS) $(IncludePath) $(PreprocessOnlySwitch) $(OutputSwitch) $(IntermediateDirectory)/sfc_6502.c$(PreprocessSuffix) sfc_6502.c
$(IntermediateDirectory)/sfc_mapper.c$(ObjectSuffix): sfc_mapper.c $(IntermediateDirectory)/sfc_mapper.c$(DependSuffix)
$(CC) $(SourceSwitch) "D:/github/StepFC/step7/sfc_mapper.c" $(CFLAGS) $(ObjectSwitch)$(IntermediateDirectory)/sfc_mapper.c$(ObjectSuffix) $(IncludePath)
$(IntermediateDirectory)/sfc_mapper.c$(DependSuffix): sfc_mapper.c
@$(CC) $(CFLAGS) $(IncludePath) -MG -MP -MT$(IntermediateDirectory)/sfc_mapper.c$(ObjectSuffix) -MF$(IntermediateDirectory)/sfc_mapper.c$(DependSuffix) -MM sfc_mapper.c
$(IntermediateDirectory)/sfc_mapper.c$(PreprocessSuffix): sfc_mapper.c
$(CC) $(CFLAGS) $(IncludePath) $(PreprocessOnlySwitch) $(OutputSwitch) $(IntermediateDirectory)/sfc_mapper.c$(PreprocessSuffix) sfc_mapper.c
$(IntermediateDirectory)/sfc_render_ez.c$(ObjectSuffix): sfc_render_ez.c $(IntermediateDirectory)/sfc_render_ez.c$(DependSuffix)
$(CC) $(SourceSwitch) "D:/github/StepFC/step7/sfc_render_ez.c" $(CFLAGS) $(ObjectSwitch)$(IntermediateDirectory)/sfc_render_ez.c$(ObjectSuffix) $(IncludePath)
$(IntermediateDirectory)/sfc_render_ez.c$(DependSuffix): sfc_render_ez.c
@$(CC) $(CFLAGS) $(IncludePath) -MG -MP -MT$(IntermediateDirectory)/sfc_render_ez.c$(ObjectSuffix) -MF$(IntermediateDirectory)/sfc_render_ez.c$(DependSuffix) -MM sfc_render_ez.c
$(IntermediateDirectory)/sfc_render_ez.c$(PreprocessSuffix): sfc_render_ez.c
$(CC) $(CFLAGS) $(IncludePath) $(PreprocessOnlySwitch) $(OutputSwitch) $(IntermediateDirectory)/sfc_render_ez.c$(PreprocessSuffix) sfc_render_ez.c
-include $(IntermediateDirectory)/*$(DependSuffix)
##
## Clean
##
clean:
$(RM) -r ./Debug/