version 1.4, 2009/03/10 20:21:35 |
version 1.18, 2015/08/20 17:44:35 |
|
|
## $OpenXM: OpenXM_contrib2/windows/engine2000/Makefile.vc,v 1.3 2009/03/10 16:45:29 ohara Exp $ |
## $OpenXM: OpenXM_contrib2/windows/engine2000/Makefile.vc,v 1.17 2015/08/13 13:45:26 ohara Exp $ |
## Makefile for Visual Studio 2008 |
## Makefile for Visual Studio 2008 |
|
|
SRCDIR=..\..\asir2000 |
SRCDIR=..\..\asir2000 |
ASIRLIB=..\asir2000lib\asir2000lib.lib |
ASIRLIB=..\asir2000lib\asir2000lib.lib |
|
|
!if "$(WITH_PARI)" == "no" |
GCDIR= ..\gc |
|
GCLIB= $(GCDIR)\gc.lib |
|
|
PARIDEF= |
!if "$(ARCH)" == "AMD64" |
PARIINC= |
GMPDIR= ..\gmp\x64 |
PARILIB= |
|
|
|
!else |
!else |
|
GMPDIR= ..\gmp\win32 |
PARIDEF= -D PARI |
|
PARIDIR=..\pari20 |
|
PARIINC= -I $(PARIDIR)\win32 |
|
PARILIB=$(PARIDIR)\libpari.lib |
|
|
|
!endif |
!endif |
|
GMPINC= -I $(GMPDIR) |
|
GMPLIB= $(GMPDIR)\libmpc-3.lib $(GMPDIR)\libmpfr-4.lib $(GMPDIR)\libgmp-10.lib |
|
|
GCDIR= ..\gc-7.1 |
INCLUDES= $(GMPINC) -I $(SRCDIR)\include -I $(SRCDIR)\parse -I $(SRCDIR)\plot |
GCLIB= $(GCDIR)\gc.lib |
DEFS= -D NDEBUG -D VISUAL -D _MBCS -D _CRT_SECURE_NO_WARNINGS -D _CRT_NONSTDC_NO_WARNINGS |
|
|
INCLUDES= -I $(SRCDIR)\include -I $(SRCDIR)\parse -I $(SRCDIR)\plot $(PARIINC) |
|
DEFS= -D NDEBUG -D WIN32 -D _WINDOWS -D _MBCS -D VISUAL $(PARIDEF) |
|
CFLAGS= -nologo -MT -W3 -EHsc -Ox $(DEFS) $(INCLUDES) |
CFLAGS= -nologo -MT -W3 -EHsc -Ox $(DEFS) $(INCLUDES) |
CPPFLAGS = $(CFLAGS) |
CPPFLAGS = $(CFLAGS) |
|
|
|
|
RFLAGS=-l 0x411 -d NDEBUG |
RFLAGS=-l 0x411 -d NDEBUG |
|
|
LD=link |
LD=link |
#LDFLAGS=/nologo /stack:0x10000000 /subsystem:windows /incremental:no /nodefaultlib:libcmt.lib $(ASIRLIB) $(PARILIB) $(GCLIB) ws2_32.lib user32.lib |
LDFLAGS=-nologo -stack:0x10000000 -subsystem:windows -dynamicbase:no -incremental:no -nodefaultlib:libcmt.lib $(ASIRLIB) $(GCLIB) $(GMPLIB) ws2_32.lib user32.lib |
LDFLAGS=/nologo /stack:0x10000000 /subsystem:windows /incremental:no $(ASIRLIB) $(PARILIB) $(GCLIB) ws2_32.lib user32.lib |
|
|
|
OBJS= engine2000.res ChildView.obj MainFrm.obj StdAfx.obj calc.obj \ |
OBJS= engine2000.res ChildView.obj MainFrm.obj StdAfx.obj calc.obj \ |
if.obj io.obj ox_asir.obj ox_launch.obj ox_plot.obj ox_plot_win.obj \ |
if.obj io.obj ox_asir.obj ox_launch.obj ox_plot.obj ox_plot_win.obj \ |
plot.obj plotg.obj plotp.obj |
plot.obj plotg.obj plotp.obj if_canvas.obj |
|
|
VPATH=$(SRCDIR)\plot;$(SRCDIR)\io |
VPATH=$(SRCDIR)\plot;$(SRCDIR)\io |
|
|
all: engine.exe |
all: engine.exe |
|
|
clean: |
clean: |
-@del *.obj |
-@del /q *.obj |
-@del engine2000.res |
-@del engine2000.res |
|
|
distclean: clean |
distclean: clean |
-@del engine.exe |
-@del engine.exe |
|
|
engine.exe: $(OBJS) |
engine.exe: $(OBJS) |
$(LD) $(LDFLAGS) /out:$@ $(OBJS) |
$(LD) $(LDFLAGS) -out:$@ $** |
|
|
calc.obj: {$(VPATH)}calc.c |
calc.obj: {$(VPATH)}calc.c |
$(CC) -c $(CFLAGS) $** |
$(CC) -c $(CFLAGS) $** |