Changeset 4334 for trunk/include/pdwin32.post
- Timestamp:
- Sep 28, 2000, 5:16:25 AM (25 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/include/pdwin32.post
r4288 r4334 1 # $Id: pdwin32.post,v 1.1 1 2000-09-21 11:17:28bird Exp $1 # $Id: pdwin32.post,v 1.12 2000-09-28 03:16:23 bird Exp $ 2 2 # 3 3 # Odin32 API … … 13 13 # Define NOCLEAN to exclude the clean rule. (Remember to make your own!) 14 14 # 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 # 15 24 25 # Include compiler spesific post rule file. 26 !include $(PDWIN32_INCLUDE)/pdwin32.$(CCENV).post 16 27 17 # Copy library rule.18 !ifndef ORGTARGET19 $(PDWIN32_LIB)\$(TARGET).lib: $(TARGET).lib20 !else21 $(PDWIN32_LIB)\$(ORGTARGET).lib: $(ORGTARGET).lib22 !endif23 $(CP) $** $@24 25 26 # Copy dll rule.27 !ifndef EXETARGET28 $(PDWIN32_BIN)\$(TARGET).dll: $(OBJDIR)\$(TARGET).dll29 !else30 $(PDWIN32_BIN)\$(TARGET).exe: $(OBJDIR)\$(TARGET).exe31 !endif32 cd $(OBJDIR)33 $(MAPSYM) $(TARGET).map34 cd ..\..35 $(CP) $(OBJDIR)\$(TARGET).sym $(PDWIN32_BIN)36 $(CP) $** $@37 $(CP) $** $(@D)..\..\$(@F)38 $(CP) $(OBJDIR)\$(TARGET).sym $(@D)..\..39 40 41 !ifndef NOTEXPDEF42 # make library from the <>exp.def file.43 !ifndef ORGTARGET44 $(TARGET).LIB: $(TARGET)exp.def45 !else46 $(ORGTARGET).LIB: $(ORGTARGET)exp.def47 !endif48 $(IMPLIB) $(IMPLIBFLAGS) $@ $**49 $(CP) $@ $(PDWIN32_LIB)50 51 52 # make the <>exp.def file.53 !ifndef ORGTARGET54 $(TARGET)exp.def: $(TARGET).def55 !else56 $(ORGTARGET)exp.def: $(ORGTARGET).def57 !endif58 $(IMPDEF) $** $@59 !endif60 61 62 # Create the object directory.63 $(OBJDIR):64 @if not exist bin $(MKDIR) bin65 @if not exist $(OBJDIR) $(MKDIR) $(OBJDIR)66 67 68 #69 # General clean rule. To clean more add it to CLEANEXTRAS!70 #71 !ifndef NOCLEAN72 !ifndef CLEAN273 clean:74 !else75 clean: clean276 !endif77 $(RM) *.LIB *.res *.map *.pch \78 !if "$(OBJDIR)" != ""79 $(OBJDIR)\* \80 !endif81 !ifndef LOCALCLEAN82 $(PDWIN32_LIB)\$(TARGET).LIB \83 !ifndef EXETARGET84 $(PDWIN32_BIN)\$(TARGET).dll $(TARGET)exp.def *.dll \85 !else86 $(PDWIN32_BIN)\$(TARGET).exe *.exe \87 !endif88 $(CLEANEXTRAS)89 !else90 $(CLEANEXTRAS)91 !endif92 !endif93 94 95 #96 # Include the .depend file.97 # If the depend file don't exists we'll complain about it.98 #99 !ifndef NODEP100 ! if [$(EXISTS) .depend] == 0101 ! include .depend102 ! else103 ! if [$(ECHO) .depend doesn't exist]104 ! endif105 ! endif106 !endif
Note:
See TracChangeset
for help on using the changeset viewer.