Sophie

Sophie

distrib > Mageia > cauldron > i586 > media > core-release-src > by-pkgid > 7f4fdea66d97c2281d783aac44ad0285 > files > 3

moleinvasion-0.4-8.mga7.src.rpm

diff -up ./src/Makefile.0000 ./src/Makefile
--- ./src/Makefile.0000	2008-07-19 18:11:04.000000000 +0000
+++ ./src/Makefile	2013-06-08 12:18:42.539032578 +0000
@@ -1,8 +1,11 @@
 #DESTDIR=/home/guigui/install
 
-CFLAGS  = -g -Wall $$(sdl-config --cflags) -DHAVE_OPENGL #--coverage #-fprofile-use #-pg
-LDFLAGS = -O2 #--coverage #-fprofile-use #-pg
-LDLIBS  = $$(sdl-config --libs) -lSDL_image -lSDL_mixer -lSDL_ttf
+SDLFLAGS = $(shell sdl-config --cflags)
+SDLLIBS = $(shell sdl-config --libs)
+
+CFLAGS  += $(SDLFLAGS) -DHAVE_OPENGL
+LDFLAGS +=
+LDLIBS  = $(SDLLIBS) -lSDL_image -lSDL_mixer -lSDL_ttf -ldl
 
 OBJS =  graphics.o font.o list.o sprite.o events.o editor_texts.o \
 	Splayer.o Sother.o background.o video.o tool.o \
@@ -66,8 +69,8 @@ $(WINEDW): $(OBJS) $(EDWOB).o molerc.o
 	$(CC) $(LDFLAGS) $+ $(LOADLIBES) $(WINLIBS) -o $@
 
 $(LINEXE): $(OBJS) $(EXEOB).o
-	$(CC) $(LDFLAGS) $+ $(LOADLIBES) $(LINLIBS) -o $@
+	$(CC) $+ $(LOADLIBES) $(LDFLAGS) $(LINLIBS) -o $@
 $(LINEDT): $(OBJS) $(EDTOB).o
-	$(CC) $(LDFLAGS) $+ $(LOADLIBES) $(LINLIBS) -o $@
+	$(CC) $+ $(LOADLIBES) $(LDFLAGS) $(LINLIBS) -o $@
 $(LINEDW): $(OBJS) $(EDWOB).o
-	$(CC) $(LDFLAGS) $+ $(LOADLIBES) $(LINLIBS) -o $@
+	$(CC) $+ $(LOADLIBES) $(LDFLAGS) $(LINLIBS) -o $@