--- ./tremulous-1.1.0-src/src/master/Makefile.orig 2006-01-20 21:37:31.000000000 -0200 +++ ./tremulous-1.1.0-src/src/master/Makefile 2013-11-20 01:02:22.000000000 -0200 @@ -1,5 +1,5 @@ BD_DEBUG=debug-$(PLATFORM)-$(ARCH) -BD_RELEASE=release-$(PLATFORM)-$(ARCH) +BD_RELEASE=release ifeq ($(PLATFORM),mingw32) BINEXT=.exe @@ -9,15 +9,17 @@ MKDIR=mkdir else BINEXT= - RELEASE_LDFLAGS=-static -ltdb - DEBUG_LDFLAGS=-static -ltdb + RELEASE_LDFLAGS=-ltdb + DEBUG_LDFLAGS=-ltdb RM=rm -f MKDIR=mkdir endif -CC=gcc +CC?=gcc +CFLAGS+=-I$(LOCALBASE)/include RELEASE_CFLAGS=-Wall -O2 DEBUG_CFLAGS=-g +LDFLAGS+=-L$(LOCALBASE)/lib OBJECTS= \ $(BD)/master.o \ $(BD)/messages.o \