source: trunk/include/pdwin32.post@ 4114

Last change on this file since 4114 was 3531, checked in by bird, 25 years ago

Corrected a comment text.

File size: 2.2 KB
RevLine 
[3531]1# $Id: pdwin32.post,v 1.10 2000-05-13 14:46:21 bird Exp $
[3019]2#
[3032]3# Odin32 API
[3019]4#
[3032]5# Common dll makefile rules (must be included at the last line of the makefile)
[3019]6#
[3032]7# If ORGTARGET is defined it is used to generate the importlibrary.
8#
9# Define NOTEXPDEF to remove the $(TARGET).lib and $(TARGET)exp.def rules.
10# Define EXETARGET to make an executable. (This also applies to pdwin32.mk.)
11# Define LOCALCLEAN if only the local directory is to be clean.
12# Define CLEAN2 to invoke a second clean rule named 'clean2'.
13#
[3019]14
15
[3032]16# Copy library rule.
17!ifndef ORGTARGET
[3019]18$(PDWIN32_LIB)\$(TARGET).lib: $(TARGET).lib
[3032]19!else
20$(PDWIN32_LIB)\$(ORGTARGET).lib: $(ORGTARGET).lib
21!endif
[3019]22 $(CP) $** $@
23
[3032]24
25# Copy dll rule.
26!ifndef EXETARGET
27$(PDWIN32_BIN)\$(TARGET).dll: $(OBJDIR)\$(TARGET).dll
28!else
29$(PDWIN32_BIN)\$(TARGET).exe: $(OBJDIR)\$(TARGET).exe
30!endif
[3480]31 cd $(OBJDIR)
[3531]32 $(MAPSYM) $(TARGET).map
[3480]33 cd ..\..
34 $(CP) $(OBJDIR)\$(TARGET).sym $(PDWIN32_BIN)
[3032]35 $(CP) $** $@
[3038]36 $(CP) $** $(@D)..\..\$(@F)
[3480]37 $(CP) $(OBJDIR)\$(TARGET).sym $(@D)..\..
[3032]38
39
40!ifndef NOTEXPDEF
41# make library from the <>exp.def file.
42!ifndef ORGTARGET
[3019]43$(TARGET).LIB: $(TARGET)exp.def
[3032]44!else
45$(ORGTARGET).LIB: $(ORGTARGET)exp.def
46!endif
47 $(IMPLIB) $(IMPLIBFLAGS) $@ $**
[3019]48 $(CP) $@ $(PDWIN32_LIB)
49
[3032]50
51# make the <>exp.def file.
52!ifndef ORGTARGET
[3019]53$(TARGET)exp.def: $(TARGET).def
[3032]54!else
55$(ORGTARGET)exp.def: $(ORGTARGET).def
56!endif
[3019]57 $(IMPDEF) $** $@
[3032]58!endif
[3019]59
[3032]60
61# Create the object directory.
[3019]62$(OBJDIR):
[3032]63 @if not exist bin $(MKDIR) bin
64 @if not exist $(OBJDIR) $(MKDIR) $(OBJDIR)
[3019]65
[3032]66
67#
68# General clean rule. To clean more add it to CLEANEXTRAS!
69#
70!ifndef CLEAN2
[3019]71clean:
[3032]72!else
73clean: clean2
74!endif
[3053]75 $(RM) *.LIB *.res *.map *.pch \
76!if "$(OBJDIR)" != ""
77 $(OBJDIR)\* \
78!endif
[3032]79!ifndef LOCALCLEAN
80 $(PDWIN32_LIB)\$(TARGET).LIB \
81!ifndef EXETARGET
82 $(PDWIN32_BIN)\$(TARGET).dll $(TARGET)exp.def *.dll \
83!else
84 $(PDWIN32_BIN)\$(TARGET).exe *.exe \
85!endif
86 $(CLEANEXTRAS)
87!else
88 $(CLEANEXTRAS)
89!endif
90
91
[3055]92#
93# Include the .depend file.
[3531]94# If the depend file don't exists we'll complain about it.
[3055]95#
[3032]96!ifndef NODEP
[3064]97! if [$(EXISTS) .depend] == 0
[3055]98! include .depend
[3064]99! else
100! if [$(ECHO) .depend doesn't exist]
101! endif
102! endif
[3032]103!endif
Note: See TracBrowser for help on using the repository browser.