Sisyphus repository
Last update: 1 october 2023 | SRPMs: 18631 | Visits: 37906166
en ru br
ALT Linux repos
S:030809-alt1

Group :: System/Libraries
RPM: libSDL-sge

 Main   Changelog   Spec   Patches   Sources   Download   Gear   Bugs and FR  Repocop 

Patch: 010_examples.diff
Download


--- a/examples/Makefile
+++ b/examples/Makefile
@@ -1,24 +1,10 @@
 # Makefile for the SGE library examples
 
-include ../Makefile.conf
-
-CFLAGS += $(SGE_CFLAGS) -I./../
-LIBS =-L./../ -lSGE $(SGE_LIBS)
-
-TARGETS = fire bitmapfont collision blib rotate speedtest sprite sprite2 poly
-C_TARGETS =
-
-ifneq ($(USE_FT),n)
-  TARGETS += basics blitting input alpha inputdeluxe
-  ifeq ($(C_COMP),y)
-    C_TARGETS = basics_c
-  endif
-endif
-
-ifeq ($(USE_IMG),y)
-  TARGETS += sfont
-endif
+CFLAGS = `sdl-config --cflags`
+LIBS = `sdl-config --libs` -lSGE
 
+TARGETS = fire bitmapfont collision blib rotate speedtest sprite sprite2 poly basics blitting input alpha inputdeluxe sfont
+C_TARGETS = basics_c
 
 OBJECTS = $(addsuffix .o, $(TARGETS))
 C_OBJECTS = $(addsuffix .o, $(C_TARGETS))
 
design & coding: Vladimir Lettiev aka crux © 2004-2005, Andrew Avramenko aka liks © 2007-2008
current maintainer: Michael Shigorin