Changeset 3532 for trunk/tools/common/makefile.gcc
- Timestamp:
- May 13, 2000, 5:40:34 PM (25 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/tools/common/makefile.gcc
r2714 r3532 1 # $Id: makefile.gcc,v 1. 3 2000-02-09 23:50:51bird Exp $1 # $Id: makefile.gcc,v 1.4 2000-05-13 15:40:34 bird Exp $ 2 2 3 3 # … … 8 8 # 9 9 10 # common include directory 10 # 11 # Directories and common tools. 12 # 13 PDWIN32_TOOLS = ..\bin 11 14 PDWIN32_INCLUDE = ..\..\include 15 !include $(PDWIN32_INCLUDE)\pdwin32.tools 12 16 13 !ifndef RM 14 RM = rm -f 15 !endif 17 # Definitions for pdwin32.post 18 LOCALCLEAN = 1 19 CLEANEXTRAS = commongcc.* 20 21 22 # 23 # If OMF flag isn't set, set it to default value. 24 # 16 25 !ifndef OMF 17 26 OMF=0 18 27 !endif 28 19 29 20 30 # … … 24 34 CXX = gcc 25 35 LD = gcc 36 !ifdef DEBUG 37 OBJDIR = .\bin\debug 38 !else 39 OBJDIR = .\bin\release 40 !endif 41 26 42 27 43 !if $(OMF) == 0 44 # aout version 28 45 O = o 29 46 LIB = a … … 32 49 33 50 !else 34 51 # OMF version 35 52 O = gobj 36 53 LIB = lib 37 54 AR = emxomfar 38 55 CFZOMF = -Zomf 56 39 57 !endif 58 40 59 41 60 CDEFINES = -D__WIN32OS2__ -D__WINE__ 42 61 CINCLUDES = -I$(PDWIN32_INCLUDE)\Win -I$(PDWIN32_INCLUDE) 62 CPLUS_INCLUDE_PATH= $(CPLUS_INCLUDE_PATH);$(INCLUDE) 43 63 44 # Note: Add -fhandle-exceptions if old gcc version (< 2.8.x?).64 # Note: Add -fhandle-exceptions if old gcc version (< 2.8.x?). 45 65 !ifndef DEBUG 46 66 CFLAGS = $(CFZOMF) -Wall -Zmap -Zmt -mprobe -Wall -s -O … … 52 72 53 73 # 54 # interference rules74 # Interference rules 55 75 # 56 .c .$(O):76 .c{$(OBJDIR)}.$(O): 57 77 $(CC) -c $(CFLAGS) $(CDEFINES) $(CINCLUDES) $< -o $@ 58 78 59 .cpp .$(O):79 .cpp{$(OBJDIR)}.$(O): 60 80 $(CXX) -c $(CXXFLAGS) $(CDEFINES) $(CINCLUDES) $< -o $@ 61 81 62 82 63 64 all: commongcc.$(LIB) 83 # 84 # Object files. 85 # 86 OBJS = \ 87 $(OBJDIR)\kFilePe.$(O) \ 88 $(OBJDIR)\kFileDef.$(O) \ 89 $(OBJDIR)\kFileLx.$(O) \ 90 $(OBJDIR)\kFileFormatBase.$(O) 65 91 66 92 67 commongcc.$(LIB): kFilePE.$(O) kFileDef.$(O) 68 $(RM) $@ 69 $(AR) cr $@ kFilePE.$(O) kFileDef.$(O) 93 # 94 # All rule. 95 # 96 all: $(OBJDIR) \ 97 commongcc.$(LIB) 70 98 71 99 72 dep: 73 @nmake /nologo -f makefile NODEP=1 dep 100 $(OBJDIR)\commongcc.$(LIB): $(OBJS) 101 $(RM) $@ 102 $(AR) cr $@ $(OBJS) 74 103 75 !ifndef NODEP 76 !include .depend 77 !endif 104 commongcc.$(LIB): $(OBJDIR)\commongcc.$(LIB) 105 $(CP) $** $@ 78 106 79 107 80 clean: 81 @$(RM) *.$(O) commongcc.$(LIB) 108 # 109 # dependent rule. forward to main makefile. 110 # 111 dep: 112 @$(MAKE) /nologo -f makefile NODEP=1 dep 82 113 114 115 # Includes the common rules. 116 !include $(PDWIN32_INCLUDE)/pdwin32.post 117
Note:
See TracChangeset
for help on using the changeset viewer.