freebsd-ports/audio/dap/files/patch-ad
Chris Piazza d07c240d19 Fix the use of BIGENDIAN where it should not have been
PR:		11935

Respect CC/CXX/CXXFLAGS/CFLAGS
1999-10-02 16:37:38 +00:00

31 lines
788 B
Plaintext

--- spkit/spkit/Makefile.linux.orig Sun Jan 10 04:41:18 1999
+++ spkit/spkit/Makefile.linux Sat Oct 2 09:23:46 1999
@@ -1,5 +1,5 @@
-CC = gcc
-CXX = g++
+CC ?= gcc
+CXX ?= g++
FORMS = ../../../xforms/FORMS
SOUND = ../../sound
TOOLTIP = ../../tooltips
@@ -8,9 +8,9 @@
HOMEDIR = $(HOME)
X11DIR = /usr/X11R6
INCDIR = -I. -I.. -I../.. -I$(SOUND) -I$(FORMS) -I$(MAINDIR) -I$(TOOLTIP) -I$(X11DIR)/include
-CCFLAGS = $(INCDIR) $(DEBUG) $(OPTIM) -DLINUX -DBIGENDIAN -DUSINGGCC -Wall
+CCFLAGS = $(INCDIR) $(OPTIM) -DLINUX -DUSINGGCC -Wall
DEBUG = -g3
-OPTIM = -O2
+OPTIM = ${CXXFLAGS}
.c.o:
$(CC) $(CCFLAGS) -c $*.c -o $*.o
@@ -65,6 +65,7 @@
libdsp.a: $(OBJS)
rm -f $(LIBNAME)
ar ruv $(LIBNAME) $(OBJS)
+ ranlib $(LIBNAME)
clean:
rm -f $(OBJS)