add notion of topdir to Makefile.lite build system

This commit is contained in:
Josh Coalson
2002-10-23 22:08:13 +00:00
parent e29fb7c84c
commit cd0e322d2d
20 changed files with 76 additions and 39 deletions

View File

@@ -34,13 +34,13 @@ else
LINKAGE = -static
endif
LINK = $(CC) $(LINKAGE)
BINPATH = ../../obj/bin
LIBPATH = ../../obj/lib
BINPATH = $(topdir)/obj/bin
LIBPATH = $(topdir)/obj/lib
PROGRAM = $(BINPATH)/$(PROGRAM_NAME)
all : release
include ../../build/config.mk
include $(topdir)/build/config.mk
debug : CFLAGS = -g -O0 -DDEBUG $(DEBUG_CFLAGS) -Wall -W -DVERSION=$(VERSION) $(DEFINES) $(INCLUDES)
release : CFLAGS = -O3 -fomit-frame-pointer -funroll-loops -finline-functions -DNDEBUG $(RELEASE_CFLAGS) -Wall -W -Winline -DFLaC__INLINE=__inline__ -DVERSION=$(VERSION) $(DEFINES) $(INCLUDES)