on de.billardgl.Billardgl help sign in
flathub/patches/05_Makefile.patch
33 lines 996 B history raw
1Author: Thierry Reding <thierry@doppeltgemoppelt.de>
2Description: Fix makefile to generate lowercase name for executable.
3 Enable debian/rules to pass additional CFLAGS.
4Index: billard-gl-1.75/src/Makefile
5===================================================================
6--- billard-gl-1.75.orig/src/Makefile 2013-06-19 18:29:12.000000000 -0400
7+++ billard-gl-1.75/src/Makefile 2013-06-19 18:29:45.000000000 -0400
8@@ -7,12 +7,12 @@
9
10 CC = gcc
11 CXX = g++
12-CFLAGS = -pipe -Wall -W -DNO_DEBUG -g
13-CXXFLAGS= -pipe -Wall -W -DNO_DEBUG -g
14+CFLAGS := -pipe -Wall -W -DNO_DEBUG $(CFLAGS)
15+CXXFLAGS:= -pipe -Wall -W -DNO_DEBUG $(CPPFLAGS)
16 INCPATH = -I/usr/X11R6/include
17 LINK = g++
18-LFLAGS =
19-LIBS = -L/usr/X11R6/lib -lGL -lGLU -lglut -lXmu -lXext -lX11 -lm -lXi
20+LFLAGS = $(LDFLAGS)
21+LIBS = -lGL -lGLU -lglut
23 ## -lqgl -lGLU
25@@ -109,7 +109,7 @@
26 SRCMOC =
27 OBJMOC =
28 DIST =
29-TARGET = BillardGL
30+TARGET = billard-gl
31 INTERFACE_DECL_PATH = .
33 ####### Implicit rules