--- ./Makefile.orig 1999-09-14 14:39:00.000000000 +0400 +++ ./Makefile 2007-07-14 20:49:46.000000000 +0400 @@ -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