forked from benob/rs97_st-sdl
-
Notifications
You must be signed in to change notification settings - Fork 1
/
config_miyoo.mk
26 lines (21 loc) · 656 Bytes
/
config_miyoo.mk
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
# st version
VERSION = 0.3
# Customize below to fit your system
# paths
CHAINPREFIX= /opt/bittboy-toolchain/
CROSS_COMPILE=$(CHAINPREFIX)/bin/arm-miyoo-linux-musleabi-
# includes and libs
INCS = -I.
LIBS = -lc -lutil
# flags
CPPFLAGS = -DVERSION=\"${VERSION}\"
CFLAGS += -g -Wall ${INCS} ${CPPFLAGS} -DMIYOO -fPIC
INCLUDES = -Iinclude $(SDL_CFLAGS)
LDFLAGS = -g -lSDL -lasound
# compiler and linker
CC = $(CROSS_COMPILE)gcc
CXX = $(CROSS_COMPILE)g++
STRIP = $(CROSS_COMPILE)strip
SYSROOT := $(shell $(CC) --print-sysroot)
SDL_CFLAGS := $(shell $(SYSROOT)/usr/bin/sdl-config --cflags)
SDL_LIBS := $(shell $(SYSROOT)/usr/bin/sdl-config --libs)