File: Makefile.conf

package info (click to toggle)
libsdl-sge 020904-5
  • links: PTS
  • area: main
  • in suites: sarge
  • size: 928 kB
  • ctags: 775
  • sloc: cpp: 8,049; makefile: 163; ansic: 44
file content (41 lines) | stat: -rw-r--r-- 793 bytes parent folder | download
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
# Configure Makefile for the SGE library

# Comment/uncomment the following line to disable/enable build options
# (See README for more info)
C_ONLY = y
#NOTTF = y
USE_IMG = y
#NO_CLASSES = y
#QUIET = y


# Compilers (C and C++)
CC=gcc
CXX=g++


# Where should SGE be installed?
PREFIX =$(shell sdl-config --prefix)


# Flags passed to the compiler
CFLAGS =-Wall -ffast-math $(CUSTOM_CFLAGS)
SGE_CFLAGS =$(shell sdl-config --cflags)
# Uncomment to make some more optimizations
#CFLAGS =-Wall -O9 -ffast-math -march=i686


# Libs config
# We use sdl-config & freetype-config
SGE_LIBS =$(shell sdl-config --libs) #-lstdc++


ifneq ($(NOTTF),y)
  SGE_LIBS +=$(shell freetype-config --libs)
  FT_CFLAGS =$(shell freetype-config --cflags)
endif

ifeq ($(USE_IMG),y)
  SGE_LIBS +=-lSDL_image
endif