CodeQL / Analyze (actions) (push) Canceled after 0s
CodeQL / Analyze (python) (push) Canceled after 0s
pre-commit / pre-commit (push) Canceled after 0s
Multi-Arch CI / setup (push) Canceled after 0s
Publish build_manylinux_x86_64 images / publish_build_manylinux_x86_64 (push) Canceled after 0s
Setup (Multi-Arch) / setup (push) Canceled after 0s
Multi-Arch CI / Linux::${{ fromJSON(needs.setup.outputs.linux_build_config || '{}').build_variant_label || 'skip' }} (push) Canceled after 0s
Publish TheRock Docker image / build-and-push-image (push) Canceled after 0s
Publish no_rocm_image_ubi10 image / publish_no_rocm_image_ubi10 (push) Canceled after 0s
Multi-Arch CI / Windows::${{ fromJSON(needs.setup.outputs.windows_build_config || '{}').build_variant_label || 'skip' }} (push) Canceled after 0s
Publish TheRock Docker image / build-and-push-image (push) Canceled after 0s
Multi-Arch CI / Manifest Diff (push) Canceled after 0s
TheRock Manifest Diff Report / Generate Manifest Diff Report (push) Canceled after 0s
Multi-Arch CI / CI Summary (push) Canceled after 0s
Publish no_rocm_image_ubuntu24_04 images / publish_no_rocm_image_ubuntu24_04 (push) Canceled after 0s
Publish no_rocm_image_ubuntu24_04_ocl_rt images / publish_no_rocm_image_ubuntu24_04_ocl_rt (push) Canceled after 0s
Publish TheRock Docker image / build-and-push-image (push) Canceled after 0s
Publish TheRock Docker image / build-and-push-image (push) Canceled after 0s
Publish no_rocm_image_ubuntu24_04 images / publish_no_rocm_image_ubuntu24_04_rocgdb (push) Canceled after 0s
Publish no_rocm_image_ubuntu24_04_rocgdb images / publish_no_rocm_image_ubuntu24_04_rocgdb (push) Canceled after 0s
Publish no_rocm_image_ubuntu24_04 images / publish_no_rocm_image_ubuntu24_04_ocl_rt (push) Canceled after 0s
Publish TheRock Docker image / build-and-push-image (push) Canceled after 0s
Unit Tests / Unit Tests :: ubuntu-24.04 (push) Canceled after 0s
Unit Tests / Unit Tests :: windows-2022 (push) Canceled after 0s
Publish no_rocm_image_ubuntu24_04 images / publish_no_rocm_image_ubuntu24_04_media (push) Canceled after 0s
Unit Tests / Unit Tests Summary (push) Canceled after 0s
Publish no_rocm_image_ubuntu24_04 images / publish_no_rocm_image_ubuntu24_04_openmpi (push) Canceled after 0s
85 lines
2.2 KiB
Makefile
85 lines
2.2 KiB
Makefile
##
|
|
## Name: Makefile.msvc
|
|
## Purpose: Makefile for IMath library and associated tools
|
|
## for Microsoft Visual Studio 2005
|
|
## Author: Matus Horvath <matus.horvath@nextra.sk>
|
|
##
|
|
## Copyright (C) 2006 Matus Horvath. Permission has been granted to use,
|
|
## modify, and redistribute this file according to the terms of the IMath
|
|
## license.
|
|
##
|
|
## Usage: nmake /f Makefile.msvc
|
|
##
|
|
|
|
# --- begin configuration section ---
|
|
|
|
## Settings for Microsoft Windows systems using nmake.
|
|
## To build with debugging, add DEBUG=Y on the "nmake" command line.
|
|
CC=cl.exe
|
|
LD=link.exe
|
|
CFLAGS=$(CFLAGS) -nologo -I. -D_CRT_SECURE_NO_DEPRECATE $(DCFLAGS)
|
|
LDFLAGS=$(LDFLAGS) -nologo $(DLDFLAGS)
|
|
LIBS=$(DLIBS)
|
|
|
|
!if "$(DEBUG)" == "Y"
|
|
DCFLAGS=-ZI -Od -DDEBUG=1 -DTRACEABLE_FREE=1
|
|
DLDFLAGS=-DEBUG
|
|
#DLIBS=-lefence
|
|
!else
|
|
DCFLAGS=-O2 -Ob2
|
|
DLDFLAGS=
|
|
#DLIBS=
|
|
!endif
|
|
|
|
## Visual Studio C/C++ 2005 compiler supports "long long" 64-bit type.
|
|
CFLAGS=$(CFLAGS) -DUSE_LONG_LONG
|
|
|
|
# --- end of configuration section ---
|
|
TARGETS=imtest.exe pi.exe bintest.exe findprime.exe
|
|
HDRS=imath.h imrat.h iprime.h imdrover.h rsamath.h
|
|
SRCS=$(HDRS:.h=.c) $(TARGETS:.exe=.c)
|
|
OBJS=$(SRCS:.c=.obj)
|
|
EXAMPLES=input.exe basecvt.exe rounding.exe
|
|
|
|
.c.obj:
|
|
$(CC) $(CFLAGS) -c $<
|
|
|
|
all: objs examples test
|
|
|
|
objs: $(OBJS)
|
|
|
|
# Because Visual Studio does not permit Unix shell syntax, you will
|
|
# have to run the tests manually once the "test" target is built.
|
|
test: imtest.exe pi.exe
|
|
# @ echo ""
|
|
# @ echo "Running tests, you should not see any 'FAILED' lines here."
|
|
# @ echo "If you do, please see doc.txt for how to report a bug."
|
|
# @ echo ""
|
|
# (cd tests && ./test.sh)
|
|
|
|
$(EXAMPLES): imath.obj imrat.obj iprime.obj examples/$*.obj
|
|
@move $*.obj examples/$*.obj
|
|
$(LD) $(LDFLAGS) -out:$@ $** $(LIBS)
|
|
|
|
examples: $(EXAMPLES)
|
|
|
|
imtest.exe: imtest.obj imath.obj imrat.obj imdrover.obj
|
|
$(LD) $(LDFLAGS) -out:$@ $** $(LIBS)
|
|
|
|
pi.exe: pi.obj imath.obj
|
|
$(LD) $(LDFLAGS) -out:$@ $** $(LIBS)
|
|
|
|
findprime.exe: findprime.obj imath.obj iprime.obj
|
|
$(LD) $(LDFLAGS) -out:$@ $** $(LIBS)
|
|
|
|
rtest.exe: rtest.obj imath.obj rsamath.obj
|
|
$(LD) $(LDFLAGS) -out:$@ $** $(LIBS)
|
|
|
|
bintest.exe: imath.obj bintest.obj
|
|
$(LD) $(LDFLAGS) -out:$@ $** $(LIBS)
|
|
|
|
clean:
|
|
del /q /f *.exe *.obj examples\*.obj
|
|
|
|
# End of Makefile.msvc
|