Ignore:
Timestamp:
Sep 28, 2000, 5:16:25 AM (25 years ago)
Author:
bird
Message:

Support for new makefile style.
Changed watcom. Nows uses UNIX compatible mode rather than M$.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/include/pdwin32.post

    r4288 r4334  
    1 # $Id: pdwin32.post,v 1.11 2000-09-21 11:17:28 bird Exp $
     1# $Id: pdwin32.post,v 1.12 2000-09-28 03:16:23 bird Exp $
    22#
    33# Odin32 API
     
    1313# Define NOCLEAN to exclude the clean rule. (Remember to make your own!)
    1414#
     15# New style: (define NEW_STYLE)
     16# Define NO_ALL_RULE to not make default all rule.
     17# Define NO_LIB_RULE to not make default lib rule.
     18# Define NO_DLL_RULE to not make default dll rule.
     19# Define NO_EXE_RULE to not make default exe rule.
     20# Define NO_LNKFILE_RULE to not make default link-file rule.
     21# Define NO_DEP_RULE to not make dependencies rule.
     22# Define NO_CLEAN_RULE to not make clean rule (same as NOCLEAN - use this!).
     23#
    1524
     25# Include compiler spesific post rule file.
     26!include $(PDWIN32_INCLUDE)/pdwin32.$(CCENV).post
    1627
    17 # Copy library rule.
    18 !ifndef ORGTARGET
    19 $(PDWIN32_LIB)\$(TARGET).lib: $(TARGET).lib
    20 !else
    21 $(PDWIN32_LIB)\$(ORGTARGET).lib: $(ORGTARGET).lib
    22 !endif
    23     $(CP) $** $@
    24 
    25 
    26 # Copy dll rule.
    27 !ifndef EXETARGET
    28 $(PDWIN32_BIN)\$(TARGET).dll: $(OBJDIR)\$(TARGET).dll
    29 !else
    30 $(PDWIN32_BIN)\$(TARGET).exe: $(OBJDIR)\$(TARGET).exe
    31 !endif
    32     cd $(OBJDIR)
    33     $(MAPSYM) $(TARGET).map
    34     cd ..\..
    35     $(CP) $(OBJDIR)\$(TARGET).sym $(PDWIN32_BIN)
    36     $(CP) $** $@
    37     $(CP) $** $(@D)..\..\$(@F)
    38     $(CP) $(OBJDIR)\$(TARGET).sym $(@D)..\..
    39 
    40 
    41 !ifndef NOTEXPDEF
    42 # make library from the <>exp.def file.
    43 !ifndef ORGTARGET
    44 $(TARGET).LIB: $(TARGET)exp.def
    45 !else
    46 $(ORGTARGET).LIB: $(ORGTARGET)exp.def
    47 !endif
    48     $(IMPLIB) $(IMPLIBFLAGS) $@ $**
    49     $(CP) $@ $(PDWIN32_LIB)
    50 
    51 
    52 # make the <>exp.def file.
    53 !ifndef ORGTARGET
    54 $(TARGET)exp.def: $(TARGET).def
    55 !else
    56 $(ORGTARGET)exp.def: $(ORGTARGET).def
    57 !endif
    58     $(IMPDEF) $** $@
    59 !endif
    60 
    61 
    62 # Create the object directory.
    63 $(OBJDIR):
    64     @if not exist bin $(MKDIR) bin
    65     @if not exist $(OBJDIR) $(MKDIR) $(OBJDIR)
    66 
    67 
    68 #
    69 # General clean rule. To clean more add it to CLEANEXTRAS!
    70 #
    71 !ifndef NOCLEAN
    72 !ifndef CLEAN2
    73 clean:
    74 !else
    75 clean:  clean2
    76 !endif
    77     $(RM) *.LIB *.res *.map *.pch \
    78 !if "$(OBJDIR)" != ""
    79      $(OBJDIR)\* \
    80 !endif
    81 !ifndef LOCALCLEAN
    82         $(PDWIN32_LIB)\$(TARGET).LIB \
    83 !ifndef EXETARGET
    84         $(PDWIN32_BIN)\$(TARGET).dll $(TARGET)exp.def *.dll \
    85 !else
    86         $(PDWIN32_BIN)\$(TARGET).exe *.exe \
    87 !endif
    88         $(CLEANEXTRAS)
    89 !else
    90         $(CLEANEXTRAS)
    91 !endif
    92 !endif
    93 
    94 
    95 #
    96 # Include the .depend file.
    97 #   If the depend file don't exists we'll complain about it.
    98 #
    99 !ifndef NODEP
    100 !   if [$(EXISTS) .depend] == 0
    101 !       include .depend
    102 !   else
    103 !       if [$(ECHO) .depend doesn't exist]
    104 !       endif
    105 !   endif
    106 !endif
Note: See TracChangeset for help on using the changeset viewer.