Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
SRB2
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
SteelT
SRB2
Commits
79bbb3fe
Commit
79bbb3fe
authored
4 years ago
by
James R.
Browse files
Options
Downloads
Patches
Plain Diff
Remove Direct Draw from the Makefiles
MINGW/MINGW64 implies SDL.
parent
56d22907
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
src/Makefile
+1
-87
1 addition, 87 deletions
src/Makefile
src/Makefile.cfg
+2
-2
2 additions, 2 deletions
src/Makefile.cfg
src/win32/Makefile.cfg
+1
-28
1 addition, 28 deletions
src/win32/Makefile.cfg
with
4 additions
and
117 deletions
src/Makefile
+
1
−
87
View file @
79bbb3fe
...
...
@@ -13,8 +13,7 @@
# -DHAVE_SDL -> use for the SDL interface
#
# Sets:
# Compile the DirectX/Mingw version with 'make MINGW=1'
# Compile the SDL/Mingw version with 'make MINGW=1 SDL=1'
# Compile the SDL/Mingw version with 'make MINGW=1'
# Compile the SDL/Linux version with 'make LINUX=1'
# Compile the SDL/Solaris version with 'make SOLARIS=1'
# Compile the SDL/FreeBSD version with 'gmake FREEBSD=1'
...
...
@@ -103,7 +102,6 @@ ifeq ($(OS),Windows_NT) # all windows are Windows_NT...
# go for a 32-bit sdl mingw exe by default
MINGW
=
1
SDL
=
1
WINDOWSHELL
=
1
else
# if you on the *nix
...
...
@@ -552,12 +550,6 @@ all: pre-build $(BIN)/$(PNDNAME)
endif
ifdef
MINGW
ifndef
SDL
all
:
pre-build $(BIN)/$(EXENAME) dll
endif
endif
ifdef
SDL
all
:
pre-build $(BIN)/$(EXENAME)
endif
...
...
@@ -637,57 +629,6 @@ endif
$(OBJDIR)
:
-$(
MKDIR
)
$(
OBJDIR
)
ifndef
SDL
ifdef
NOHW
dll
:
else
dll
:
opengl_dll
endif
ifdef
MINGW
all_dll
:
opengl_dll ds3d_dll fmod_dll openal_dll
opengl_dll
:
$(BIN)/r_opengl.dll
$(BIN)/r_opengl.dll
:
$(OBJDIR)/ogl_win.o $(OBJDIR)/r_opengl.o
-$(
MKDIR
)
$(
BIN
)
@
echo
Linking R_OpenGL.dll...
$(
CC
)
--shared
$^
-o
$@
-g
-Wl
,--add-stdcall-alias
-lgdi32
-static-libgcc
ifndef
NOUPX
-$(
UPX
)
$(
UPX_OPTS
)
$@
endif
ds3d_dll
:
$(BIN)/s_ds3d.dll
$(BIN)/s_ds3d.dll
:
$(OBJDIR)/s_ds3d.o
@
echo
Linking S_DS3d.dll...
$(
CC
)
--shared
$^
-o
$@
-g
-Wl
,--add-stdcall-alias
-ldsound
-luuid
fmod_dll
:
$(BIN)/s_fmod.dll
$(BIN)/s_fmod.dll
:
$(OBJDIR)/s_fmod.o
-$(
MKDIR
)
$(
BIN
)
@
echo
Linking S_FMOD.dll...
$(
CC
)
--shared
$^
-o
$@
-g
-Wl
,--add-stdcall-alias
-lfmod
openal_dll
:
$(BIN)/s_openal.dll
$(BIN)/s_openal.dll
:
$(OBJDIR)/s_openal.o
-$(
MKDIR
)
$(
BIN
)
@
echo
Linking S_OpenAL.dll...
$(
CC
)
--shared
$^
-o
$@
-g
-Wl
,--add-stdcall-alias
-lopenal32
else
all_dll
:
fmod_so openal_so
fmod_so
:
$(BIN)/s_fmod.so
$(BIN)/s_fmod.so
:
$(OBJDIR)/s_fmod.o
-$(
MKDIR
)
$(
BIN
)
@
echo
Linking S_FMOD.so...
$(
CC
)
--shared
$^
-o
$@
-g
--nostartfiles
-lm
-lfmod
openal_so
:
$(BIN)/s_openal.so
$(BIN)/s_openal.so
:
$(OBJDIR)/s_openal.o
-$(
MKDIR
)
$(
BIN
)
@
echo
Linking S_OpenAL.so...
$(
CC
)
--shared
$^
-o
$@
-g
--nostartfiles
-lm
-lopenal
endif
else
ifdef
SDL
ifdef
MINGW
$(OBJDIR)/r_opengl.o
:
hardware/r_opengl/r_opengl.c hardware/r_opengl/r_opengl.h
\
...
...
@@ -710,8 +651,6 @@ $(OBJDIR)/r_opengl.o: hardware/r_opengl/r_opengl.c hardware/r_opengl/r_opengl.h
endif
endif
endif
#dependecy made by gcc itself !
$(OBJS)
:
ifndef
DUMMY
...
...
@@ -774,31 +713,6 @@ $(OBJDIR)/SRB2.res: win32/Srb2win.rc win32/afxres.h win32/resource.h
$(
WINDRES
)
-i
$<
-O
rc
$(
WINDRESFLAGS
)
--include-dir
=
win32
-o
$@
-O
coff
ifdef
MINGW
ifndef
SDL
ifndef
NOHW
$(OBJDIR)/r_opengl.o
:
hardware/r_opengl/r_opengl.c hardware/r_opengl/r_opengl.h
\
doomdef.h doomtype.h g_state.h m_swap.h hardware/hw_drv.h screen.h
\
command.h hardware/hw_data.h hardware/hw_defs.h
\
hardware/hw_md2.h hardware/hw_glob.h hardware/hw_main.h hardware/hw_clip.h
\
hardware/hw_md2load.h hardware/hw_md3load.h hardware/hw_model.h hardware/u_list.h
\
am_map.h d_event.h d_player.h p_pspr.h m_fixed.h tables.h info.h d_think.h
\
p_mobj.h doomdata.h d_ticcmd.h r_defs.h hardware/hw_dll.h
$(
CC
)
$(
CFLAGS
)
$(
WFLAGS
)
-D_WINDOWS
-mwindows
-c
$<
-o
$@
$(OBJDIR)/ogl_win.o
:
hardware/r_opengl/ogl_win.c hardware/r_opengl/r_opengl.h
\
doomdef.h doomtype.h g_state.h m_swap.h hardware/hw_drv.h screen.h
\
command.h hardware/hw_data.h hardware/hw_defs.h
\
hardware/hw_md2.h hardware/hw_glob.h hardware/hw_main.h hardware/hw_clip.h
\
hardware/hw_md2load.h hardware/hw_md3load.h hardware/hw_model.h hardware/u_list.h
\
am_map.h d_event.h d_player.h p_pspr.h m_fixed.h tables.h info.h d_think.h
\
p_mobj.h doomdata.h d_ticcmd.h r_defs.h hardware/hw_dll.h
$(
CC
)
$(
CFLAGS
)
$(
WFLAGS
)
-D_WINDOWS
-mwindows
-c
$<
-o
$@
endif
endif
endif
ifdef
SDL
ifdef
MINGW
...
...
This diff is collapsed.
Click to expand it.
src/Makefile.cfg
+
2
−
2
View file @
79bbb3fe
...
...
@@ -420,14 +420,14 @@ ifdef CYGWIN32
BIN
:=
$(
BIN
)
/Cygwin
else
ifdef
MINGW64
INTERFACE
=
win32
#NASMFORMAT=win64
SDL
=
1
OBJDIR
:=
$(
OBJDIR
)
/Mingw64
BIN
:=
$(
BIN
)
/Mingw64
else
ifdef
MINGW
INTERFACE
=
win32
NASMFORMAT
=
win32
SDL
=
1
OBJDIR
:=
$(
OBJDIR
)
/Mingw
BIN
:=
$(
BIN
)
/Mingw
endif
...
...
This diff is collapsed.
Click to expand it.
src/win32/Makefile.cfg
+
1
−
28
View file @
79bbb3fe
...
...
@@ -56,15 +56,8 @@ ifndef GCC44
#OPTS+=-mms-bitfields
endif
ifndef
SDL
OPTS+=-D_WINDOWS
endif
OPTS+=-D__USE_MINGW_ANSI_STDIO=0
ifndef
SDL
LIBS+=-lmingw32
-mwindows -ldinput -ldxguid -lgdi32 -lwinmm
endif
LIBS+=-ladvapi32
-lkernel32 -lmsvcrt -luser32
ifdef
MINGW64
LIBS+=-lws2_32
...
...
@@ -77,11 +70,7 @@ endif
endif
#
name of the exefile
ifdef
SDL
EXENAME?=srb2win.exe
else
EXENAME?=srb2dd.exe
endif
ifdef
SDL
i_system_o+=$(OBJDIR)/SRB2.res
...
...
@@ -89,22 +78,6 @@ ifdef SDL
ifndef
NOHW
OPTS+=-DUSE_WGL_SWAP
endif
else
D_FILES+=$(D_DIR)/fmodex.dll
CFLAGS+=-I../libs/fmodex/inc
LDFLAGS+=-L../libs/fmodex/lib
ifdef
MINGW64
LIBS+=-lfmodex64_vc
else
LIBS+=-lfmodex_vc
endif
i_cdmus_o=$(OBJDIR)/win_cd.o
i_net_o=$(OBJDIR)/win_net.o
i_system_o=$(OBJDIR)/win_sys.o
$(OBJDIR)/SRB2.res
i_sound_o=$(OBJDIR)/win_snd.o
i_main_o=$(OBJDIR)/win_main.o
#i_main_o+=$(OBJDIR)/win_dbg.o
OBJS=$(OBJDIR)/dx_error.o
$(OBJDIR)/fabdxlib.o $(OBJDIR)/win_vid.o $(OBJDIR)/win_dll.o
endif
...
...
@@ -162,4 +135,4 @@ ifdef MINGW64
else
CURL_LDFLAGS+=-L../libs/curl/lib32
-lcurl
endif
#MINGW64
endif
\ No newline at end of file
endif
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment