Group :: System/Libraries
RPM: libSDL-sge
Main Changelog Spec Patches Sources Download Gear Bugs and FR Repocop
Patch: 010_examples.diff
Download
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))