sdl2 ubuntu build

This commit is contained in:
Dagen Brock 2016-03-03 15:25:24 -06:00
parent df76d14f9f
commit 8e9c568db5
3 changed files with 38 additions and 5 deletions

View File

@ -22,6 +22,17 @@ build-ubuntu-sdl:
- ln -s vars_x86linux_sdl vars - ln -s vars_x86linux_sdl vars
- make clean ; make - make clean ; make
build-ubuntu-sdl2:
tags:
- ubuntu
stage: build
script:
- sudo apt-get update -qq && apt-get install -y -qq g++ libpcap0.8-dev libx11-dev libsdl2-dev libfreetype6-dev
- cd src
- ln -s vars_x86linux_sdl2 vars
- make clean ; make
build-osx: build-osx:
tags: tags:

View File

@ -1,18 +1,19 @@
TARGET = gsportx TARGET = gsportx
OBJECTS = $(OBJECTS1) $(TFEOBJ) $(ATOBJ) $(PCAPOBJ) xdriver.o sdlsnd_driver2.o NAME = gsportx
PERL = perl
CC = gcc CC = gcc
LD = g++
AS = cc
OBJECTS = $(OBJECTS1) $(TFEOBJ) $(ATOBJ) $(PCAPOBJ) xdriver.o sdlsnd_driver2.o
CCOPTS = -O2 -Wall -fomit-frame-pointer -std=gnu99 -DHAVE_SDL -DHAVE_TFE -DHAVE_ATBRIDGE -DTOGGLE_STATUS -I/usr/include/SDL2 -I/usr/include/freetype2 CCOPTS = -O2 -Wall -fomit-frame-pointer -std=gnu99 -DHAVE_SDL -DHAVE_TFE -DHAVE_ATBRIDGE -DTOGGLE_STATUS -I/usr/include/SDL2 -I/usr/include/freetype2
CPPOPTS = -O2 -DHAVE_TFE -DHAVE_SDL -DTOGGLE_STATUS -DHAVE_ATBRIDGE -I/usr/include/freetype2 -I/usr/include/SDL2 CPPOPTS = -O2 -DHAVE_TFE -DHAVE_SDL -DTOGGLE_STATUS -DHAVE_ATBRIDGE -I/usr/include/freetype2 -I/usr/include/SDL2
OPTS = -DGSPORT_LITTLE_ENDIAN OPTS = -DGSPORT_LITTLE_ENDIAN
SUFFIX = SUFFIX =
NAME = gsportx
LDFLAGS = LDFLAGS =
LDOPTS = LDOPTS =
LD = g++
EXTRA_LIBS = -lXext -lfreetype -lSDL2 -ldl EXTRA_LIBS = -lXext -lfreetype -lSDL2 -ldl
EXTRA_SPECIALS = EXTRA_SPECIALS =
AS = cc
PERL = perl
XOPTS = -I/usr/X11R6/include XOPTS = -I/usr/X11R6/include

21
src/vars_x86linux_sdl2 Normal file
View File

@ -0,0 +1,21 @@
TARGET = gsplus
NAME = gsplus
PERL = perl
CC = gcc
LD = gcc
AS = cc
OBJECTS = $(OBJECTS1) $(TFEOBJ) $(ATOBJ) $(PCAPOBJ) osxdriver.o sdlsnd_driver2.o
# C Compiler Options
CCOPTS = -O2 -Wall -fomit-frame-pointer -std=gnu99 -DHAVE_SDL -DHAVE_TFE -DHAVE_ATBRIDGE -DTOGGLE_STATUS -I/usr/include/SDL2 -I/usr/include/freetype2
# C++ Compiler Options
CPPOPTS = -O2 -DHAVE_TFE -DHAVE_SDL -DTOGGLE_STATUS -DHAVE_ATBRIDGE -I/usr/include/freetype2 -I/usr/include/SDL2
EXTRA_LIBS = -lfreetype -lSDL2 -ldl -lm -lstdc++
OPTS = -DGSPORT_LITTLE_ENDIAN
SUFFIX =
LDFLAGS =
LDOPTS = -I.
EXTRA_SPECIALS =