Artifact
7dd704d5c5db068a371063561d961482b0f81192:
- File
makefile.vc
— part of check-in
[4d12353be9]
at
2012-12-21 12:07:45
on branch trunk
— fixing the build process on MSVC (makefile.vc and config-msvc.h)
(user:
sandro
size: 994)
0000: 23 20 24 49 64 3a 20 6d 61 6b 65 66 69 6c 65 2e # $Id: makefile.
0010: 76 63 20 32 30 31 31 2f 30 38 2f 31 37 20 53 61 vc 2011/08/17 Sa
0020: 6e 64 72 6f 20 46 75 72 69 65 72 69 20 24 0a 23 ndro Furieri $.#
0030: 0a 23 20 4e 4d 41 4b 45 20 4d 61 6b 65 66 69 6c .# NMAKE Makefil
0040: 65 20 74 6f 20 62 75 69 6c 64 20 6c 69 62 66 72 e to build libfr
0050: 65 65 78 6c 20 6f 6e 20 57 69 6e 64 6f 77 73 0a eexl on Windows.
0060: 23 0a 21 49 4e 43 4c 55 44 45 20 6e 6d 61 6b 65 #.!INCLUDE nmake
0070: 2e 6f 70 74 0a 0a 4c 49 42 4f 42 4a 09 20 20 20 .opt..LIBOBJ.
0080: 20 20 20 20 20 20 20 20 20 20 20 20 3d 09 66 72 =.fr
0090: 65 65 78 6c 2e 6f 62 6a 0a 46 52 45 45 58 4c 5f eexl.obj.FREEXL_
00a0: 44 4c 4c 09 20 09 20 20 20 20 20 20 20 3d 09 66 DLL. . =.f
00b0: 72 65 65 78 6c 24 28 56 45 52 53 49 4f 4e 29 2e reexl$(VERSION).
00c0: 64 6c 6c 0a 0a 43 46 4c 41 47 53 09 3d 09 2f 6e dll..CFLAGS.=./n
00d0: 6f 6c 6f 67 6f 20 2d 49 43 3a 5c 4f 53 47 65 6f ologo -IC:\OSGeo
00e0: 34 57 5c 69 6e 63 6c 75 64 65 20 2d 49 2e 20 2d 4W\include -I. -
00f0: 49 68 65 61 64 65 72 73 20 24 28 4f 50 54 46 4c Iheaders $(OPTFL
0100: 41 47 53 29 0a 0a 64 65 66 61 75 6c 74 3a 09 61 AGS)..default:.a
0110: 6c 6c 0a 0a 61 6c 6c 3a 20 66 72 65 65 78 6c 2e ll..all: freexl.
0120: 6c 69 62 20 66 72 65 65 78 6c 5f 69 2e 6c 69 62 lib freexl_i.lib
0130: 0a 0a 24 28 4c 49 42 4f 42 4a 29 3a 09 73 72 63 ..$(LIBOBJ):.src
0140: 5c 66 72 65 65 78 6c 2e 63 0a 09 63 6c 20 24 28 \freexl.c..cl $(
0150: 43 46 4c 41 47 53 29 20 73 72 63 5c 66 72 65 65 CFLAGS) src\free
0160: 78 6c 2e 63 20 2f 63 0a 0a 66 72 65 65 78 6c 2e xl.c /c..freexl.
0170: 6c 69 62 3a 09 24 28 4c 49 42 4f 42 4a 29 0a 09 lib:.$(LIBOBJ)..
0180: 69 66 20 65 78 69 73 74 20 66 72 65 65 78 6c 2e if exist freexl.
0190: 6c 69 62 20 64 65 6c 20 66 72 65 65 78 6c 2e 6c lib del freexl.l
01a0: 69 62 0a 09 6c 69 62 20 2f 6f 75 74 3a 66 72 65 ib..lib /out:fre
01b0: 65 78 6c 2e 6c 69 62 20 24 28 4c 49 42 4f 42 4a exl.lib $(LIBOBJ
01c0: 29 0a 0a 24 28 46 52 45 45 58 4c 5f 44 4c 4c 29 )..$(FREEXL_DLL)
01d0: 3a 09 66 72 65 65 78 6c 5f 69 2e 6c 69 62 0a 0a :.freexl_i.lib..
01e0: 66 72 65 65 78 6c 5f 69 2e 6c 69 62 3a 09 24 28 freexl_i.lib:.$(
01f0: 4c 49 42 4f 42 4a 29 0a 09 6c 69 6e 6b 20 2f 64 LIBOBJ)..link /d
0200: 65 62 75 67 20 2f 64 6c 6c 20 2f 6f 75 74 3a 24 ebug /dll /out:$
0210: 28 46 52 45 45 58 4c 5f 44 4c 4c 29 20 5c 0a 09 (FREEXL_DLL) \..
0220: 09 2f 69 6d 70 6c 69 62 3a 66 72 65 65 78 6c 5f ./implib:freexl_
0230: 69 2e 6c 69 62 20 24 28 4c 49 42 4f 42 4a 29 20 i.lib $(LIBOBJ)
0240: 5c 0a 09 09 43 3a 5c 4f 53 47 65 6f 34 77 5c 6c \...C:\OSGeo4w\l
0250: 69 62 5c 69 63 6f 6e 76 2e 6c 69 62 0a 09 69 66 ib\iconv.lib..if
0260: 20 65 78 69 73 74 20 24 28 46 52 45 45 58 4c 5f exist $(FREEXL_
0270: 44 4c 4c 29 2e 6d 61 6e 69 66 65 73 74 20 6d 74 DLL).manifest mt
0280: 20 2d 6d 61 6e 69 66 65 73 74 20 5c 0a 09 09 24 -manifest \...$
0290: 28 46 52 45 45 58 4c 5f 44 4c 4c 29 2e 6d 61 6e (FREEXL_DLL).man
02a0: 69 66 65 73 74 20 2d 6f 75 74 70 75 74 72 65 73 ifest -outputres
02b0: 6f 75 72 63 65 3a 24 28 46 52 45 45 58 4c 5f 44 ource:$(FREEXL_D
02c0: 4c 4c 29 3b 32 20 0a 0a 63 6c 65 61 6e 3a 0a 09 LL);2 ..clean:..
02d0: 64 65 6c 20 2a 2e 64 6c 6c 0a 09 64 65 6c 20 2a del *.dll..del *
02e0: 2e 65 78 70 0a 09 64 65 6c 20 2a 2e 6d 61 6e 69 .exp..del *.mani
02f0: 66 65 73 74 0a 09 64 65 6c 20 2a 2e 6c 69 62 0a fest..del *.lib.
0300: 09 64 65 6c 20 2a 2e 6f 62 6a 0a 09 64 65 6c 20 .del *.obj..del
0310: 2a 2e 70 64 62 0a 0a 69 6e 73 74 61 6c 6c 3a 20 *.pdb..install:
0320: 61 6c 6c 0a 09 2d 6d 6b 64 69 72 20 24 28 49 4e all..-mkdir $(IN
0330: 53 54 44 49 52 29 0a 09 2d 6d 6b 64 69 72 20 24 STDIR)..-mkdir $
0340: 28 49 4e 53 54 44 49 52 29 5c 62 69 6e 0a 09 2d (INSTDIR)\bin..-
0350: 6d 6b 64 69 72 20 24 28 49 4e 53 54 44 49 52 29 mkdir $(INSTDIR)
0360: 5c 6c 69 62 0a 09 2d 6d 6b 64 69 72 20 24 28 49 \lib..-mkdir $(I
0370: 4e 53 54 44 49 52 29 5c 69 6e 63 6c 75 64 65 0a NSTDIR)\include.
0380: 09 63 6f 70 79 20 2a 2e 64 6c 6c 20 24 28 49 4e .copy *.dll $(IN
0390: 53 54 44 49 52 29 5c 62 69 6e 0a 09 63 6f 70 79 STDIR)\bin..copy
03a0: 20 2a 2e 6c 69 62 20 24 28 49 4e 53 54 44 49 52 *.lib $(INSTDIR
03b0: 29 5c 6c 69 62 0a 09 63 6f 70 79 20 68 65 61 64 )\lib..copy head
03c0: 65 72 73 5c 66 72 65 65 78 6c 2e 68 20 24 28 49 ers\freexl.h $(I
03d0: 4e 53 54 44 49 52 29 5c 69 6e 63 6c 75 64 65 09 NSTDIR)\include.
03e0: 0a 0a ..