freebsd-ports/mbone/rat30/files/patch-Makefile
2007-03-17 17:21:18 +00:00

30 lines
974 B
Text

--- Makefile.orig Tue Sep 14 12:39:00 1999
+++ Makefile Sat Mar 17 18:16:04 2007
@@ -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
@@ -19,7 +19,7 @@
GSMFLAGS = -DSASR -DFAST -DUSE_FLOAT_MUL
-include Makefile_$(OSTYPE)_$(OSMVER)
+include Makefile_$(OSTYPE)_4
BINDIR = bin/$(USER)
SRCDIR = src
@@ -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