summaryrefslogtreecommitdiff
blob: 4c35dd3eb2ff3e6665fa4cf5a1cb9bd02a15a16d (plain)
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
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
--- a/bplaysrc/Makefile
+++ b/bplaysrc/Makefile
@@ -6,13 +6,12 @@
         ../clrscr.o ../secshms.o
 #SRCS = bplay.c sndfunc.o shmbuf.c
 
-CC = gcc
-LDFLAGS = 
+CC ?= gcc
 
 ########## CHOOSE YOUR ARCHITECTURE:    (NOTE: also see ../Makefile!)
 
 # For Linux (and maybe others), use these:
-CFLAGS = -Wall -O2 -DUSEBUFFLOCK -DLP2CD -DVUMETER # -DDEBUG
+CFLAGS += -Wall -DUSEBUFFLOCK -DLP2CD -DVUMETER
 LIBS = -lncurses
 
 # For FreeBSD (and maybe others), use these:
--- a/gramofile.c
+++ b/gramofile.c
@@ -11,6 +11,7 @@
 #include "splashscr.h"
 #include <signal.h>
 #include <unistd.h>
+#include <stdlib.h>
 #include <string.h>
 #ifndef OLD_CURSES
 #include <ncurses.h>
--- a/Makefile
+++ b/Makefile
@@ -14,13 +14,12 @@
 OBJS = $(SRCS:.c=.o)
 SHELL = /bin/sh
 
-CC = gcc
-LDFLAGS = 
+CC ?= gcc
 
 ########## 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 -DTURBO_MEDIAN -DTURBO_BUFFER
 DEPS = $(OBJS) makebplay
 LIBS = -lncurses -lrfftw -lfftw -lm
 COPY_A = -a
--- a/signpr_cmf3.c
+++ b/signpr_cmf3.c
@@ -34,6 +34,7 @@
 #include <stdlib.h>
 #include <stdio.h>
 #include <math.h>
+#include <string.h>
 #ifndef OLD_CURSES
 #include <ncurses.h>
 #else