source: trunk/src/emx/mkdll.smak@ 767

Last change on this file since 767 was 578, checked in by bird, 22 years ago

Map files and .a stripping.

  • Property cvs2svn:cvs-rev set to 1.2
  • Property svn:eol-style set to native
  • Property svn:executable set to *
  • Property svn:keywords set to Author Date Id Revision
File size: 846 bytes
Line 
1# This submakefile is included when a module needs to build a DLL.
2# For a list of additional variables that can be defined prior to including
3# this submakefile see build.txt.
4
5include common.smak
6
7tools: $(.MODULE)
8
9# Linking rule
10RULES += \
11 $(call FECHO,_@,$$.$(.TARG): $(.OBJS) $(.DEPS) $(.TDEF))$(NL)\
12 $(call FECHO,_@, $$(call DO.LINK.dll,$(.TLDF)))$(NL)
13
14# Add unstripped copy.
15ifeq ($(MODE),opt)
16ifdef .TARGET
17ifneq ($(.TARGET),$(.TARGET:.dll=.dbg))
18INS.FILES += $(INS)$(.INSDIR)$(.TARGET:.dll=.dbg)
19$(INS)$(.INSDIR)$(.TARGET:.dll=.dbg): $.$(.TARG:.dll=.dbg)
20 $(call CP,$<,$@)
21endif
22endif
23endif
24
25# Map file.
26ifdef .TARGET
27ifneq ($(.TARGET),$(.TARGET:.exe=.map))
28INS.FILES += $(INS)$(.INSDIR)$(.TARGET:.exe=.map)
29$(INS)$(.INSDIR)$(.TARGET:.exe=.map): $.$(.TARG:.exe=.map)
30 $(call CP,$<,$@)
31endif
32endif
33
34include comend.smak
Note: See TracBrowser for help on using the repository browser.