Commit beb33569 authored by thomas's avatar thomas
Browse files

updated build system

git-svn-id: https://svn.grrrr.org/ext/trunk@945 4d9ac71a-51e6-0310-8455-cad1006bcd31
parent d46e8bfe
......@@ -5,7 +5,8 @@ LIBPATH=$(LIBPATH) -L$(BCCPATH)\lib
##############################################
TARGETPATH=$(OUTPATH)\$(OUTSUB)
OBJPATH=$(OUTPATH)\$(OUTSUB)
TARGETPATH=$(OBJPATH)
TARGET=$(TARGETPATH)\$(OUTNAME).$(EXT)
##############################################
......@@ -17,7 +18,7 @@ CFLAGS=$(CFLAGS) -Hh=flext.h
CFLAGS=$(CFLAGS) -Hh=$(PRECOMPILE)
!endif
# location of precompiled file
CFLAGS=$(CFLAGS) -H=$(TARGETPATH)\precompiled.pch
CFLAGS=$(CFLAGS) -H=$(OBJPATH)\precompiled.pch
##############################################
......
##############################################
TARGETPATH=$(OUTPATH)/$(OUTSUB)
OBJPATH=$(OUTPATH)/$(OUTSUB)
TARGETPATH=$(OBJPATH)
TARGET=$(TARGETPATH)/$(OUTNAME).$(EXT)
##############################################
......@@ -20,5 +21,5 @@ endif
CSRCS=$(patsubst %.c,$(SRCDIR)/%.c,$(filter %.c,$(SRCS)))
CPPSRCS=$(patsubst %.cpp,$(SRCDIR)/%.cpp,$(filter %.cpp,$(SRCS)))
COBJS=$(patsubst %.c,$(TARGETPATH)/%.o,$(filter %.c,$(SRCS)))
CPPOBJS=$(patsubst %.cpp,$(TARGETPATH)/%.opp,$(filter %.cpp,$(SRCS)))
COBJS=$(patsubst %.c,$(OBJPATH)/%.o,$(filter %.c,$(SRCS)))
CPPOBJS=$(patsubst %.cpp,$(OBJPATH)/%.opp,$(filter %.cpp,$(SRCS)))
##############################################
TARGETPATH=$(OUTPATH)\$(OUTSUB)
OBJPATH=$(OUTPATH)\$(OUTSUB)
TARGETPATH=$(OBJPATH)
TARGET=$(TARGETPATH)\$(OUTNAME).$(EXT)
##############################################
......@@ -20,5 +21,5 @@ endif
CSRCS=$(patsubst %.c,$(SRCDIR)/%.c,$(filter %.c,$(SRCS)))
CPPSRCS=$(patsubst %.cpp,$(SRCDIR)/%.cpp,$(filter %.cpp,$(SRCS)))
COBJS=$(patsubst %.c,$(TARGETPATH)/%.o,$(filter %.c,$(SRCS)))
CPPOBJS=$(patsubst %.cpp,$(TARGETPATH)/%.opp,$(filter %.cpp,$(SRCS)))
COBJS=$(patsubst %.c,$(OBJPATH)/%.o,$(filter %.c,$(SRCS)))
CPPOBJS=$(patsubst %.cpp,$(OBJPATH)/%.opp,$(filter %.cpp,$(SRCS)))
......@@ -5,7 +5,8 @@ LIBPATH=$(LIBPATH) /LIBPATH:$(MSVCPATH)\lib
##############################################
TARGETPATH=$(OUTPATH)\$(OUTSUB)
OBJPATH=$(OUTPATH)\$(OUTSUB)
TARGETPATH=$(OBJPATH)
TARGET=$(TARGETPATH)\$(OUTNAME).$(EXT)
##############################################
......@@ -17,7 +18,7 @@ CFLAGS=$(CFLAGS) /YXflext.h
CFLAGS=$(CFLAGS) /YX$(PRECOMPILE)
!endif
# location of precompiled file
CFLAGS=$(CFLAGS) /Fp$(TARGETPATH)\precompiled.pch
CFLAGS=$(CFLAGS) /Fp$(OBJPATH)\precompiled.pch
##############################################
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment