1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-20 04:02:27 +00:00
freebsd-ports/audio/rat30/files/patch-Makefile
2002-10-20 21:06:33 +00:00

22 lines
802 B
Plaintext

--- Makefile.orig Tue Sep 14 03:39:00 1999
+++ Makefile Sun Oct 20 14:06:27 2002
@@ -10,8 +10,8 @@
# -DDEBUG_RTP -DREPEAT
DEFS += -D$(OSTYPE) -D$(OSTYPE)_$(OSMVER)
-CC = gcc
-CFLAGS = -Wall -Werror -Wno-implicit-int $(INCS) $(DEFS) -g -O -fsigned-char
+CC ?= cc
+CFLAGS += -Wall -Wno-implicit-int $(INCS) $(DEFS) -g -fsigned-char
LDFLAGS=
LDLIBS= $(LDLIBS) -lm
RANLIB = ranlib
@@ -82,6 +82,7 @@
$(BINDIR)/rat-$(OSTYPE)-$(OSVERS): $(OBJS) $(GSMOBJS) $(CRYPTOBJS) $(RATOBJS)
rm -f $(BINDIR)/rat-$(OSTYPE)-$(OSVERS)
$(CC) $(RATOBJS) $(OBJS) $(GSMOBJS) $(CRYPTOBJS) $(LDLIBS) $(LDFLAGS) -o $(BINDIR)/rat-$(OSTYPE)-$(OSVERS)
+ cp $(BINDIR)/rat-$(OSTYPE)-$(OSVERS) bin/rat
$(OBJDIR)/%.o: $(SRCDIR)/%.c
$(CC) $(CFLAGS) $(GSMFLAGS) $(CRYPTFLAGS) -c $(SRCDIR)/$*.c -o $(OBJDIR)/$*.o