forked from timoinutilis/inga-sdl
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathMakefile.mos
executable file
·52 lines (42 loc) · 1.47 KB
/
Makefile.mos
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
C_FLAGS_MOS_GCC_RELEASE=-O3 -noixemul -DNDEBUG -DMOS_SDL2_WORKAROUND
C_FLAGS_MOS_GCC_DEBUG=-O0 -g -noixemul -DMOS_SDL2_WORKAROUND
LD_FLAGS_MOS_GCC=-Lgg:usr/local/lib -lSDL2 -lSDL2_mixer -lSDL2_ttf -lGL -lm
INCLUDES_MOS_GCC=-Igg:/usr/local/include
CC_GCC=ppc-morphos-gcc-11
all: IngaSdlRelease_mos IngaSdlDebug_mos Ermentrud_mos
SOURCES=sources/cJSON.c\
sources/Cursor.c\
sources/Dialog.c\
sources/Element.c\
sources/Fader.c\
sources/Font.c\
sources/Game.c\
sources/GameConfig.c\
sources/GameState.c\
sources/Global.c\
sources/Image.c\
sources/ImageSet.c\
sources/InventoryBar.c\
sources/Location.c\
sources/Menu.c\
sources/NavigationMap.c\
sources/Script.c\
sources/Sequence.c\
sources/SlotList.c\
sources/SoundManager.c\
sources/Thread.c\
sources/Utils.c\
sources/main.c
#---Ermentrud---#
Ermentrud_mos: ${SOURCES}
$(CC_GCC) -o ${@} ${INCLUDES_MOS_GCC} $(^) ${C_FLAGS_MOS_GCC_RELEASE} ${LD_FLAGS_MOS_GCC}
#--- IngaSdl Release ---#
IngaSdlRelease_mos: ${SOURCES}
$(CC_GCC) -o ${@} ${INCLUDES_MOS_GCC} $(^) ${C_FLAGS_MOS_GCC_RELEASE} ${LD_FLAGS_MOS_GCC}
#--- IngaSdl Debug ---#
IngaSdlDebug_mos: ${SOURCES}
$(CC_GCC) -o ${@} ${INCLUDES_MOS_GCC} $(^) ${C_FLAGS_MOS_GCC_DEBUG} ${LD_FLAGS_MOS_GCC}
#--- clean ---#
.PHONY: clean
clean:
delete IngaSdlRelease_mos IngaSdlDebug_mos Ermentrud_mos