~ubuntu-branches/debian/squeeze/ffcall/squeeze

« back to all changes in this revision

Viewing changes to ffcall/vacall/Makefile.msvc

  • Committer: Bazaar Package Importer
  • Author(s): Christoph Egger
  • Date: 2010-06-26 15:29:30 UTC
  • mfrom: (5.1.1 experimental)
  • Revision ID: james.westby@ubuntu.com-20100626152930-c09y01gk3szcnykn
Tags: 1.10+cvs20100619-2
Ship to unstable

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
# -*- Makefile -*- for vacall
2
 
 
3
 
#### Start of system configuration section. ####
4
 
 
5
 
# Flags that can be set on the nmake command line:
6
 
#   MFLAGS={-ML|-MT|-MD} for defining the compilation model
7
 
#     MFLAGS=-ML (the default)  Single-threaded, statically linked - libc.lib
8
 
#     MFLAGS=-MT                Multi-threaded, statically linked  - libcmt.lib
9
 
#     MFLAGS=-MD                Multi-threaded, dynamically linked - msvcrt.lib
10
 
#   DEBUG=1   for compiling with debugging information
11
 
# Note that nmake command line flags are automatically passed to subdirectory
12
 
# Makefiles. Therefore we don't need to pass them explicitly to subdirectory
13
 
# Makefiles, but the subdirectory Makefiles need to have the same defaults.
14
 
# Building as a DLL not supported yet.
15
 
DLL=0
16
 
!if !defined(DEBUG)
17
 
DEBUG=0
18
 
!endif
19
 
!if !defined(MFLAGS)
20
 
!if !$(DLL)
21
 
MFLAGS=
22
 
!else
23
 
MFLAGS=-MD
24
 
!endif
25
 
!endif
26
 
 
27
 
!if $(DEBUG)
28
 
OPTIMFLAGS = -Od -Z7
29
 
!else
30
 
OPTIMFLAGS = -D_NDEBUG -O1
31
 
!endif
32
 
 
33
 
HOST = i386-pc-win32-msvc
34
 
CPU = i386
35
 
 
36
 
# Directories used by "make":
37
 
srcdir = .
38
 
 
39
 
# Directories used by "make install":
40
 
prefix = /usr/local
41
 
local_prefix = /usr/local
42
 
exec_prefix = $(prefix)
43
 
libdir = $(exec_prefix)/lib
44
 
includedir = $(prefix)/include
45
 
mandir = $(prefix)/man
46
 
 
47
 
# Programs used by "make":
48
 
CC = cl
49
 
CFLAGS = $(MFLAGS) $(OPTIMFLAGS)
50
 
CPP = cl -E
51
 
INCLUDES = -I. -I$(srcdir)
52
 
AR = lib
53
 
AR_FLAGS = /out:
54
 
MV = ren
55
 
LN = copy
56
 
RM = -del
57
 
 
58
 
# Programs used by "make install":
59
 
INSTALL = @INSTALL@
60
 
INSTALL_PROGRAM = @INSTALL_PROGRAM@
61
 
INSTALL_DATA = @INSTALL_DATA@
62
 
 
63
 
#### End of system configuration section. ####
64
 
 
65
 
SHELL = /bin/sh
66
 
 
67
 
OBJECTS = vacall.obj misc.obj structcpy.obj
68
 
 
69
 
all : $(OBJECTS) vacall.lib vacall.h $(srcdir)/vacall.3 $(srcdir)/vacall.html
70
 
 
71
 
vacall.h : vacall.h.msvc
72
 
        $(RM) vacall.h
73
 
        $(LN) vacall.h.msvc vacall.h
74
 
 
75
 
config.h : config.h.msvc
76
 
        $(RM) config.h
77
 
        $(LN) config.h.msvc config.h
78
 
 
79
 
vacall.obj : vacall-$(CPU).obj
80
 
        $(RM) vacall.obj
81
 
        $(LN) vacall-$(CPU).obj vacall.obj
82
 
 
83
 
vacall-i386.obj : $(srcdir)/vacall-i386-msvc.c vacall.h
84
 
        $(RM) vacall-i386.obj
85
 
        $(CC) -c $(srcdir)/vacall-i386-msvc.c /Fovacall-i386.obj
86
 
 
87
 
misc.obj : $(srcdir)/misc.c vacall.h config.h
88
 
        $(CC) $(CFLAGS) $(INCLUDES) -c $(srcdir)/misc.c
89
 
 
90
 
structcpy.obj : $(srcdir)/structcpy.c
91
 
        $(CC) $(CFLAGS) -c $(srcdir)/structcpy.c
92
 
 
93
 
!if !$(DLL)
94
 
vacall.lib : $(OBJECTS)
95
 
        $(RM) vacall.lib
96
 
        $(AR) $(AR_FLAGS)vacall.lib $(OBJECTS)
97
 
!else
98
 
# vacall.dll and vacall.lib are created together.
99
 
vacall.lib : $(OBJECTS)
100
 
        $(CC) $(MFLAGS) -LD $(OBJECTS)
101
 
!endif
102
 
 
103
 
tests.obj : $(srcdir)/tests.c vacall.h
104
 
        $(CC) $(CFLAGS) $(INCLUDES) -c $(srcdir)/tests.c
105
 
 
106
 
tests.s : $(srcdir)/tests.c vacall.h
107
 
        $(CC) $(CFLAGS) $(INCLUDES) -c $(srcdir)/tests.c /FAs /Fatests.s
108
 
 
109
 
tests.exe : tests.obj vacall.lib
110
 
        $(CC) $(CFLAGS) tests.obj vacall.lib /Fetests.exe
111
 
 
112
 
uniq-u.exe : $(srcdir)/uniq-u.c
113
 
        $(CC) $(CFLAGS) $(srcdir)/uniq-u.c -Feuniq-u.exe
114
 
        $(RM) uniq-u.obj
115
 
 
116
 
check : all tests.exe uniq-u.exe
117
 
        tests.exe > tests.out
118
 
        uniq-u < tests.out > tests.output.$(HOST)
119
 
 
120
 
mostlyclean : clean
121
 
 
122
 
clean : force
123
 
        $(RM) *.obj *.lib *.exp *.dll core
124
 
        $(RM) vacall-i386.s
125
 
        $(RM) tests.obj tests.s tests.exe uniq-u.exe tests.out
126
 
 
127
 
distclean : clean
128
 
        $(RM) config.status config.log config.cache Makefile vacall.h config.h tests.output.*
129
 
 
130
 
maintainer-clean : distclean
131
 
 
132
 
force :
133