mirror of
https://github.com/tuxbox-fork-migrations/recycled-ni-neutrino.git
synced 2025-08-26 15:02:50 +02:00
Set _FILE_OFFSET_BITS=64 in Makefiles for consistent 64-bit off_t definition
This removes -Wodr warnings when compiling CFile and several other classes,
ensuring off_t is consistently defined as a 64-bit type across all
translation units.
Observed while compiling with GCC 13.
Signed-off-by: Thilo Graf <dbt@novatux.de>
Origin commit data
------------------
Branch: ni/coolstream
Commit: decda9db11
Author: GetAway <get-away@t-online.de>
Date: 2024-11-10 (Sun, 10 Nov 2024)
------------------
This commit was generated by Migit
136 lines
2.4 KiB
Makefile
136 lines
2.4 KiB
Makefile
AM_CXXFLAGS = -fno-rtti -fno-exceptions -D__STDC_FORMAT_MACROS -D__STDC_LIMIT_MACROS
|
|
AM_CPPFLAGS = -D_FILE_OFFSET_BITS=64
|
|
|
|
SUBDIRS = pictureviewer audiodec
|
|
|
|
if ENABLE_GRAPHLCD
|
|
SUBDIRS += glcd
|
|
endif
|
|
|
|
AM_CPPFLAGS += \
|
|
-I$(top_builddir) \
|
|
-I$(top_srcdir) \
|
|
-I$(top_srcdir)/src \
|
|
-I$(top_srcdir)/src/zapit/include \
|
|
-I$(top_srcdir)/lib \
|
|
-I$(top_srcdir)/lib/libnet \
|
|
-I$(top_srcdir)/lib/libconfigfile \
|
|
-I$(top_srcdir)/lib/connection \
|
|
-I$(top_srcdir)/lib/libeventserver \
|
|
@SIGC_CFLAGS@ \
|
|
@FREETYPE_CFLAGS@ \
|
|
@AVFORMAT_CFLAGS@ \
|
|
@LUA_CFLAGS@ \
|
|
@HWLIB_CFLAGS@
|
|
|
|
noinst_LIBRARIES = libneutrino_driver.a libneutrino_driver_netfile.a
|
|
|
|
libneutrino_driver_a_SOURCES = \
|
|
abstime.c \
|
|
audiofile.cpp \
|
|
audiometadata.cpp \
|
|
audioplay.cpp \
|
|
colorgradient.cpp \
|
|
fade.cpp \
|
|
fb_accel.cpp \
|
|
fb_window.cpp \
|
|
fb_generic.cpp \
|
|
file.cpp \
|
|
fontrenderer.cpp \
|
|
genpsi.cpp \
|
|
moviecut.cpp \
|
|
movieinfo.cpp \
|
|
neutrinofonts.cpp \
|
|
radiotext.cpp \
|
|
radiotools.cpp \
|
|
rcinput.cpp \
|
|
record.cpp \
|
|
scanepg.cpp \
|
|
screen_max.cpp \
|
|
screenshot.cpp \
|
|
shutdown_count.cpp \
|
|
streamts.cpp \
|
|
volume.cpp
|
|
|
|
if ENABLE_LCD
|
|
AM_CPPFLAGS += -I$(top_srcdir)/lib/liblcddisplay
|
|
endif
|
|
|
|
if ENABLE_LCD4LINUX
|
|
libneutrino_driver_a_SOURCES += \
|
|
lcd4l.cpp
|
|
endif
|
|
|
|
# slide driver
|
|
if BOXTYPE_ARMBOX
|
|
libneutrino_driver_a_SOURCES += \
|
|
slide.cpp
|
|
endif
|
|
if BOXTYPE_MIPSBOX
|
|
libneutrino_driver_a_SOURCES += \
|
|
slide.cpp
|
|
endif
|
|
|
|
# different framebuffer drivers
|
|
if BOXTYPE_GENERIC
|
|
libneutrino_driver_a_SOURCES += \
|
|
fb_accel_glfb.cpp
|
|
endif
|
|
|
|
if BOXTYPE_CST
|
|
libneutrino_driver_a_SOURCES += \
|
|
fb_accel_cs_hdx.cpp
|
|
if BOXMODEL_CST_HD2
|
|
libneutrino_driver_a_SOURCES += \
|
|
fb_accel_cs_hd2.cpp
|
|
else
|
|
libneutrino_driver_a_SOURCES += \
|
|
fb_accel_cs_hd1.cpp
|
|
endif
|
|
|
|
endif
|
|
if BOXTYPE_ARMBOX
|
|
if ENABLE_LCD
|
|
libneutrino_driver_a_SOURCES += \
|
|
fb_accel_arm.cpp
|
|
else
|
|
libneutrino_driver_a_SOURCES += \
|
|
fb_accel_arm.cpp
|
|
endif
|
|
endif
|
|
|
|
if BOXTYPE_MIPSBOX
|
|
libneutrino_driver_a_SOURCES += \
|
|
fb_accel_mips.cpp
|
|
endif
|
|
# end framebuffer drivers
|
|
|
|
# different display drivers
|
|
if BOXTYPE_GENERIC
|
|
libneutrino_driver_a_SOURCES += \
|
|
simple_display.cpp
|
|
endif
|
|
|
|
if BOXTYPE_CST
|
|
libneutrino_driver_a_SOURCES += \
|
|
vfd.cpp
|
|
endif
|
|
|
|
if BOXTYPE_ARMBOX
|
|
if ENABLE_LCD
|
|
libneutrino_driver_a_SOURCES += \
|
|
lcdd.cpp
|
|
else
|
|
libneutrino_driver_a_SOURCES += \
|
|
simple_display.cpp
|
|
endif
|
|
endif
|
|
|
|
if BOXTYPE_MIPSBOX
|
|
libneutrino_driver_a_SOURCES += \
|
|
simple_display.cpp
|
|
endif
|
|
# end display drivers
|
|
|
|
libneutrino_driver_netfile_a_SOURCES = netfile.cpp
|