Changeset 4654 for trunk/tools
- Timestamp:
- Nov 21, 2000, 5:37:23 AM (25 years ago)
- Location:
- trunk/tools/common
- Files:
-
- 3 added
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/tools/common/common.mk
r4620 r4654 1 # $Id: common.mk,v 1. 2 2000-11-19 08:29:54bird Exp $1 # $Id: common.mk,v 1.3 2000-11-21 04:37:22 bird Exp $ 2 2 # 3 3 # Common definitions for tools. … … 13 13 14 14 15 16 15 # 17 # Make a suggestion of which common<gcc|icc>.<a|lib> library 18 # to use. 19 # not defined OMF indicates ICC 16 # Make a suggestion of which common.<a|lib> library to use. 17 # Not defined OMF indicates VAC or Watcom. 20 18 # OMF=0 indicates GCC+aout 21 19 # OMF=1 indicates GCC+OMF 22 20 # 23 !ifndef OMF24 COMMONLIB = $(PDWIN32_TCOMMON)\ commonicc.lib21 !ifndef GCC 22 COMMONLIB = $(PDWIN32_TCOMMON)\$(OBJDIR)\common.lib 25 23 !else 26 24 !if $(OMF) == 0 27 COMMONLIB = $(PDWIN32_TCOMMON)\ commongcc.a25 COMMONLIB = $(PDWIN32_TCOMMON)\$(OBJDIR)\common.a 28 26 !else 29 COMMONLIB = $(PDWIN32_TCOMMON)\ commongcc.lib27 COMMONLIB = $(PDWIN32_TCOMMON)\$(OBJDIR)\common.lib 30 28 !endif 31 29 !endif … … 35 33 # Add PDWIN32_TCOMMON to the C and C++ includes. 36 34 # 37 CINCLUDES = -I$(PDWIN32_TCOMMON) $(CINCLUDE )35 CINCLUDES = -I$(PDWIN32_TCOMMON) $(CINCLUDES) 38 36 37 38 # 39 # No internal libs cause we define our own internal libs. 40 # 41 NO_INTERNAL_LIBS = 1 42 INTLIBS = $(COMMONLIB) 43 -
trunk/tools/common/common.mk.post
r3536 r4654 1 # $Id: common.mk.post,v 1. 1 2000-05-13 17:17:08bird Exp $1 # $Id: common.mk.post,v 1.2 2000-11-21 04:37:22 bird Exp $ 2 2 # 3 3 # Common rules for tools. … … 17 17 # Rules for making 18 18 # 19 $(PDWIN32_TCOMMON)\commongcc.a \ 20 $(PDWIN32_TCOMMON)\commongcc.lib \ 21 $(PDWIN32_TCOMMON)\commonicc.lib : commonforce 19 $(PDWIN32_TCOMMON)\$(OBJDIR)\common.a \ 20 $(PDWIN32_TCOMMON)\$(OBJDIR)\common.lib : commonforce 22 21 cd $(PDWIN32_TCOMMON) 23 22 !ifdef MAKE_CMD … … 26 25 $(MAKE) -nologo \ 27 26 !endif 28 $( @F)27 $(OBJDIR)\$(@F) 29 28 cd $(MAKEDIR) 29 30 30 31 31 # -
trunk/tools/common/makefile
r4620 r4654 1 # $Id: makefile,v 1. 8 2000-11-19 08:29:54bird Exp $1 # $Id: makefile,v 1.9 2000-11-21 04:37:23 bird Exp $ 2 2 3 3 # … … 12 12 # dep: Creates the .depend file. 13 13 # needed: Builds the tools used during compilation of the src tree. 14 # common icc.lib: Build the IBM VA for C++ version of the library.15 # commongcc.a: Build the gcc version of the library - aout16 # commongcc.lib: Build the gcc version of the library - OMF.14 # common.lib or libs: Make common.lib. 15 # kDef2Wat.exe: kDef2Wat.exe 16 # kDump.exe: kDump.exe 17 17 # 18 18 # 19 19 20 21 # 22 # Compiler, tools, and interference rules. 23 # 20 24 !include ..\..\include\pdwin32.mk 21 25 22 26 23 all: commonicc.lib commongcc.a commongcc.lib \ 27 # 28 # All rule. 29 # 30 all: $(OBJDIR)\common.lib \ 31 !ifdef GCC 32 $(OBJDIR)\common.a \ 33 !endif 24 34 $(PDWIN32_TOOLS)\kDef2Wat.exe 25 35 # $(PDWIN32_TOOLS)\kDump.exe 26 36 27 37 28 needed: commonicc.lib $(PDWIN32_TOOLS)\kDef2Wat.exe 38 # 39 # The neede tools 40 # 41 needed: $(OBJDIR)\common.lib \ 42 $(PDWIN32_TOOLS)\kDef2Wat.exe 29 43 30 44 31 commonicc.lib: dummy 45 # 46 # The library. 47 # 48 libs $(OBJDIR)\common.lib: force 32 49 -@echo $@ 33 @$(MAKE_CMD) -f makefile.icc50 @$(MAKE_CMD) -f common.mak all 34 51 35 commongcc.a: dummy 52 # 53 # The Aout library. 54 # 55 $(OBJDIR)\common.a: force 36 56 -@echo $@ 37 @$(MAKE_CMD) OMF=0 -f makefile.gcc 38 39 commongcc.lib: dummy 40 -@echo $@ 41 @$(MAKE_CMD) OMF=1 -f makefile.gcc 57 @$(MAKE_CMD) OMF=1 -f common.mak all 42 58 43 59 44 $(PDWIN32_TOOLS)\kDump.exe $(OBJDIR)\kDump.exe kDump.exe: dummy 60 # 61 # Tools. 62 # 63 $(PDWIN32_TOOLS)\kDump.exe $(OBJDIR)\kDump.exe kDump.exe \ 64 $(PDWIN32_TOOLS)\kDef2Wat.exe $(OBJDIR)\kDef2Wat.exe kDef2Wat.exe : force 45 65 -@echo $@ 46 @$(MAKE_CMD) -f makefile.icc $@66 @$(MAKE_CMD) -f $(@B).mak all 47 67 48 68 49 $(PDWIN32_TOOLS)\kDef2Wat.exe $(OBJDIR)\kDef2Wat.exe kDef2Wat.exe: dummy 50 -@echo $@ 51 @$(MAKE_CMD) -f makefile.icc $@ 69 # 70 # Clean rule. 71 # 72 clean: 73 $(MAKE_CMD) -f common.mak clean 74 $(MAKE_CMD) -f kDef2Wat.mak clean 75 $(MAKE_CMD) -f kDump.mak clean 52 76 53 77 54 #a simple hack to make nmake process the target. 55 dummy: 78 # 79 # Dep rule - makes depenencies for C, C++ and Asm files. 80 # 81 dep: 82 $(DEPEND) $(CINCLUDES) *.c *.cpp *.h *.asm *.inc \ 83 *.rc *.dlg $(PDWIN32_INCLUDE)\*.h -robj *.orc \ 84 -objo *.c *.cpp \ 85 -objgobj *.c *.cpp 86 87 88 # 89 # A simple hack to make nmake process the target. 90 # 91 force: 56 92 -@echo ... 57 93 58 94 59 clean: 60 @$(MAKE_CMD) -f makefile.icc clean 61 @$(MAKE_CMD) OMF=0 -f makefile.gcc clean 62 @$(MAKE_CMD) OMF=1 -f makefile.gcc clean 95 # 96 # Lib rule - dummy rule 97 # 98 lib: 63 99 64 65 dep:66 $(DEPEND) -I$(PDWIN32_INCLUDE);$(PDWIN32_INCLUDE)\win \67 *.h *.asm *.inc $(PDWIN32_INCLUDE)\*.h *.c *.cpp -objo *.c *.cpp -objgobj *.c *.cpp68 69 #70 # Do not includes the common rules.71 #72
Note:
See TracChangeset
for help on using the changeset viewer.