File: makefile_ldflags

package info (click to toggle)
gemdropx 0.9-9
  • links: PTS, VCS
  • area: main
  • in suites: bookworm
  • size: 2,100 kB
  • sloc: ansic: 1,772; cpp: 198; makefile: 73
file content (34 lines) | stat: -rw-r--r-- 1,029 bytes parent folder | download | duplicates (3)
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
Description: use LDFLAGS, CPPFLAGS and DEB_CFLAGS in Makefile
Author: Christian T. Steigies <cts@debian.org>
Last-Update: 2018-11-25
Index: gemdropx/Makefile
===================================================================
--- gemdropx.orig/Makefile
+++ gemdropx/Makefile
@@ -29,7 +29,7 @@ JOYFLAG=$(JOY)JOYSTICK
 EMBEDDEDFLAG=NOT_EMBEDDED
 
 
-CFLAGS=-Wall $(SDL_CFLAGS) \
+CFLAGS=$(DEB_CFLAGS) $(SDL_CFLAGS) \
 	-DDATA_PREFIX=\"$(DATA_PREFIX)\" -D$(NOSOUNDFLAG) -D$(JOYFLAG) \
 	-D$(EMBEDDEDFLAG) $(XTRA_FLAGS)
 SDL_LIB=$(MIXER) $(SDL_LDFLAGS)
@@ -40,7 +40,7 @@ GFX_LIB=$(SDL_LIB)
 
 all:	gemdropx
 
-install:
+install:	gemdropx
 	-mkdir $(DESTDIR)/usr/share/games/gemdropx/images
 	-$(installdat) data/images/* $(DESTDIR)/usr/share/games/gemdropx/images/
 	-mkdir $(DESTDIR)/usr/share/games/gemdropx/sounds
@@ -64,7 +64,7 @@ clean:
 
 
 gemdropx:	gemdropx.o
-	$(CXX) $(CFLAGS) -o gemdropx gemdropx.o $(GFX_LIB) -lm
+	$(CXX) $(CFLAGS) $(CPPFLAGS) -o gemdropx gemdropx.o $(GFX_LIB) -lm $(LDFLAGS)
 
 
 gemdropx.o:	gemdropx.c