"Fossies" - the Fresh Open Source Software Archive 
Member "mapm_4.9.5a/WINDOWS_DOS/makefile.mvs" (21 Feb 2010, 2041 Bytes) of package /linux/misc/old/mapm-4.9.5a.tar.gz:
As a special service "Fossies" has tried to format the requested text file into HTML format (style:
standard) with prefixed line numbers.
Alternatively you can here
view or
download the uninterpreted source code file.
1 #
2 # Tested against Microsoft Visual Studio 2005
3 #
4 # Note: run VCVARS32.BAT in /bin directory of VCPP first to set
5 # the environment variables.
6
7 # This file contributed to the public domain
8 # by James K. Lowden <jklowden@schemamania.org>.
9
10 #
11 # Set -Zl when building the library to avoid references
12 # to the default library.
13 #
14 CC = cl -nologo -O2 -W3 -MTd -Zl -D_CRT_SECURE_NO_DEPRECATE
15
16 #
17 # When building executables, we need the default libraries.
18 #
19 CX = cl -nologo -O2 -W3 -MTd -D_CRT_SECURE_NO_DEPRECATE
20
21 SRC = mapm5sin.c mapm_add.c mapm_cpi.c mapm_div.c \
22 mapm_exp.c mapm_fam.c mapm_fft.c mapm_flr.c \
23 mapm_fpf.c mapm_gcd.c mapm_lg2.c mapm_lg3.c \
24 mapm_lg4.c mapm_log.c mapm_mul.c mapm_pow.c \
25 mapm_rcp.c mapm_rnd.c mapm_set.c mapm_sin.c \
26 mapmasin.c mapmasn0.c mapmcbrt.c mapmcnst.c \
27 mapmfact.c mapmfmul.c mapmgues.c mapmhasn.c \
28 mapmhsin.c mapmipwr.c mapmistr.c mapmpwr2.c \
29 mapmrsin.c mapmsqrt.c mapmstck.c mapmutil.c \
30 mapmutl1.c mapmutl2.c
31
32 OBJ = mapm5sin.obj mapm_add.obj mapm_cpi.obj mapm_div.obj \
33 mapm_exp.obj mapm_fam.obj mapm_fft.obj mapm_flr.obj \
34 mapm_fpf.obj mapm_gcd.obj mapm_lg2.obj mapm_lg3.obj \
35 mapm_lg4.obj mapm_log.obj mapm_mul.obj mapm_pow.obj \
36 mapm_rcp.obj mapm_rnd.obj mapm_set.obj mapm_sin.obj \
37 mapmasin.obj mapmasn0.obj mapmcbrt.obj mapmcnst.obj \
38 mapmfact.obj mapmfmul.obj mapmgues.obj mapmhasn.obj \
39 mapmhsin.obj mapmipwr.obj mapmistr.obj mapmpwr2.obj \
40 mapmrsin.obj mapmsqrt.obj mapmstck.obj mapmutil.obj \
41 mapmutl1.obj mapmutl2.obj
42
43 EXE = validate.exe calc.exe primenum.exe cpp_demo.exe
44
45 #
46 # Create mamp.lib, then compile and link
47 # validate.c, calc.c, primenum.c, and cpp_demo.cpp
48 #
49
50 all: mapm.lib $(EXE)
51
52 calc.exe: calc.c mapm.lib
53 primenum.exe: primenum.c mapm.lib
54 validate.exe: validate.c mapm.lib
55
56 cpp_demo.exe: cpp_demo.cpp mapm.lib
57
58 #
59 # Create MAPM.LIB:
60 #
61 mapm.lib: $(OBJ)
62 lib -nologo -OUT:mapm.lib $**
63
64 .c.exe:
65 $(CX) $** -link -map
66
67 .cpp.exe:
68 $(CX) $**
69
70 cleanobj:
71 del $(OBJ)
72
73 clean:
74 del map*.obj mapm.lib $(EXE)
75