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
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
STJr
SRB2
Commits
b161cb45
Commit
b161cb45
authored
3 years ago
by
candelavla
Browse files
Options
Downloads
Patches
Plain Diff
e
parent
82fb731c
No related branches found
Branches containing commit
No related tags found
Tags containing commit
1 merge request
!1759
Fix typo in linux-only compilation flag
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/Makefile.d/features.mk
+75
-75
75 additions, 75 deletions
src/Makefile.d/features.mk
with
75 additions
and
75 deletions
src/Makefile.d/features.mk
+
75
−
75
View file @
b161cb45
#
# Makefile for feature flags.
#
passthru_opts
+=
\
NONET NO_IPV6 NOHW NOMD5 NOPOSTPROCESSING
\
MOBJCONSISTANCY PACKETDROP ZDEBUG
\
HAVE_MINIUPNPC
\
# build with debugging information
ifdef
DEBUGMODE
PACKETDROP
=
1
opts
+=
-DPARANOIA
-DRANGECHECK
endif
ifndef
NOHW
opts
+=
-DHWRENDER
sources
+=
$(
call List,hardware/Sourcefile
)
endif
ifndef
NOASM
ifndef
NONX86
sources
+=
tmap.nas tmap_mmx.nas
opts
+=
-DUSEASM
endif
endif
ifndef
NOMD5
sources
+=
md5.c
endif
ifndef
NOZLIB
ifndef
NOPNG
ifdef
PNG_PKGCONFIG
$(
eval
$(
call Use_pkg_config,PNG_PKGCONFIG
))
else
PNG_CONFIG
?=
$(
call Prefix,libpng-config
)
$(
eval
$(
call Configure,PNG,
$(
PNG_CONFIG
)
\
$(
if
$(
PNG_STATIC
)
,--static
)
,,--ldflags
))
endif
ifdef
LINUX
opts
+=
-D_LARGFILE64_SOURCE
endif
opts
+=
-DHAVE_PNG
sources
+=
apng.c
endif
endif
ifndef
NONET
ifndef
NOCURL
CURLCONFIG
?=
curl-config
$(
eval
$(
call Configure,CURL,
$(
CURLCONFIG
)))
opts
+=
-DHAVE_CURL
endif
endif
ifdef
HAVE_MINIUPNPC
libs
+=
-lminiupnpc
endif
# (Valgrind is a memory debugger.)
ifdef
VALGRIND
VALGRIND_PKGCONFIG
?=
valgrind
$(
eval
$(
call Use_pkg_config,VALGRIND
))
ZDEBUG
=
1
opts
+=
-DHAVE_VALGRIND
endif
default_packages
:=
\
GME/libgme/LIBGME
\
OPENMPT/libopenmpt/LIBOPENMPT
\
ZLIB/zlib
\
$(
foreach
p,
$(
default_packages
)
,
\
$(
eval
$(
call Check_pkg_config,
$(
p
))))
#
# Makefile for feature flags.
#
passthru_opts
+=
\
NONET
NO_IPV6
NOHW
NOMD5
NOPOSTPROCESSING\
MOBJCONSISTANCY
PACKETDROP
ZDEBUG\
HAVE_MINIUPNPC\
# build with debugging information
ifdef
DEBUGMODE
PACKETDROP
=
1
opts
+=
-DPARANOIA
-DRANGECHECK
endif
ifndef
NOHW
opts
+=
-DHWRENDER
sources
+=
$(
call List,hardware/Sourcefile
)
endif
ifndef
NOASM
ifndef
NONX86
sources
+=
tmap.nas tmap_mmx.nas
opts
+=
-DUSEASM
endif
endif
ifndef
NOMD5
sources
+=
md5.c
endif
ifndef
NOZLIB
ifndef
NOPNG
ifdef
PNG_PKGCONFIG
$(
eval
$(
call Use_pkg_config,PNG_PKGCONFIG
))
else
PNG_CONFIG
?=
$(
call Prefix,libpng-config
)
$(
eval
$(
call Configure,PNG,
$(
PNG_CONFIG
)
\
$(
if
$(
PNG_STATIC
)
,--static
)
,,--ldflags
)
)
endif
ifdef
LINUX
opts
+=
-D_LARG
E
FILE64_SOURCE
endif
opts
+=
-DHAVE_PNG
sources
+=
apng.c
endif
endif
ifndef
NONET
ifndef
NOCURL
CURLCONFIG
?=
curl-config
$(
eval
$(
call Configure,CURL,
$(
CURLCONFIG
)))
opts
+=
-DHAVE_CURL
endif
endif
ifdef
HAVE_MINIUPNPC
libs
+=
-lminiupnpc
endif
# (Valgrind is a memory debugger.)
ifdef
VALGRIND
VALGRIND_PKGCONFIG
?=
valgrind
$(
eval
$(
call Use_pkg_config,VALGRIND
))
ZDEBUG
=
1
opts
+=
-DHAVE_VALGRIND
endif
default_packages
:=
\
GME/libgme/LIBGME\
OPENMPT/libopenmpt/LIBOPENMPT\
ZLIB/zlib\
$(
foreach
p,
$(
default_packages
)
,
\
$(
eval
$(
call Check_pkg_config,
$(
p
))))
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