source: trunk/third/libIDL/Makefile.msc @ 21474

Revision 21474, 1.8 KB checked in by ghudson, 19 years ago (diff)
This commit was generated by cvs2svn to compensate for changes in r21473, 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.
7BIN = C:\Bin
8
9# GLib location
10GLIB_INCLUDES = -I/Devel/Port/glib
11GLIB_LIBPATH = c:\Devel\Port\glib
12GLIB_LIB = glib-1.2.lib
13
14# libIDL dll version
15LIBIDL_REALVER = 0.8.5
16LIBIDL_LIBVER = 0.8
17
18# Debug build
19LDOPT = /debug:full /debugtype:cv
20CCOPT = -Ox
21#CCOPT = -Zi # Debug build
22
23
24################################################################
25CC = cl -G5 -GF $(CCOPT) -W3 -D_DLL -nologo
26LDFLAGS = /link /nodefaultlib:libc msvcrt.lib /libpath:$(GLIB_LIBPATH) $(LDOPT)
27INSTALL = copy
28TOUCH = copy Makefile.msc+nul
29
30CFLAGS = -I. $(GLIB_INCLUDES)
31
32all:   libIDL-$(LIBIDL_LIBVER).dll tstidl.exe
33
34install: all
35        $(INSTALL) libIDL-$(LIBIDL_LIBVER).dll $(BIN)
36
37libIDL_OBJECTS =                                \
38        parser.obj                              \
39        lexer.obj                               \
40        ns.obj                                  \
41        util.obj
42
43libIDL-$(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
49tstidl.exe: libIDL-$(LIBIDL_LIBVER).dll tstidl.obj
50        $(CC) $(CFLAGS) -MD -Fetstidl.exe tstidl.obj libIDL-$(LIBIDL_LIBVER).lib $(GLIB_LIB) $(LDFLAGS) /map
51
52clean:
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.