aboutsummaryrefslogtreecommitdiff
path: root/externals/grill/flext/build/make-win-gen-msvc.inc
diff options
context:
space:
mode:
authorThomas Grill <xovo@users.sourceforge.net>2004-12-18 05:01:11 +0000
committerThomas Grill <xovo@users.sourceforge.net>2004-12-18 05:01:11 +0000
commite741586389de21efe0dd7fa1b0057c970e4c1a17 (patch)
treea6307013f3366f626a0a2893474e3ba67a7f8614 /externals/grill/flext/build/make-win-gen-msvc.inc
parent4deb2e053f989ba20a9864c6171af844141f7f80 (diff)
updated build system for linux
updated make system for BCC build system for flext-based externals updated build system add xcode project comply to build system svn path=/trunk/; revision=2405
Diffstat (limited to 'externals/grill/flext/build/make-win-gen-msvc.inc')
-rw-r--r--externals/grill/flext/build/make-win-gen-msvc.inc37
1 files changed, 19 insertions, 18 deletions
diff --git a/externals/grill/flext/build/make-win-gen-msvc.inc b/externals/grill/flext/build/make-win-gen-msvc.inc
index 0538f63e..1fc06c8f 100644
--- a/externals/grill/flext/build/make-win-gen-msvc.inc
+++ b/externals/grill/flext/build/make-win-gen-msvc.inc
@@ -6,26 +6,25 @@ INCPATH=$(INCPATH) /I$(MSVCPATH)\include
LIBPATH=$(LIBPATH) /LIBPATH:$(MSVCPATH)\lib
!endif
-# add user flags
-CFLAGS=$(UFLAGS)
-
-# for VC7 - exception handling
+# for VC7 - enable exception handling
CFLAGS=$(CFLAGS) /EHsc
##############################################
# use multithreaded static libraries
-!ifdef _DEBUG
-CFLAGS=$(CFLAGS) /DMTd
+!ifdef DEBUG
+CFLAGS=$(CFLAGS) /D_DEBUG /DMTd
+LDFLAGS=$(LDFLAGS) /DEBUG
!else
-CFLAGS=$(CFLAGS) /DMT
+CFLAGS=$(CFLAGS) $(OFLAGS) /DNDEBUG /DMT
+LDFLAGS=$(LDFLAGS) /INCREMENTAL:NO
!endif
-!ifdef FLEXT_SHARED
+!ifdef SHARED
# --- shared ---
DEFS=$(DEFS) /DFLEXT_SHARED
-!elseifdef FLEXT_THREADED
+!elseifdef THREADED
# --- static multi-threaded ---
DEFS=$(DEFS) /DFLEXT_THREADS
@@ -36,13 +35,9 @@ DEFS=$(DEFS) /DFLEXT_THREADS
##############################################
+# default target
all: $(OUTPATH) $(OUTPATH)\$(NAME).$(EXT)
-# remove build
-clean:
- -del /q $(OUTPATH) > nul
- -rmdir $(OUTPATH) > nul
-
OBJS= $(SRCS:.c=.obj)
OBJS= $(OBJS:.objpp=.obj)
@@ -57,11 +52,17 @@ $(OUTPATH):
$(OUTPATH)\$(NAME).$(EXT): $(OBJS)
cd $(OUTPATH)
- link /DLL $(LDFLAGS) /out:$(NAME).$(EXT) /INCREMENTAL:NO $** $(LIBS) $(LIBPATH)
+ link /DLL $(LDFLAGS) /out:$(NAME).$(EXT) $** $(LIBS) $(LIBPATH)
@-del *.exp
@-del *.lib
cd ..
-!ifdef INSTPATH
+
+# remove build
+clean:
+ -del /q $(OUTPATH) > nul
+ -rmdir $(OUTPATH) > nul
+
+# install build
+install:
@-if not exist $(INSTPATH) mkdir $(INSTPATH)
- copy $@ $(INSTPATH) > nul
-!endif
+ copy $(OUTPATH)\$(NAME).$(EXT) $(INSTPATH) > nul