This commit is contained in:
parent
91e196af25
commit
6114cb2603
@ -1,9 +1,6 @@
|
|||||||
NAME = aseawk
|
NAME = aseawk
|
||||||
MODE = release
|
MODE = release
|
||||||
|
|
||||||
JNI_INC = \
|
|
||||||
-I"$(JAVA_HOME)\include" \
|
|
||||||
-I"$(JAVA_HOME)\include\win32"
|
|
||||||
|
|
||||||
!if !defined(CPU) || "$(CPU)" == ""
|
!if !defined(CPU) || "$(CPU)" == ""
|
||||||
CPU = $(PROCESSOR_ARCHITECTURE)
|
CPU = $(PROCESSOR_ARCHITECTURE)
|
||||||
@ -29,8 +26,8 @@ LDFLAGS = /subsystem:windows
|
|||||||
LIBS=
|
LIBS=
|
||||||
|
|
||||||
!IF "$(MODE)" == "debug"
|
!IF "$(MODE)" == "debug"
|
||||||
CFLAGS = $(CFLAGS) -D_DEBUG -DDEBUG /MTd
|
CFLAGS = $(CFLAGS) -D_DEBUG -DDEBUG /MTd /Zi
|
||||||
CXXFLAGS = $(CXXFLAGS) -D_DEBUG -DDEBUG /MTd
|
CXXFLAGS = $(CXXFLAGS) -D_DEBUG -DDEBUG /MTd /Zi
|
||||||
!ELSEIF "$(MODE)" == "release"
|
!ELSEIF "$(MODE)" == "release"
|
||||||
CFLAGS = $(CFLAGS) -DNDEBUG /MT /O2
|
CFLAGS = $(CFLAGS) -DNDEBUG /MT /O2
|
||||||
CXXFLAGS = $(CXXFLAGS) -DNDEBUG /MT /O2
|
CXXFLAGS = $(CXXFLAGS) -DNDEBUG /MT /O2
|
||||||
@ -91,11 +88,10 @@ LIBS_JNIDLL=user32.lib $(OUT_FILE_LIB) asecmn.lib aseutl.lib
|
|||||||
LIBS_JNIDLL = $(LIBS_JNIDLL) bufferoverflowu.lib
|
LIBS_JNIDLL = $(LIBS_JNIDLL) bufferoverflowu.lib
|
||||||
!endif
|
!endif
|
||||||
|
|
||||||
|
|
||||||
TARGETS = lib
|
TARGETS = lib
|
||||||
|
|
||||||
!if "$(JAVA_HOME)" != ""
|
!if "$(JAVA_HOME)" != ""
|
||||||
TARGETS = $(TARGETS) jnidll jar
|
TARGETS = $(TARGETS) jnidll jar
|
||||||
|
JNI_INC = -I"$(JAVA_HOME)\include" -I"$(JAVA_HOME)\include\win32"
|
||||||
!endif
|
!endif
|
||||||
|
|
||||||
all: $(TARGETS)
|
all: $(TARGETS)
|
||||||
|
@ -8,7 +8,7 @@ AR = link
|
|||||||
CFLAGS = /nologo /W3 -I..\..
|
CFLAGS = /nologo /W3 -I..\..
|
||||||
|
|
||||||
!IF "$(MODE)" == "debug"
|
!IF "$(MODE)" == "debug"
|
||||||
CFLAGS = $(CFLAGS) -D_DEBUG -DDEBUG /MTd
|
CFLAGS = $(CFLAGS) -D_DEBUG -DDEBUG /MTd /Zi
|
||||||
!ELSEIF "$(MODE)" == "release"
|
!ELSEIF "$(MODE)" == "release"
|
||||||
CFLAGS = $(CFLAGS) -DNDEBUG /MT /O2
|
CFLAGS = $(CFLAGS) -DNDEBUG /MT /O2
|
||||||
!ELSE
|
!ELSE
|
||||||
|
@ -16,8 +16,8 @@ LIBS = asecmn.lib aseawk.lib aseutl.lib kernel32.lib user32.lib
|
|||||||
LIBS_CXX = $(LIBS) aseawk++.lib
|
LIBS_CXX = $(LIBS) aseawk++.lib
|
||||||
|
|
||||||
!IF "$(MODE)" == "debug"
|
!IF "$(MODE)" == "debug"
|
||||||
CFLAGS = $(CFLAGS) -D_DEBUG -DDEBUG /MTd
|
CFLAGS = $(CFLAGS) -D_DEBUG -DDEBUG /MTd /Zi
|
||||||
CXXFLAGS = $(CXXFLAGS) -D_DEBUG -DDEBUG /MTd
|
CXXFLAGS = $(CXXFLAGS) -D_DEBUG -DDEBUG /MTd /Zi
|
||||||
!ELSEIF "$(MODE)" == "release"
|
!ELSEIF "$(MODE)" == "release"
|
||||||
CFLAGS = $(CFLAGS) -DNDEBUG /MT /O2
|
CFLAGS = $(CFLAGS) -DNDEBUG /MT /O2
|
||||||
CXXFLAGS = $(CXXFLAGS) -DNDEBUG /MT /O2
|
CXXFLAGS = $(CXXFLAGS) -DNDEBUG /MT /O2
|
||||||
|
@ -8,7 +8,7 @@ AR = link
|
|||||||
CFLAGS = /nologo /W3 -I..\..
|
CFLAGS = /nologo /W3 -I..\..
|
||||||
|
|
||||||
!IF "$(MODE)" == "debug"
|
!IF "$(MODE)" == "debug"
|
||||||
CFLAGS = $(CFLAGS) -D_DEBUG -DDEBUG /MTd
|
CFLAGS = $(CFLAGS) -D_DEBUG -DDEBUG /MTd /Zi
|
||||||
!ELSEIF "$(MODE)" == "release"
|
!ELSEIF "$(MODE)" == "release"
|
||||||
CFLAGS = $(CFLAGS) -DNDEBUG /MT /O2
|
CFLAGS = $(CFLAGS) -DNDEBUG /MT /O2
|
||||||
!ELSE
|
!ELSE
|
||||||
|
Loading…
Reference in New Issue
Block a user