Ignore:
Timestamp:
Mar 7, 2000, 12:42:12 AM (25 years ago)
Author:
bird
Message:

Makefiles are updated to new style.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/include/pdwin32.post

    r3019 r3032  
    1 # $Id: pdwin32.post,v 1.1 2000-03-04 23:46:24 sandervl Exp $
     1# $Id: pdwin32.post,v 1.2 2000-03-06 23:42:11 bird Exp $
    22#
    3 # PD-Win32 Project
     3# Odin32 API
    44#
    5 # Common dll makefile rules (must be included at the last line of the makefile
     5# Common dll makefile rules (must be included at the last line of the makefile)
     6#
     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'.
    613#
    714
     15
     16# Copy library rule.
     17!ifndef ORGTARGET
     18$(PDWIN32_LIB)\$(TARGET).lib: $(TARGET).lib
     19!else
     20$(PDWIN32_LIB)\$(ORGTARGET).lib: $(ORGTARGET).lib
     21!endif
     22    $(CP) $** $@
     23
     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
     31    $(CP) $** $@
     32    $(CP) $** $@..\..
     33
     34
     35!ifndef NOTEXPDEF
     36# make library from the <>exp.def file.
     37!ifndef ORGTARGET
     38$(TARGET).LIB: $(TARGET)exp.def
     39!else
     40$(ORGTARGET).LIB: $(ORGTARGET)exp.def
     41!endif
     42    $(IMPLIB) $(IMPLIBFLAGS) $@ $**
     43    $(CP) $@ $(PDWIN32_LIB)
     44
     45
     46# make the <>exp.def file.
     47!ifndef ORGTARGET
     48$(TARGET)exp.def: $(TARGET).def
     49!else
     50$(ORGTARGET)exp.def: $(ORGTARGET).def
     51!endif
     52    $(IMPDEF) $** $@
     53!endif
     54
     55
     56# Create the object directory.
     57$(OBJDIR):
     58    @if not exist bin $(MKDIR) bin
     59    @if not exist $(OBJDIR) $(MKDIR) $(OBJDIR)
     60
     61
     62#
     63# General clean rule. To clean more add it to CLEANEXTRAS!
     64#
     65!ifndef CLEAN2
     66clean:
     67!else
     68clean:  clean2
     69!endif
     70    $(RM) $(OBJDIR)\* *.LIB *.res *.map *.pch \
     71!ifndef LOCALCLEAN
     72        $(PDWIN32_LIB)\$(TARGET).LIB \
     73!ifndef EXETARGET
     74        $(PDWIN32_BIN)\$(TARGET).dll $(TARGET)exp.def *.dll \
     75!else
     76        $(PDWIN32_BIN)\$(TARGET).exe *.exe \
     77!endif
     78        $(CLEANEXTRAS)
     79!else
     80        $(CLEANEXTRAS)
     81!endif
     82
     83
     84# Include the dependencies.
    885!ifndef NODEP
    986!include .depend
    1087!endif
    11 
    12 $(PDWIN32_LIB)\$(TARGET).lib: $(TARGET).lib
    13     $(CP) $** $@
    14 
    15 $(TARGET).LIB: $(TARGET)exp.def
    16     $(IMPLIB) $(IMPLIBFLAGS) $@ $(TARGET)exp.def
    17     $(CP) $@ $(PDWIN32_LIB)
    18 
    19 $(TARGET)exp.def: $(TARGET).def
    20     $(IMPDEF) $** $@
    21 
    22 $(OBJDIR):
    23     @if not exist bin mkdir bin
    24     @if not exist $(OBJDIR) mkdir $(OBJDIR)
    25 
    26 clean:
    27     $(RM) $(OBJDIR)\*.OBJ
    28     $(RM) $(OBJDIR)\*.lrf
    29     $(RM) *.LIB
    30     $(RM) *.dll
    31     $(RM) *.res
    32     $(RM) *.map
    33     $(RM) *.pch
    34     $(RM) $(RESOURCES).asm
    35     $(RM) $(PDWIN32_LIB)\$(TARGET).LIB
    36     $(RM) $(PDWIN32_BIN)\$(TARGET).dll
    37     $(RM) $(TARGET)exp.def
Note: See TracChangeset for help on using the changeset viewer.