Commit 74d3e75e authored by Julien David's avatar Julien David
Browse files

image ubuntu

parent 5f23e02b
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
image: gcc
image: ubuntu

stages:
  - build
@@ -7,7 +7,7 @@ stages:
job:build:
  stage: build
  script:
    - apt-get install --yes make
    - apt-get install --yes make gcc libsdl2-2.0-0 libsdl2-dev

job:test:unit:
  before_script:
+3 −3
Original line number Diff line number Diff line
CFLAGS = `sdl2-config --libs --cflags` -ggdb3 -O0 --std=c99 -Wall -lm
CFLAGS = -ggdb3 -O0 --std=c99 -Wall -lm `sdl2-config --libs --cflags` -lSDL2_image 

FIGURES = src/figures/point.o 

all: main.o src/liste_figure.o src/couleur.o src/gestion_evenement.o $(FIGURES)
	gcc main.o src/liste_figure.o src/couleur.o src/gestion_evenement.o $(FIGURES) -o projet $(CFLAGS) -lSDL2_image 
	gcc main.o src/liste_figure.o src/couleur.o src/gestion_evenement.o $(FIGURES) -o projet $(CFLAGS)

test_couleur: tests/test_couleur.o src/couleur.o
	gcc tests/test_couleur.o src/couleur.o -o tests/test_couleur