Revision 20748,
1.8 KB
checked in by ghudson, 20 years ago
(diff) |
This commit was generated by cvs2svn to compensate for changes in r20747,
which included commits to RCS files with non-trunk default branches.
|
Line | |
---|
1 | ## -*- mode: makefile -*-
|
---|
2 | ## Makefile for building the libIDL dll with Microsoft C
|
---|
3 | ## Use: nmake -f Makefile.msc install
|
---|
4 |
|
---|
5 | # Change this to wherever you want to install the DLLs. This directory
|
---|
6 | # should be in your PATH.
|
---|
7 | BIN = C:\Bin
|
---|
8 |
|
---|
9 | # GLib location
|
---|
10 | GLIB_INCLUDES = -I/Devel/Port/glib
|
---|
11 | GLIB_LIBPATH = c:\Devel\Port\glib
|
---|
12 | GLIB_LIB = glib-1.2.lib
|
---|
13 |
|
---|
14 | # libIDL dll version
|
---|
15 | LIBIDL_REALVER = 0.8.4
|
---|
16 | LIBIDL_LIBVER = 0.8
|
---|
17 |
|
---|
18 | # Debug build
|
---|
19 | LDOPT = /debug:full /debugtype:cv
|
---|
20 | CCOPT = -Ox
|
---|
21 | #CCOPT = -Zi # Debug build
|
---|
22 |
|
---|
23 |
|
---|
24 | ################################################################
|
---|
25 | CC = cl -G5 -GF $(CCOPT) -W3 -D_DLL -nologo
|
---|
26 | LDFLAGS = /link /nodefaultlib:libc msvcrt.lib /libpath:$(GLIB_LIBPATH) $(LDOPT)
|
---|
27 | INSTALL = copy
|
---|
28 | TOUCH = copy Makefile.msc+nul
|
---|
29 |
|
---|
30 | CFLAGS = -I. $(GLIB_INCLUDES)
|
---|
31 |
|
---|
32 | all: libIDL-$(LIBIDL_LIBVER).dll tstidl.exe
|
---|
33 |
|
---|
34 | install: all
|
---|
35 | $(INSTALL) libIDL-$(LIBIDL_LIBVER).dll $(BIN)
|
---|
36 |
|
---|
37 | libIDL_OBJECTS = \
|
---|
38 | parser.obj \
|
---|
39 | lexer.obj \
|
---|
40 | ns.obj \
|
---|
41 | util.obj
|
---|
42 |
|
---|
43 | libIDL-$(LIBIDL_LIBVER).dll: $(libIDL_OBJECTS)
|
---|
44 | $(CC) $(CFLAGS) -MD -LD -FelibIDL-$(LIBIDL_LIBVER).dll $(libIDL_OBJECTS) $(GLIB_LIB) user32.lib advapi32.lib $(LDFLAGS) /def:libIDL.def
|
---|
45 |
|
---|
46 | .c.obj:
|
---|
47 | $(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\" $<
|
---|
48 |
|
---|
49 | tstidl.exe: libIDL-$(LIBIDL_LIBVER).dll tstidl.obj
|
---|
50 | $(CC) $(CFLAGS) -MD -Fetstidl.exe tstidl.obj libIDL-$(LIBIDL_LIBVER).lib $(GLIB_LIB) $(LDFLAGS) /map
|
---|
51 |
|
---|
52 | clean:
|
---|
53 | del config.h
|
---|
54 | del *.exe
|
---|
55 | del *.obj
|
---|
56 | del *.dll
|
---|
57 | del *.lib
|
---|
58 | del *.err
|
---|
59 | del *.map
|
---|
60 | del *.sym
|
---|
61 | del *.exp
|
---|
62 | del *.lk1
|
---|
63 | del *.mk1
|
---|
64 | del *.pdb
|
---|
65 | del *.ilk
|
---|
Note: See
TracBrowser
for help on using the repository browser.