Description: add GCC hardening and fix the clean process in upstream place. Author: Joao Eriberto Mota Filho Last-Update: 2015-12-18 Index: gramofile-1.6/Makefile =================================================================== --- gramofile-1.6.orig/Makefile +++ gramofile-1.6/Makefile @@ -15,12 +15,12 @@ OBJS = $(SRCS:.c=.o) SHELL = /bin/sh CC = gcc -LDFLAGS = +LDFLAGS += ########## CHOOSE YOUR ARCHITECTURE: (NOTE: also see bplaysrc/Makefile!) # For Linux (and maybe others), use these: -CFLAGS = -Wall -O2 -funroll-loops -DTURBO_MEDIAN -DTURBO_BUFFER +CFLAGS += -Wall -O2 -funroll-loops -DTURBO_MEDIAN -DTURBO_BUFFER DEPS = $(OBJS) makebplay LIBS = -lncurses -lrfftw -lfftw -lm COPY_A = -a @@ -55,6 +55,8 @@ makebplay: yesnowindow.o boxes.o buttons cp $(COPY_A) bplaysrc/bplay ./bplay_gramo ln -s bplay_gramo brec_gramo +distclean: clean + .PHONY: clean clean: $(MAKE) -C bplaysrc clean Index: gramofile-1.6/bplaysrc/Makefile =================================================================== --- gramofile-1.6.orig/bplaysrc/Makefile +++ gramofile-1.6/bplaysrc/Makefile @@ -7,12 +7,12 @@ OBJS = bplay.o sndfunc.o shmbuf.o ../yes #SRCS = bplay.c sndfunc.o shmbuf.c CC = gcc -LDFLAGS = +LDFLAGS += ########## CHOOSE YOUR ARCHITECTURE: (NOTE: also see ../Makefile!) # For Linux (and maybe others), use these: -CFLAGS = -Wall -O2 -DUSEBUFFLOCK -DLP2CD -DVUMETER # -DDEBUG +CFLAGS += -Wall -O2 -DUSEBUFFLOCK -DLP2CD -DVUMETER # -DDEBUG LIBS = -lncurses # For FreeBSD (and maybe others), use these: