File: Makefile.msc

package info (click to toggle)
swig 1.1p5-1
  • links: PTS
  • area: main
  • in suites: hamm
  • size: 9,448 kB
  • ctags: 5,025
  • sloc: cpp: 21,599; ansic: 13,333; yacc: 3,297; python: 2,794; makefile: 2,197; perl: 1,984; tcl: 1,583; sh: 736; lisp: 201; objc: 143
file content (62 lines) | stat: -rw-r--r-- 1,501 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
# Makefile for building various SWIG generated extensions

SRCS          = 
IDIR          = ..\Interface
IFILE         = gifplot
INTERFACE     = $(IDIR)\$(IFILE).i
WRAPFILE      = $(IFILE)_wrap.c
WOBJS         = $(WRAPFILE:.c=.obj)
OBJS          = $(SRCS:.c=.obj)

# Location of the Visual C++ tools (32 bit assumed)

TOOLS         = $(MSVCDIR)
TARGET        = gifplotc.dll
CC            = cl.exe
LINK          = link.exe
INCLUDE32     = -I"$(TOOLS)\include"
MACHINE       = IX86

# C Library needed to build a DLL

DLLIBC        = msvcrt.lib oldnames.lib  

# Windows libraries that are apparently needed

WINLIB        = kernel32.lib advapi32.lib user32.lib gdi32.lib comdlg32.lib winspool.lib

# Libraries common to all DLLs

LIBS          = $(DLLIBC) $(WINLIB) ..\gifplot.lib

# Linker options

LOPT      = -debug:full -debugtype:cv /NODEFAULTLIB /RELEASE /NOLOGO /MACHINE:$(MACHINE) -entry:_DllMainCRTStartup@12 -dll

# C compiler flags

CFLAGS    = /Z7 /Od /c /W3 /nologo /G5

PY_INCLUDES  = -Id:\python-1.5\Include -Id:\python-1.5 -Id:\python-1.5\PC
PYLIB        = d:\python-1.5\PCbuild\debug\python15.lib
INCLUDES      = -I..\Include /D__WIN32__

py::
	c:\swig1.1\swig -python -shadow -o $(WRAPFILE) $(INTERFACE)
	$(CC) $(CFLAGS) $(INCLUDES) $(PY_INCLUDES) $(SRCS) $(WRAPFILE)
	set LIB=$(TOOLS)\lib
	$(LINK) $(LOPT) -out:$(TARGET) $(LIBS) $(PYLIB) $(OBJS) $(WOBJS)

clean::
	del *.obj
	del *.dll
	del *.pll
	del *.lib
	del *.exp
	del *_wrap*
	del *.pdb
	del *.pch
	del *.pm
	del *.sl
	del *~