File: Makefile.msc

package info (click to toggle)
libidl 0.8.10-0.1
  • links: PTS
  • area: main
  • in suites: lenny
  • size: 2,148 kB
  • ctags: 864
  • sloc: sh: 9,151; ansic: 3,643; yacc: 1,805; lex: 399; makefile: 46
file content (65 lines) | stat: -rw-r--r-- 1,813 bytes parent folder | download
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
63
64
65
## -*- mode: makefile -*-
## Makefile for building the libIDL dll with Microsoft C
## Use: nmake -f Makefile.msc install

# Change this to wherever you want to install the DLLs. This directory
# should be in your PATH.
BIN = C:\Bin

# GLib location
GLIB_INCLUDES = -I/Devel/Port/glib
GLIB_LIBPATH = c:\Devel\Port\glib
GLIB_LIB = glib-1.2.lib

# libIDL dll version
LIBIDL_REALVER = 0.8.10
LIBIDL_LIBVER = 0.8

# Debug build
LDOPT = /debug:full /debugtype:cv
CCOPT = -Ox
#CCOPT = -Zi # Debug build


################################################################
CC = cl -G5 -GF $(CCOPT) -W3 -D_DLL -nologo
LDFLAGS = /link /nodefaultlib:libc msvcrt.lib /libpath:$(GLIB_LIBPATH) $(LDOPT)
INSTALL = copy
TOUCH = copy Makefile.msc+nul

CFLAGS = -I. $(GLIB_INCLUDES)

all:   libIDL-$(LIBIDL_LIBVER).dll tstidl.exe

install: all
        $(INSTALL) libIDL-$(LIBIDL_LIBVER).dll $(BIN)

libIDL_OBJECTS =				\
	parser.obj				\
	lexer.obj				\
	ns.obj					\
	util.obj

libIDL-$(LIBIDL_LIBVER).dll: $(libIDL_OBJECTS)
        $(CC) $(CFLAGS) -MD -LD -FelibIDL-$(LIBIDL_LIBVER).dll $(libIDL_OBJECTS) $(GLIB_LIB) user32.lib advapi32.lib $(LDFLAGS) /def:libIDL.def

.c.obj:
        $(CC) $(CFLAGS) -GD -c -DPACKAGE=\"libIDL\" -DLIBIDL_VERSION=\"$(LIBIDL_REALVER)\" -DHAVE_CPP_PIPE_STDIN=1 -DCPP_PROGRAM="\"notsupported\"" -DYYTEXT_POINTER=1 -DSTDC_HEADERS=1 -DHAVE_STDDEF_H=1 -DHAVE_WCHAR_H=1 -DYYDEBUG=1 -DIDL_LIBRARY -DG_LOG_DOMAIN=\"libIDL\" $<

tstidl.exe: libIDL-$(LIBIDL_LIBVER).dll tstidl.obj
        $(CC) $(CFLAGS) -MD -Fetstidl.exe tstidl.obj libIDL-$(LIBIDL_LIBVER).lib $(GLIB_LIB) $(LDFLAGS) /map

clean:
	del config.h
	del *.exe
	del *.obj
	del *.dll
	del *.lib
	del *.err
	del *.map
	del *.sym
	del *.exp
	del *.lk1
	del *.mk1
	del *.pdb
	del *.ilk