| 1 | #
|
|---|
| 2 | # PD-Win32 API
|
|---|
| 3 | #
|
|---|
| 4 | # ole32.dll makefile
|
|---|
| 5 | #
|
|---|
| 6 |
|
|---|
| 7 | PDWIN32_INCLUDE = ..\..\include
|
|---|
| 8 | PDWIN32_LIB = ..\..\lib
|
|---|
| 9 | PDWIN32_BIN = ..\..\bin
|
|---|
| 10 | PDWIN32_TOOLS = ..\..\tools\bin
|
|---|
| 11 |
|
|---|
| 12 |
|
|---|
| 13 | !include $(PDWIN32_INCLUDE)/pdwin32.mk
|
|---|
| 14 |
|
|---|
| 15 |
|
|---|
| 16 | CFLAGS = $(CFLAGS) -I$(PDWIN32_INCLUDE)
|
|---|
| 17 | CXXFLAGS = $(CXXFLAGS) -I$(PDWIN32_INCLUDE)
|
|---|
| 18 |
|
|---|
| 19 |
|
|---|
| 20 | TARGET = ole32
|
|---|
| 21 |
|
|---|
| 22 | OBJS = ole32.obj \
|
|---|
| 23 | antimoniker.obj \
|
|---|
| 24 | bindctx.obj \
|
|---|
| 25 | clsid.obj \
|
|---|
| 26 | compositemoniker.obj \
|
|---|
| 27 | datacache.obj \
|
|---|
| 28 | defaulthandler.obj \
|
|---|
| 29 | filemoniker.obj \
|
|---|
| 30 | guid.obj \
|
|---|
| 31 | hglobalstream.obj \
|
|---|
| 32 | initialise.obj \
|
|---|
| 33 | initterm.obj \
|
|---|
| 34 | itemmoniker.obj \
|
|---|
| 35 | iunknown.obj \
|
|---|
| 36 | library.obj \
|
|---|
| 37 | memlockbytes.obj \
|
|---|
| 38 | moniker.obj \
|
|---|
| 39 | oString.obj \
|
|---|
| 40 | ole2.obj \
|
|---|
| 41 | oleobj.obj \
|
|---|
| 42 | oleClip.obj \
|
|---|
| 43 | oleDrag.obj \
|
|---|
| 44 | oleMenu.obj \
|
|---|
| 45 | stg_bigblockfile.obj \
|
|---|
| 46 | stg_stream.obj \
|
|---|
| 47 | storage.obj \
|
|---|
| 48 | stubs.obj \
|
|---|
| 49 | taskmem.obj
|
|---|
| 50 |
|
|---|
| 51 | all: $(TARGET).dll $(TARGET).lib regsvr32.exe
|
|---|
| 52 |
|
|---|
| 53 |
|
|---|
| 54 | $(TARGET).dll: $(OBJS) $(TARGET).def
|
|---|
| 55 | $(LD) $(LDFLAGS) -Fm -Fe$@ $(OBJS) $(TARGET).def \
|
|---|
| 56 | $(PDWIN32_LIB)\pmwinx.lib \
|
|---|
| 57 | $(PDWIN32_LIB)\user32.lib \
|
|---|
| 58 | $(PDWIN32_LIB)\gdi32.lib \
|
|---|
| 59 | $(PDWIN32_LIB)\comctl32.lib \
|
|---|
| 60 | $(PDWIN32_LIB)\advapi32.lib \
|
|---|
| 61 | $(PDWIN32_LIB)\kernel32.lib \
|
|---|
| 62 | $(PDWIN32_LIB)/odincrt.lib OS2386.LIB $(RTLLIB_O)
|
|---|
| 63 | $(CP) $@ $(PDWIN32_BIN)
|
|---|
| 64 | # $(PDWIN32_LIB)\ntdll.lib \
|
|---|
| 65 |
|
|---|
| 66 | $(TARGET).lib: $(TARGET)exp.def
|
|---|
| 67 | $(IMPLIB) $(IMPLIBFLAGS) $@ $(TARGET)exp.def
|
|---|
| 68 | $(CP) $@ $(PDWIN32_LIB)
|
|---|
| 69 |
|
|---|
| 70 | $(TARGET)exp.def: $(TARGET).def
|
|---|
| 71 | $(IMPDEF) $** $@
|
|---|
| 72 |
|
|---|
| 73 |
|
|---|
| 74 | antimoniker.obj: antimoniker.cpp
|
|---|
| 75 | bindctx.obj: bindctx.cpp
|
|---|
| 76 | clsid.obj: clsid.cpp
|
|---|
| 77 | compositemoniker.obj: compositemoniker.cpp
|
|---|
| 78 | datacache.obj: datacache.cpp
|
|---|
| 79 | defaulthandler.obj: defaulthandler.cpp
|
|---|
| 80 | filemoniker.obj: filemoniker.cpp
|
|---|
| 81 | guid.obj: guid.cpp
|
|---|
| 82 | hglobalstream.obj: hglobalstream.cpp
|
|---|
| 83 | initialise.obj: initialise.cpp
|
|---|
| 84 | initterm.obj: initterm.cpp
|
|---|
| 85 | iunknown.obj: iunknown.cpp
|
|---|
| 86 | itemmoniker.obj: itemmoniker.cpp
|
|---|
| 87 | library.obj: library.cpp
|
|---|
| 88 | memlockbytes.obj: memlockbytes.cpp
|
|---|
| 89 | moniker.obj: moniker.cpp
|
|---|
| 90 | oString.obj: oString.cpp
|
|---|
| 91 | ole2.obj: ole2.cpp
|
|---|
| 92 | oleobj.obj: oleobj.cpp
|
|---|
| 93 | ole32.obj: ole32.cpp
|
|---|
| 94 | oleClip.obj: oleClip.cpp
|
|---|
| 95 | oleDrag.obj: oleDrag.cpp
|
|---|
| 96 | oleMenu.obj: oleMenu.cpp
|
|---|
| 97 | stg_bigblockfile.obj: stg_bigblockfile.cpp
|
|---|
| 98 | stg_stream.obj: stg_stream.cpp
|
|---|
| 99 | storage.obj: storage.cpp
|
|---|
| 100 | stubs.obj: stubs.cpp
|
|---|
| 101 | taskmem.obj: taskmem.cpp
|
|---|
| 102 |
|
|---|
| 103 | regsvr32.obj: regsvr32.cpp
|
|---|
| 104 | $(CC) -C $(CXXFLAGS) -Ge+ -Tm+ $**
|
|---|
| 105 |
|
|---|
| 106 | regsvr32.exe: regsvr32.obj regsvr32.def \
|
|---|
| 107 | $(PDWIN32_LIB)/user32.lib \
|
|---|
| 108 | $(PDWIN32_LIB)/kernel32.lib \
|
|---|
| 109 | $(PDWIN32_LIB)/ole32.lib
|
|---|
| 110 | $(LD) $(LDFLAGS) -Ge+ -Fm -Fe$@ $** \
|
|---|
| 111 | $(PDWIN32_LIB)/odincrt.lib OS2386.LIB $(RTLLIB_O)
|
|---|
| 112 | $(CP) $@ $(PDWIN32_BIN)
|
|---|
| 113 |
|
|---|
| 114 | clean:
|
|---|
| 115 | $(RM) *.obj *.lib *.dll *~ *.map *.pch
|
|---|
| 116 | $(RM) $(PDWIN32_BIN)\$(TARGET).dll
|
|---|
| 117 | $(RM) $(PDWIN32_LIB)\$(TARGET).lib
|
|---|
| 118 | $(RM) $(PDWIN32_BIN)\regsvr32.exe
|
|---|
| 119 |
|
|---|
| 120 |
|
|---|