Skip to content

Commit

Permalink
make frontends compatible with tinyCC whenever possible
Browse files Browse the repository at this point in the history
  • Loading branch information
TheFakeMontyOnTheRun committed Feb 9, 2024
1 parent 33a7093 commit b51a13d
Show file tree
Hide file tree
Showing 8 changed files with 7 additions and 24 deletions.
2 changes: 1 addition & 1 deletion ee_frontend/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ include_directories(common/include)
include_directories(menu/include)
include_directories(SoundSystem)

set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -DCLI_BUILD -DINCLUDE_ITEM_DESCRIPTIONS -DEMIT_QUIT_OPTION -DENDIANESS_AWARE -DTILED_BITMAPS -DSDLGL" )
set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -DCLI_BUILD -DINCLUDE_ITEM_DESCRIPTIONS -DEMIT_QUIT_OPTION -DENDIANESS_AWARE -DTILED_BITMAPS -DSDLGL -DSDL_DISABLE_IMMINTRIN_H" )

find_package(SDL2 REQUIRED)
find_package(OpenGL REQUIRED)
Expand Down
2 changes: 1 addition & 1 deletion gl_frontend/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ include_directories(../common/include)
include_directories(base3d/include)
include_directories(menu/include)

set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -DCLI_BUILD -DTILED_BITMAPS -DINCLUDE_ITEM_DESCRIPTIONS -Wall -Wextra -Wno-unused-parameter -Wno-switch -Wno-unused-variable -pedantic -g -DENDIANESS_AWARE -DEMIT_QUIT_OPTION")
set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -DCLI_BUILD -DTILED_BITMAPS -DINCLUDE_ITEM_DESCRIPTIONS -Wall -Wextra -Wno-unused-parameter -Wno-switch -Wno-unused-variable -pedantic -g -DENDIANESS_AWARE -DEMIT_QUIT_OPTION -DSDL_DISABLE_IMMINTRIN_H")

find_package(SDL2 REQUIRED)
find_package(OpenGL REQUIRED)
Expand Down
9 changes: 1 addition & 8 deletions gl_frontend/Makefile.SDL2
Original file line number Diff line number Diff line change
@@ -1,19 +1,12 @@
LDFLAGS=`sdl2-config --libs` -R/usr/pkg/lib -R/usr/X11R7/lib -L/usr/pkg/lib -L/usr/X11R7/lib -lm -lGL

CFLAGS= `sdl2-config --cflags ` \
-O6 -Ofast \
-Ibase3d/include \
-Imenu/include \
-funroll-loops \
-fomit-frame-pointer \
-fno-exceptions \
-ffast-math \
-flto \
--pedantic \
-DCLI_BUILD \
-I../core/include \
-I../common/include \
-DINCLUDE_ITEM_DESCRIPTIONS -DTILED_BITMAPS -Wall -Wextra -Wno-unused-parameter -Wno-switch -Wno-unused-variable -pedantic -DEMIT_QUIT_OPTION -DENDIANESS_AWARE
-DINCLUDE_ITEM_DESCRIPTIONS -DTILED_BITMAPS -Wall -Wextra -Wno-unused-parameter -Wno-switch -Wno-unused-variable -pedantic -DEMIT_QUIT_OPTION -DENDIANESS_AWARE -DSDL_DISABLE_IMMINTRIN_H

MENU_TARGET=game

Expand Down
2 changes: 1 addition & 1 deletion mx_frontend/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ include_directories(base3d/include)
include_directories(common/include)
include_directories(menu/include)

set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -DSDLSW -DCLI_BUILD -DPAGE_FLIP_ANIMATION -DINCLUDE_ITEM_DESCRIPTIONS -Wall -Wextra -pedantic -g -DENDIANESS_AWARE -DEMIT_QUIT_OPTION")
set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -DSDLSW -DCLI_BUILD -DPAGE_FLIP_ANIMATION -DINCLUDE_ITEM_DESCRIPTIONS -Wall -Wextra -pedantic -g -DENDIANESS_AWARE -DEMIT_QUIT_OPTION -DSDL_DISABLE_IMMINTRIN_H")

find_package(SDL2 REQUIRED)

Expand Down
3 changes: 0 additions & 3 deletions mx_frontend/Makefile.SDL1
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,6 @@ LDFLAGS=`sdl-config --libs` -lm
CFLAGS= `sdl-config --cflags ` -g \
-Ibase3d/include \
-Imenu/include \
-fno-exceptions \
-ffast-math \
--pedantic \
-DCLI_BUILD \
-I../core/include -I../common/include -DINCLUDE_ITEM_DESCRIPTIONS -DPAGE_FLIP_ANIMATION -DENDIANESS_AWARE -DEMIT_QUIT_OPTION

Expand Down
9 changes: 1 addition & 8 deletions mx_frontend/Makefile.SDL2
Original file line number Diff line number Diff line change
Expand Up @@ -2,17 +2,10 @@ LDFLAGS=`sdl2-config --libs` -lm


CFLAGS= `sdl2-config --cflags ` \
-O6 -Ofast \
-Ibase3d/include \
-Imenu/include \
-funroll-loops \
-fomit-frame-pointer \
-fno-exceptions \
-ffast-math \
-flto \
--pedantic \
-DCLI_BUILD \
-I../core/include -I../common/include -DINCLUDE_ITEM_DESCRIPTIONS -DPAGE_FLIP_ANIMATION -DENDIANESS_AWARE -DEMIT_QUIT_OPTION
-I../core/include -I../common/include -DINCLUDE_ITEM_DESCRIPTIONS -DPAGE_FLIP_ANIMATION -DENDIANESS_AWARE -DEMIT_QUIT_OPTION -DSDL_DISABLE_IMMINTRIN_H

MENU_TARGET=game

Expand Down
2 changes: 1 addition & 1 deletion my_frontend/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ include_directories(src ../core/src ../core/include include ../common/include
${SDL2_INCLUDE_DIR}
)

set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -DSDLW -DENDIANESS_AWARE -DEMBEDDED_DATA -DRLE_COMPRESSED_MAPS -DSUPPORTS_ROOM_TRANSITION_ANIMATION -DSUPPORTS_HACKING_MINIGAME -DTRACE_OBJECTS_OVER_FLOOR -DCAN_PICK_OBJECT_AT_ANY_DISTANCE -DRES128X128 -Wall -Wextra -pedantic -Wunused-parameter -DXRES_FRAMEBUFFER=256 -DYRES_FRAMEBUFFER=192 -ggdb3 -DEMIT_QUIT_OPTION -DENDIANESS_AWARE")
set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -DSDLW -DENDIANESS_AWARE -DEMBEDDED_DATA -DRLE_COMPRESSED_MAPS -DSUPPORTS_ROOM_TRANSITION_ANIMATION -DSUPPORTS_HACKING_MINIGAME -DTRACE_OBJECTS_OVER_FLOOR -DCAN_PICK_OBJECT_AT_ANY_DISTANCE -DRES128X128 -Wall -Wextra -pedantic -Wunused-parameter -DXRES_FRAMEBUFFER=256 -DYRES_FRAMEBUFFER=192 -ggdb3 -DEMIT_QUIT_OPTION -DENDIANESS_AWARE -DSDL_DISABLE_IMMINTRIN_H")

find_package(SDL2 REQUIRED)

Expand Down
2 changes: 1 addition & 1 deletion mz_frontend/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ include_directories( src ../core/src ../core/include ../common/include Engine3D
${SDL2_INCLUDE_DIR}
)

set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -DSDLSW -DRES128X128 -DSUPPORTS_HACKING_MINIGAME -DTRACE_OBJECTS_OVER_FLOOR -DCAN_PICK_OBJECT_AT_ANY_DISTANCE -DENDIANESS_AWARE")
set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -DSDLSW -DRES128X128 -DSUPPORTS_HACKING_MINIGAME -DTRACE_OBJECTS_OVER_FLOOR -DCAN_PICK_OBJECT_AT_ANY_DISTANCE -DENDIANESS_AWARE -DSDL_DISABLE_IMMINTRIN_H")

find_package(SDL2 REQUIRED)

Expand Down

0 comments on commit b51a13d

Please sign in to comment.