pi build with sdl2

This commit is contained in:
Dagen Brock 2018-08-23 18:35:41 +00:00
parent 5b87cd5c37
commit 27a0d34dff
2 changed files with 17 additions and 1 deletions

View File

@ -33,7 +33,7 @@ specials: 8inst_s 16inst_s 8size 16size 8inst_c 16inst_c size_c size_s
specials_clean:
rm -f 8inst_s 16inst_s 8size 16size 8inst_c 16inst_c size_c size_s
# Linux/OSX SDL builds
# Linux/OSX/RPi SDL builds
gsplus: $(OBJECTS) compile_time.o
$(LD) $(CCOPTS) $(LDOPTS) $(OBJECTS) compile_time.o $(LDFLAGS) -o $(NAME)$(SUFFIX) $(EXTRA_LIBS)
echo $(OBJECTS)

16
src/vars_rpilinux_sdl2 Normal file
View File

@ -0,0 +1,16 @@
TARGET = gsplus
NAME = gsplus
PERL = perl
CC = gcc
LD = g++
#LD = gcc
AS = cc
OBJECTS = $(OBJECTS1) $(TFEOBJ) $(ATOBJ) $(PCAPOBJ) $(FSTOBJ) sdl2_driver.o sdl2snd_driver.o
CCOPTS = -O2 -Wall -fomit-frame-pointer -std=gnu99 -march=armv6
OPTS = -DGSPLUS_LITTLE_ENDIAN -DHAVE_TFE -DHAVE_ATBRIDGE -DHAVE_SDL -I/usr/include/SDL2 -I/usr/include/freetype2
EXTRA_LIBS = -ldl -lfreetype -lSDL2 -lSDL2_image
XOPTS = -I/usr/X11R6/include