openbsd-ports/mbone/rat/patches/patch-Makefile
naddy 5620e78504 - Fix build on OpenBSD 3.0.
- Add gmake dependency.
- Respect CC, CFLAGS; reference X11BASE, LOCALBASE.
- This is not BSD-licensed.
- Install man page.
- All around clean-up.
2001-10-01 02:00:06 +00:00

27 lines
819 B
Plaintext

$OpenBSD: patch-Makefile,v 1.2 2001/10/01 02:00:06 naddy Exp $
--- Makefile.orig Mon Mar 1 18:23:47 1999
+++ Makefile Fri Mar 16 20:50:15 2001
@@ -9,9 +9,7 @@ DEFS = -DNDEBUG
# -DNDEBUG -DDEBUG -DTEST -DGSM -DDEBUG_MIX -DDEBUG_MEM
# -DDEBUG_RTP -DREPEAT
-DEFS += -D$(OSTYPE) -D$(OSTYPE)_$(OSMVER) -D$(USER)
-CC = gcc
-CFLAGS = -Wall -Werror $(INCS) $(DEFS) -g -O -fsigned-char
+CFLAGS += $(INCS) $(DEFS) -fsigned-char
LDFLAGS=
LDLIBS= $(LDLIBS) -lm
RANLIB = ranlib
@@ -21,9 +19,9 @@ GSMFLAGS = -DSASR -DFAST -DUSE_FLOAT_M
include Makefile_$(OSTYPE)_$(OSMVER)
-BINDIR = bin/$(USER)
+BINDIR = bin
SRCDIR = src
-OBJDIR = objs/$(USER)/$(OSTYPE)_$(OSVERS)
+OBJDIR = objs/$(OSTYPE)_$(OSVERS)
OBJS = $(OBJDIR)/codec_encoder.o \
$(OBJDIR)/codec_decoder.o \
$(OBJDIR)/codec_lpc.o \