Changeset 2714 for trunk/tools/common
- Timestamp:
- Feb 10, 2000, 12:52:04 AM (26 years ago)
- Location:
- trunk/tools/common
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/tools/common/makefile
r826 r2714 1 # $Id: makefile,v 1. 2 1999-09-05 02:30:45bird Exp $1 # $Id: makefile,v 1.3 2000-02-09 23:50:51 bird Exp $ 2 2 3 3 # … … 6 6 # Tools common parts 7 7 # 8 # Usage: nmake ( all | clean )8 # Usage: nmake ( all | clean | dep |..) 9 9 # 10 10 # all: Build the entire src. 11 11 # clean: Back to a "virgin" state. 12 # dep: Creates the .depend file. 12 13 # needed: Builds the tools used during compilation of the src tree. 13 14 # commonicc.lib: Build the IBM VA for C++ version of the library. … … 16 17 # 17 18 # 19 20 PDWIN32_INCLUDE = ..\..\include 21 PDWIN32_TOOLS = ..\bin 22 !include $(PDWIN32_INCLUDE)\pdwin32.mk 23 24 18 25 !ifdef DEBUG 19 26 MAKE_CMD = nmake -nologo DEBUG=1 … … 21 28 MAKE_CMD = nmake -nologo 22 29 !endif 30 23 31 24 32 all: commonicc.lib commongcc.a commongcc.lib … … 28 36 29 37 38 dep: 39 $(DEPEND) -I$(PDWIN32_INCLUDE);$(PDWIN32_INCLUDE)\win \ 40 *.h *.asm *.inc $(PDWIN32_INCLUDE)\*.h *.c *.cpp -objo *.c *.cpp -objgobj *.c *.cpp 41 42 30 43 commonicc.lib: dummy 31 32 44 -@echo $@ 45 @$(MAKE_CMD) -f makefile.icc 33 46 34 47 commongcc.a: dummy 35 36 48 -@echo $@ 49 @$(MAKE_CMD) OMF=0 -f makefile.gcc 37 50 38 51 commongcc.lib: dummy 39 40 52 -@echo $@ 53 @$(MAKE_CMD) OMF=1 -f makefile.gcc 41 54 42 55 #a simple hack to make nmake process the target. … … 44 57 -@echo ... 45 58 59 46 60 clean: 47 48 49 61 @$(MAKE_CMD) -f makefile.icc clean 62 @$(MAKE_CMD) OMF=0 -f makefile.gcc clean 63 @$(MAKE_CMD) OMF=1 -f makefile.gcc clean 50 64 51 65 -
trunk/tools/common/makefile.gcc
r826 r2714 1 # $Id: makefile.gcc,v 1. 2 1999-09-05 02:30:46bird Exp $1 # $Id: makefile.gcc,v 1.3 2000-02-09 23:50:51 bird Exp $ 2 2 3 3 # … … 44 44 #Note: Add -fhandle-exceptions if old gcc version (< 2.8.x?). 45 45 !ifndef DEBUG 46 CFLAGS 46 CFLAGS = $(CFZOMF) -Wall -Zmap -Zmt -mprobe -Wall -s -O 47 47 !else 48 CFLAGS 48 CFLAGS = $(CFZOMF) -Wall -Zmap -Zmt -mprobe -Wall -g 49 49 !endif 50 50 CXXFLAGS = $(CFLAGS) … … 66 66 67 67 commongcc.$(LIB): kFilePE.$(O) kFileDef.$(O) 68 -$(RM) $@68 $(RM) $@ 69 69 $(AR) cr $@ kFilePE.$(O) kFileDef.$(O) 70 70 71 71 72 clean: 73 -@$(RM) *.$(O) 74 -@$(RM) commongcc.$(LIB) 72 dep: 73 @nmake /nologo -f makefile NODEP=1 dep 74 75 !ifndef NODEP 76 !include .depend 77 !endif 75 78 76 79 77 # dependencies 78 kFilePE.$(O): kFilePE.cpp \ 79 kFilePE.h \ 80 kFileFormatBase.h 80 clean: 81 @$(RM) *.$(O) commongcc.$(LIB) 81 82 82 kFileDef.$(O): kFileDef.cpp \83 kFileDef.h \84 kFileFormatBase.h85 -
trunk/tools/common/makefile.icc
r1007 r2714 1 # $Id: makefile.icc,v 1. 3 1999-09-22 09:46:52 sandervlExp $1 # $Id: makefile.icc,v 1.4 2000-02-09 23:50:51 bird Exp $ 2 2 3 3 # … … 28 28 29 29 30 clean: 31 -@$(RM) *.obj 32 -@$(RM) commonicc.lib 33 -@$(RM) cset*.pch 30 dep: 31 @nmake /nologo -f makefile NODEP=1 dep 32 33 !ifndef NODEP 34 !include .depend 35 !endif 34 36 35 37 36 # dependencies 37 kFilePE.obj: kFilePE.cpp \ 38 kFilePE.h \ 39 kFileFormatBase.h 40 41 kFileDef.obj: kFileDef.cpp \ 42 kFileDef.h \ 43 kFileFormatBase.h 38 clean: 39 @$(RM) *.obj commonicc.lib cset*.pch 44 40 45 41 42 43
Note:
See TracChangeset
for help on using the changeset viewer.