1- # Copyright � 2012-2017 , Nick "Kalamatee" Andrews.
1+ # Copyright � 2012-2025 , Nick "Kalamatee" Andrews.
22# $Id$
33
44#
@@ -16,39 +16,50 @@ GRAPHITE_CFLAGS := \
1616 -ftree-loop-linear $(CFLAGS_LOOP_STRIP_MINE) $(CFLAGS_LOOP_BLOCK)
1717
1818NOWARN_FLAGS := $(NOWARN_ERROR) $(NOWARN_MISLEADING_INDENTATION) $(NOWARN_MAYBE_UNINITIALIZED) $(NOWARN_NONNULL_COMPARE) $(NOWARN_ENUM_COMPARE)
19+ NOWARN_CXXFLAGS := $(NOWARN_CLASS_MEMACCESS)
1920
20- USER_CFLAGS := $(NOWARN_FLAGS)
21+ USER_INCLUDES := -I$(AROS_CONTRIB_INCLUDES)
22+ USER_CFLAGS := $(NOWARN_FLAGS) $(CPPFLAGS)
2123USER_CXXFLAGS := \
22- $(CFLAGS_FAST_MATH) -fomit-frame-pointer -fexceptions $(NOWARN_FLAGS)
23- USER_LDFLAGS := -static-libstdc++
24+ $(CXXFLAGS_GNU11) $( CFLAGS_FAST_MATH) -fomit-frame-pointer $(CFLAG_EXCEPTIONS) $(NOWARN_FLAGS) $(NOWARN_CXXFLAGS) $(CPPFLAGS )
25+ USER_LDFLAGS := -L$(AROS_CONTRIB_LIB) - static-libstdc++
2426
25- #MM- aros-doom3-libs : workbench-libs-jpeg-linklib contrib-openal-linklib development-libogg development-libvorbis
26- #MM- aros-doom3-libs : contrib-curl contrib-sdl development-SDL_gfx -quick
27+ #MM- aros-doom3-libs : workbench-libs-jpeg-linklib contrib-openal development-libogg development-libvorbis
28+ #MM- aros-doom3-libs : contrib-curl contrib-sdl2 development-SDL2_gfx -quick
2729
2830#MM aros-doom3 : aros-doom3-libs iconset-Gorilla-contrib-icons-extras-games-adoom3 iconset-Gorilla-contrib-games-doom3game
2931
30- DOOM3_OPTIONS := -DCORE=ON -DDEDICATED=ON -DBASE=ON -DSDL2=OFF \
32+ DOOM3_OPTIONS := \
33+ -DCORE=ON \
34+ -DDEDICATED=ON \
35+ -DBASE=ON \
36+ -DCMAKE_CXX_STANDARD=11 \
3137 -DCMAKE_INSTALL_BINDIR= \
3238 -DCMAKE_INSTALL_LIBDIR= \
33- -DZLIB_LIBRARY=$(AROS_DEVELOPER)/lib/libz.a \
34- -DZLIB_INCLUDE_DIR=$(AROS_DEVELOPER)/include \
35- -DJPEG_LIBRARY=$(AROS_DEVELOPER)/lib/libjpeg.a \
36- -DJPEG_INCLUDE_DIR=$(AROS_DEVELOPER)/include \
37- -DOPENAL_INCLUDE_DIR=$(AROS_DEVELOPER)/include \
38- -DOPENAL_LIBRARY="$(AROS_DEVELOPER)/lib/libopenal.a;$(AROS_DEVELOPER)/lib/libpthread.a;" \
39- -DOGG_LIBRARY=$(AROS_DEVELOPER)/lib/libogg.a \
40- -DOGG_INCLUDE_DIR=$(AROS_DEVELOPER)/include \
41- -DVORBIS_LIBRARY=$(AROS_DEVELOPER)/lib/libvorbis.a \
42- -DVORBIS_INCLUDE_DIR=$(AROS_DEVELOPER)/include \
43- -DVORBISFILE_LIBRARY=$(AROS_DEVELOPER)/lib/libvorbisfile.a \
44- -DVORBISFILE_INCLUDE_DIR=$(AROS_DEVELOPER)/include \
45- -DCURL_LIBRARY="$(AROS_DEVELOPER)/lib/libcurl.a;$(AROS_DEVELOPER)/lib/libiconv.a;$(AROS_DEVELOPER)/lib/libz.a;$(AROS_DEVELOPER)/lib/libssl.a;$(AROS_DEVELOPER)/lib/libcrypto.a;" \
46- -DCURL_INCLUDE_DIR=$(AROS_DEVELOPER)/include \
47- -DSDL_LIBRARY=$(AROS_DEVELOPER)/lib/libSDL.a \
48- -DSDL_INCLUDE_DIR=$(AROS_DEVELOPER)/include/SDL
49-
50- %build_with_cmake mmake=aros-doom3 \
51- prefix="$(DOOM3_EXEDIR)" \
52- extraoptions="$(DOOM3_OPTIONS)"
39+ -DOPENAL_INCLUDE_DIR=$(AROS_INCLUDES) \
40+ -DOPENAL_LIBRARY="$(AROS_LIB)/libopenal.a" \
41+ -DCURL_LIBRARY="$(AROS_LIB)/libcurl.a;$(AROS_CONTRIB_LIB)/libiconv.a;$(AROS_LIB)/libz.a;$(AROS_LIB)/libssl.a;$(AROS_LIB)/libcrypto.a;$(AROS_LIB)/libzstd.a" \
42+ -DCURL_INCLUDE_DIR=$(AROS_INCLUDES) \
43+ -DSDL2_LIBRARY=$(AROS_LIB)/libSDL2.a \
44+ -DSDL2_INCLUDE_DIR=$(AROS_INCLUDES)/SDL2
45+
46+ #DOOM3_OPTIONS += \
47+ # -DCMAKE_VERBOSE_MAKEFILE=ON
48+
49+ # CMAKE_CPP_FLAGS
50+ # JPEG_INCLUDE_DIR
51+ # JPEG_LIBRARY
52+ # OGG_INCLUDE_DIR
53+ # OGG_LIBRARY
54+ # VORBISFILE_INCLUDE_DIR
55+ # VORBISFILE_LIBRARY
56+ # VORBIS_INCLUDE_DIR
57+ # VORBIS_LIBRARY
58+ # ZLIB_INCLUDE_DIR
59+ # ZLIB_LIBRARY
60+
61+ %build_with_cmake mmake=aros-doom3 \
62+ prefix="$(DOOM3_EXEDIR)" \
63+ extraoptions="$(DOOM3_OPTIONS)" usecppflags=no
5364
5465%common
0 commit comments