Changeset 3031 for trunk/src/kernel32
- Timestamp:
- Mar 7, 2000, 12:39:20 AM (25 years ago)
- Location:
- trunk/src/kernel32
- Files:
-
- 1 added
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/kernel32/makefile
r3019 r3031 1 # $Id: makefile,v 1.8 7 2000-03-04 23:47:00 sandervlExp $1 # $Id: makefile,v 1.88 2000-03-06 23:34:18 bird Exp $ 2 2 3 3 # … … 7 7 # 8 8 9 # Directory macros. 9 10 PDWIN32_INCLUDE = ..\..\include 10 PDWIN32_LIB = ..\..\lib11 PDWIN32_BIN = ..\..\bin12 PDWIN32_TOOLS = ..\..\tools\bin11 PDWIN32_LIB = ..\..\lib 12 PDWIN32_BIN = ..\..\$(OBJDIR) 13 PDWIN32_TOOLS = ..\..\tools\bin 13 14 14 #SvL: Remove this when everything has been converted to the new build rules15 NEWBUILD=116 15 16 # Compiler, tools, and interference rules. 17 17 !include $(PDWIN32_INCLUDE)/pdwin32.mk 18 18 19 RESOURCES= kernelrsrc20 CFLAGS = $(CFLAGS) -I$(PDWIN32_INCLUDE)21 CXXFLAGS = $(CXXFLAGS) -I$(PDWIN32_INCLUDE)22 19 23 !ifdef NODEBUGINFO 24 CFLAGS = $(CFLAGS) -DDEFAULT_LOGGING_OFF 25 CXXFLAGS = $(CXXFLAGS) -DDEFAULT_LOGGING_OFF 26 !endif 20 # Flag overloads and local macros. 21 CLEANEXTRAS = kernelrsrc.asm 27 22 23 24 # Object files. All objects should be prefixed with $(OBJDIR)! 28 25 OBJS = \ 29 26 $(OBJDIR)\KERNEL32.OBJ \ … … 98 95 $(OBJDIR)\fileio.obj \ 99 96 $(OBJDIR)\hmtoken.obj \ 100 $(OBJDIR)\$(RESOURCES).obj \101 97 $(OBJDIR)\atom.obj \ 102 98 $(OBJDIR)\disk.obj \ … … 120 116 $(OBJDIR)\oslibdebug.obj \ 121 117 $(OBJDIR)\dbglocal.obj \ 122 $(OBJDIR)\registry.obj 118 $(OBJDIR)\registry.obj \ 119 $(OBJDIR)\kernelrsrc.obj 123 120 121 122 # Target name - name of the dll without extention and path. 124 123 TARGET = kernel32 125 124 126 all: $(OBJDIR) $(TARGET).dll $(TARGET).LIB127 125 128 $(TARGET).dll: $(OBJS) $(TARGET).def $(OBJDIR)\$(TARGET).lrf 129 $(LD2) $(LD2FLAGS) @$(OBJDIR)\$(TARGET).lrf 130 rc -r console.rc console.res131 rc console.res $@132 $(CP) $@ $(PDWIN32_BIN)126 # All rule - build objs, target dll, copies dll to bin and makes libs. 127 all: $(OBJDIR) \ 128 $(OBJDIR)\$(TARGET).dll \ 129 $(PDWIN32_BIN)\$(TARGET).dll \ 130 lib 133 131 132 133 # Lib rule - build importlibrary (and evt. other libs) 134 lib: $(TARGET).lib $(PDWIN32_LIB)\$(TARGET).lib 135 136 137 # Dll rule - builds the target dll. 138 $(OBJDIR)\$(TARGET).dll: $(OBJS) $(TARGET).def $(OBJDIR)\$(TARGET).lrf \ 139 $(OBJDIR)\console.res 140 $(LD2) $(LD2FLAGS) @$(OBJDIR)\$(TARGET).lrf 141 $(OS2RC) $(OBJDIR)\console.res $@ 142 143 144 # Linker file - creates the parameter file passed on to the linker. 134 145 $(OBJDIR)\$(TARGET).lrf: makefile 135 @echo Creating file <<$(OBJDIR)\$(@B).lrf 146 @echo Creating file <<$(OBJDIR)\$(@B).lrf 147 /OUT:$(OBJDIR)\$(TARGET).dll 148 /MAP:$(OBJDIR)\$(TARGET).map 136 149 $(OBJS) 137 150 $(PDWIN32_LIB)\odincrt.lib … … 144 157 <<keep 145 158 146 lib: $(TARGET).lib $(PDWIN32_LIB)\$(TARGET).lib147 159 148 $(RESOURCES).asm: kernel32.rc 149 $(RC) $(RCFLAGS) -o $(RESOURCES).asm kernel32.rc 150 160 # Dep rule - makes depenencies for C, C++ and Asm files. 151 161 dep: 152 162 $(DEPEND) -I$(PDWIN32_INCLUDE);$(PDWIN32_INCLUDE)\win \ 153 163 *.c *.cpp *.h *.asm *.inc $(PDWIN32_INCLUDE)\*.h 154 164 165 166 # Includes the common rules. 155 167 !include $(PDWIN32_INCLUDE)/pdwin32.post 168
Note:
See TracChangeset
for help on using the changeset viewer.