Changeset 407


Ignore:
Timestamp:
Nov 28, 2008, 6:45:54 PM (17 years ago)
Author:
Brendan Oakley
Message:

Build Lars' installer with OpenWatcom, from Mike Greene

Location:
contrib/installer/install
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • contrib/installer/install/makefile

    r406 r407  
    1 # makefile
    2 # Created by IBM WorkFrame/2 MakeMake at 2:42:32 on 23 Mar 2006
    3 #
    4 # The actions included in this make file are:
    5 #  Compile::C++ Compiler
    6 #  Link::Linker
    7 
    8 # Compiler flags:
    9 #   /Ti :       debug info
    10 #   /Fb :       create browse info
    11 #   /O  :       optimize
    12 #   /Gm :       use multithreaded library
    13 #   /Gd :       indicate to link to RTL dynamically (as DLL),
    14 #               dllrname will then replace CPPOM30.DLL with OS2OM30.DLL
    15 #               as the latter is delivered with OS/2
    16 #   /Ge-:       compile object to be used in DLL
    17 # Linker flags:
    18 #   /de :       debug info
    19 #   /dbgpack:   compress debug info
    20 #   /br:        create browse info
    21 #   /exepack:2  compress binary with OS/2 Warp compatible method
    22 #   /packc:     combine the code segments as much as possible
    23 #   /packd:     combine the data segments as much as possible
    24 #   /optfunc:   remove all not used functions
    251
    262
    27 !IF $(DEBUG)
    28 CFLAGS = /Ti /Fb
    29 LFLAGS = /de /dbgpack /br
    30 !ELSE
    31 CFLAGS = /O
    32 LFLAGS =
    33 !ENDIF
     3CC = wpp386
     4LD = wlink
     5LB = wlib
    346
    35 .SUFFIXES:
     7MACHINE= -6s -fp6
    368
    37 .SUFFIXES: \
    38        .cpp .obj
     9INCLUDE  = $(%watcom)\h;$(%watcom)\h\os2
    3910
    40 .cpp.obj:
    41        @echo " Compile::C++ Compiler "
    42        icc.exe $(CFLAGS) /Q /W1 /Gm /Gd /Ge- /Ft- /C $<
     11!ifndef DEBUG
     12LDDEBUG   = op el
     13CDEBUG    = -d0
     14OPT       = -otbmilera
     15!else
     16LDDEBUG   = d all op map op symf
     17CDEBUG    = -d3 -v
     18OPT       = -od
     19!endif
    4320
    44 all: \
    45        uniinst.dll
     21CFLAGS  = -i=$(INCLUDE) $(CDEBUG) -wx -e25 -zq $(OPT) $(MACHINE) -mf -bd -bm
     22LDFLAGS = $(LDDEBUG) op maxe=25
     23LIBS    = $(%watcom)\lib386\os2\mmpm2.lib
    4624
    47 uniinst.dll: \
    48        uniinst.obj \
    49        uniinst.def
    50        @echo " Link::Linker "
    51        -7 ilink.exe /NOLOGO @<<
    52 $(LFLAGS) /Dll /exepack:2 /nobase /packc /packd /optfunc
    53 /Out:$@
    54 mmpm2.lib
    55 uniinst.def
    56 uniinst.obj
    57 <<
    58        dllrname.exe /Q $@ CPPOM30=OS2OM30 /N
    5925
    60 uniinst.obj: \
    61        uniinst.cpp
     26all: uniinst.dll uniinst.lib
     27
     28uniinst.dll:
     29  wpp386 $(CFLAGS) $*.cpp
     30  $(LD) NAME $* @$*.lnk $(LDFLAGS) LIB $(LIBS) FILE $*.obj
     31
     32uniinst.lib:
     33  wlib $*.lib +$*.dll
     34
     35clean : .SYMBOLIC
     36  -@rm *.dll
     37  -@rm *.lib
     38  @%make cleanrel
     39
     40cleanrel : .PROCEDURE
     41  -@rm *.obj
     42  -@rm *.def
     43  -@rm *.sym
     44  -@rm *.err
     45  -@rm *.lst
     46  -@rm *.map
     47  -@rm *.err
     48
  • contrib/installer/install/uniinst.cpp

    r406 r407  
    1 /********************************************************/
     1********************************************************/
    22/* For how to write an minstall installation DLL see    */
    33/* "Multimedia Subsystem Programming Guide"             */
     
    108108}
    109109
    110 
    111 ULONG APIENTRY Install(
     110__declspec(dllexport) ULONG Install(
    112111                        HWND hwndOwnerHandle,
    113112                        PSZ pszSourcePath,
     
    220219
    221220
    222 ULONG APIENTRY Deinstall(
     221__declspec(dllexport) ULONG Deinstall(
    223222                        HWND hwndOwnerHandle,
    224223                        PSZ pszSourcePath,
     
    262261}
    263262
    264 
Note: See TracChangeset for help on using the changeset viewer.