Changeset 4624 for trunk/src/msvcrt
- Timestamp:
- Nov 19, 2000, 10:27:40 AM (25 years ago)
- Location:
- trunk/src/msvcrt
- Files:
-
- 3 added
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/msvcrt/makefile
r4069 r4624 1 # $Id: makefile,v 1.1 8 2000-08-22 08:09:21 phallerExp $1 # $Id: makefile,v 1.19 2000-11-19 09:09:12 bird Exp $ 2 2 3 3 # 4 4 # Odin32 API 5 5 # 6 # msvcrt.dll makefile6 # msvcrt.dll, msvcrt20.dll and msvcrt40.dll makefile 7 7 # 8 8 9 # Directory macros. 10 PDWIN32_INCLUDE = ..\..\include 11 PDWIN32_LIB = ..\..\lib 12 PDWIN32_BIN = ..\..\$(OBJDIR) 13 PDWIN32_TOOLS = ..\..\tools\bin 9 10 # 11 # Compiler, tools, and interference rules. 12 # 13 !include ../../include/pdwin32.mk 14 14 15 15 16 # Compiler, tools, and interference rules. 17 !include $(PDWIN32_INCLUDE)/pdwin32.mk 16 # 17 # Generic rules which forwards to the real makefiles. 18 # The all rule has to stand alone, else make will make all the rules if it 19 # is invoked without any target. 20 # 21 _all: all 22 23 all clean lib: # add all common rules here 24 $(MAKE_CMD) -f msvcrt.mak $@ 25 $(MAKE_CMD) -f msvcrt20.mak $@ 26 $(MAKE_CMD) -f msvcrt40.mak $@ 18 27 19 28 20 # Flag overloads and local macros. 21 CLEANEXTRAS = msvcrtrsrc.asm msvcrt20rsrc.asm msvcrt40rsrc.asm \ 22 $(PDWIN32_BIN)\msvcrt.dll $(PDWIN32_LIB)\msvcrt.lib \ 23 $(PDWIN32_BIN)\msvcrt20.dll $(PDWIN32_LIB)\msvcrt20.lib \ 24 $(PDWIN32_BIN)\msvcrt40.dll $(PDWIN32_LIB)\msvcrt40.lib 29 # don't have to make deps more than once. 30 dep: 31 $(MAKE_CMD) -f msvcrt.mak $@ 25 32 26 33 27 # Object files. All objects should be prefixed with $(OBJDIR)! 28 OBJS = \ 29 $(OBJDIR)\msvcrt.obj \ 30 $(OBJDIR)\critsec.obj \ 31 $(OBJDIR)\util.obj \ 32 $(OBJDIR)\$(TARGET)rsrc.obj \ 33 $(PDWIN32_LIB)\dllentry.obj 34 # 35 # Do not includes the common rules. 36 # 34 37 35 36 !ifndef TARGET37 38 # Dummy all rule - if not both all and lib will be invoked when39 # invoking nmake without a target.40 _all: all41 42 43 # All and lib rules - builds all targets by reinvoking make with target macro set.44 all lib:45 $(MAKE_CMD) TARGET=msvcrt $@46 $(MAKE_CMD) TARGET=msvcrt20 $@47 $(MAKE_CMD) TARGET=msvcrt40 $@48 49 50 !else51 52 53 # Real all rule - build objs, target dll, copies dll to bin and makes libs.54 all: $(OBJDIR) \55 $(OBJDIR)\$(TARGET).dll \56 $(PDWIN32_BIN)\$(TARGET).dll \57 lib58 59 60 # Real lib rule - build importlibrary (and evt. other libs)61 lib: $(TARGET).lib $(PDWIN32_LIB)\$(TARGET).lib62 63 !endif64 65 66 # Dll rule - builds the target dll.67 $(OBJDIR)\$(TARGET).dll: $(OBJS) $(TARGET).def $(OBJDIR)\$(TARGET).lrf68 -4 $(LD2) $(LD2FLAGS) @$(OBJDIR)\$(TARGET).lrf69 70 71 # Linker file - creates the parameter file passed on to the linker.72 $(OBJDIR)\$(TARGET).lrf: makefile73 @echo Creating file <<$@74 /OUT:$(OBJDIR)\$(TARGET).dll75 /MAP:$(OBJDIR)\$(TARGET).map76 $(OBJS)77 $(PDWIN32_LIB)/kernel32.lib78 $(PDWIN32_LIB)/crtdll.lib79 $(PDWIN32_LIB)/$(ODINCRT).lib80 OS2386.LIB81 $(RTLLIB_O)82 $(TARGET).def83 <<keep84 85 86 # Dep rule - makes depenencies for C, C++ and Asm files.87 dep:88 $(DEPEND) -I$(PDWIN32_INCLUDE);$(PDWIN32_INCLUDE)\win \89 *.c *.cpp *.h *.asm *.inc $(PDWIN32_INCLUDE)\*.h90 91 92 # Dummy target used for clean93 !ifndef TARGET94 TARGET = msvcrt95 !endif96 97 98 # Includes the common rules.99 !include $(PDWIN32_INCLUDE)/pdwin32.post100
Note:
See TracChangeset
for help on using the changeset viewer.