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
|
Author: Andreas Tille <tille@debian.org>
Last-Update: 2025-11-04
Bug-Debian: https://bugs.debian.org/1119372
Description: Enable building using the default build flags
--- a/Makefile
+++ b/Makefile
@@ -15,8 +15,8 @@
#
# add -DUSE_READLINE To compile in support for the GNU readline library.
-CFLAGS= -g -O2 -DUSE_READLINE
-CC= gcc
+CFLAGS ?= -g -O2 -DUSE_READLINE
+CC ?= gcc
LIBS= -lreadline
ALLFILES= makefile cdgram.y cdlex.l cdecl.c cdecl.1 testset testset++
BINDIR= /usr/bin
@@ -31,7 +31,7 @@ cdecl: c++decl
ln -s c++decl cdecl
c++decl: cdgram.c cdlex.c cdecl.c
- $(CC) $(CFLAGS) -o c++decl cdecl.c $(LIBS) $(LDFLAGS)
+ $(CC) $(CPPFLAGS) $(CFLAGS) -o c++decl cdecl.c $(LIBS) $(LDFLAGS)
rm -f cdecl
cdlex.c: cdlex.l
|