mirror of
https://github.com/reactos/reactos.git
synced 2025-02-25 01:39:30 +00:00
fixed dist and floppy rule
svn path=/trunk/; revision=724
This commit is contained in:
parent
36f33622cc
commit
a5dd3430d6
1 changed files with 27 additions and 29 deletions
|
@ -2,6 +2,8 @@
|
||||||
# WIN32K.SYS build spec
|
# WIN32K.SYS build spec
|
||||||
#
|
#
|
||||||
|
|
||||||
|
TARGET=win32k
|
||||||
|
|
||||||
BASE_CFLAGS = -I../../include
|
BASE_CFLAGS = -I../../include
|
||||||
|
|
||||||
MAIN_OBJECTS = main/dllmain.o
|
MAIN_OBJECTS = main/dllmain.o
|
||||||
|
@ -12,45 +14,43 @@ OBJECTS_OBJECTS = objects/bitmaps.o objects/brush.o objects/cliprgn.o \
|
||||||
objects/line.o objects/metafile.o objects/paint.o \
|
objects/line.o objects/metafile.o objects/paint.o \
|
||||||
objects/path.o objects/pen.o objects/print.o \
|
objects/path.o objects/pen.o objects/print.o \
|
||||||
objects/region.o objects/text.o objects/wingl.o
|
objects/region.o objects/text.o objects/wingl.o
|
||||||
RESOURCE_OBJECT = win32k.coff
|
RESOURCE_OBJECT = $(TARGET).coff
|
||||||
STUBS_OBJECTS = stubs/stubs.o
|
STUBS_OBJECTS = stubs/stubs.o
|
||||||
|
|
||||||
OBJECTS = $(MAIN_OBJECTS) $(MISC_OBJECTS) $(OBJECTS_OBJECTS) \
|
OBJECTS = $(MAIN_OBJECTS) $(MISC_OBJECTS) $(OBJECTS_OBJECTS) \
|
||||||
$(RESOURCE_OBJECT) $(STUBS_OBJECTS)
|
$(RESOURCE_OBJECT) $(STUBS_OBJECTS)
|
||||||
|
|
||||||
TARGET=win32k.sys
|
all: $(TARGET).sys
|
||||||
|
|
||||||
all: win32k.sys
|
$(TARGET).coff: $(TARGET).rc ../../include/reactos/resource.h
|
||||||
|
$(RC) $(TARGET).rc $(TARGET).coff
|
||||||
win32k.coff: win32k.rc ../../include/reactos/resource.h
|
|
||||||
$(RC) win32k.rc win32k.coff
|
|
||||||
|
|
||||||
ifeq ($(DOSCLI),yes)
|
ifeq ($(DOSCLI),yes)
|
||||||
CLEAN_FILES = main\*.o misc\*.o stubs\*.o objects\*.o win32k.coff win32k.o \
|
CLEAN_FILES = main\*.o misc\*.o stubs\*.o objects\*.o $(TARGET).coff $(TARGET).o \
|
||||||
win32k.a junk.tmp base.tmp temp.exp win32k.sys win32k.sym
|
$(TARGET).a junk.tmp base.tmp temp.exp $(TARGET).sys $(TARGET).sym
|
||||||
else
|
else
|
||||||
CLEAN_FILES = main/*.o misc/*.o stubs/*.o objects/*.o win32k.coff win32k.o \
|
CLEAN_FILES = main/*.o misc/*.o stubs/*.o objects/*.o $(TARGET).coff $(TARGET).o \
|
||||||
win32k.a junk.tmp base.tmp temp.exp win32k.sys win32k.sym
|
$(TARGET).a junk.tmp base.tmp temp.exp $(TARGET).sys $(TARGET).sym
|
||||||
endif
|
endif
|
||||||
|
|
||||||
win32k.sys: $(OBJECTS) win32k.def
|
$(TARGET).sys: $(OBJECTS) $(TARGET).def
|
||||||
$(LD) -r $(OBJECTS) -o win32k.o
|
$(LD) -r $(OBJECTS) -o $(TARGET).o
|
||||||
$(DLLTOOL) --dllname win32k.sys --def win32k.def \
|
$(DLLTOOL) --dllname $(TARGET).sys --def $(TARGET).def \
|
||||||
--output-lib win32k.a
|
--output-lib $(TARGET).a
|
||||||
$(CC) --subsystem=windows -mdll --dll -e _DllMain@12 -o junk.tmp \
|
$(CC) --subsystem=windows -mdll --dll -e _DllMain@12 -o junk.tmp \
|
||||||
-Wl,--image-base,0x0 \
|
-Wl,--image-base,0x0 \
|
||||||
-Wl,--file-alignment,0x1000 \
|
-Wl,--file-alignment,0x1000 \
|
||||||
-Wl,--section-alignment,0x1000 \
|
-Wl,--section-alignment,0x1000 \
|
||||||
-Wl,--defsym,_end=end \
|
-Wl,--defsym,_end=end \
|
||||||
-Wl,--defsym,_edata=__data_end__ \
|
-Wl,--defsym,_edata=__data_end__ \
|
||||||
-Wl,--defsym,_etext=etext -Wl,--base-file,base.tmp win32k.o \
|
-Wl,--defsym,_etext=etext -Wl,--base-file,base.tmp $(TARGET).o \
|
||||||
../../ntoskrnl/ntoskrnl.a
|
../../ntoskrnl/ntoskrnl.a
|
||||||
- $(RM) junk.tmp
|
- $(RM) junk.tmp
|
||||||
$(DLLTOOL) --dllname win32k.sys --base-file base.tmp \
|
$(DLLTOOL) --dllname $(TARGET).sys --base-file base.tmp \
|
||||||
--output-exp temp.exp --def win32k.def
|
--output-exp temp.exp --def $(TARGET).def
|
||||||
- $(RM) base.tmp
|
- $(RM) base.tmp
|
||||||
$(CC) --subsystem=windows -mdll --dll -e _DllMain@12 \
|
$(CC) --subsystem=windows -mdll --dll -e _DllMain@12 \
|
||||||
-o win32k.sys win32k.o ../../ntoskrnl/ntoskrnl.a \
|
-o $(TARGET).sys $(TARGET).o ../../ntoskrnl/ntoskrnl.a \
|
||||||
-Wl,--image-base,0x0 \
|
-Wl,--image-base,0x0 \
|
||||||
-Wl,--file-alignment,0x1000 \
|
-Wl,--file-alignment,0x1000 \
|
||||||
-Wl,--section-alignment,0x1000 \
|
-Wl,--section-alignment,0x1000 \
|
||||||
|
@ -59,7 +59,7 @@ win32k.sys: $(OBJECTS) win32k.def
|
||||||
-Wl,--defsym,_etext=etext -Wl,temp.exp
|
-Wl,--defsym,_etext=etext -Wl,temp.exp
|
||||||
|
|
||||||
- $(RM) temp.exp
|
- $(RM) temp.exp
|
||||||
$(NM) --numeric-sort win32k.sys > win32k.sym
|
$(NM) --numeric-sort $(TARGET).sys > $(TARGET).sym
|
||||||
|
|
||||||
clean: $(CLEAN_FILES:%=%_clean)
|
clean: $(CLEAN_FILES:%=%_clean)
|
||||||
|
|
||||||
|
@ -68,26 +68,24 @@ $(CLEAN_FILES:%=%_clean): %_clean:
|
||||||
|
|
||||||
.PHONY: clean $(CLEAN_FILES:%=%_clean)
|
.PHONY: clean $(CLEAN_FILES:%=%_clean)
|
||||||
|
|
||||||
floppy: $(FLOPPY_DIR)/subsys/win32k.sys
|
floppy: $(FLOPPY_DIR)/drivers/$(TARGET).sys
|
||||||
|
|
||||||
$(FLOPPY_DIR)/subsys/$(TARGET).sys: $(TARGET).sys
|
$(FLOPPY_DIR)/drivers/$(TARGET).sys: $(TARGET).sys
|
||||||
ifeq ($(DOSCLI),yes)
|
ifeq ($(DOSCLI),yes)
|
||||||
$(CP) $(TARGET).sys $(FLOPPY_DIR)\subsys\$(TARGET).sys
|
$(CP) $(TARGET).sys $(FLOPPY_DIR)\drivers\$(TARGET).sys
|
||||||
else
|
else
|
||||||
$(CP) $(TARGET).sys $(FLOPPY_DIR)/subsys/$(TARGET).sys
|
$(CP) $(TARGET).sys $(FLOPPY_DIR)/drivers/$(TARGET).sys
|
||||||
endif
|
endif
|
||||||
|
|
||||||
|
dist: $(DIST_DIR)/drivers/$(TARGET).sys
|
||||||
|
|
||||||
dist: $(DIST_DIR)/subsys/$(TARGET).sys
|
$(DIST_DIR)/drivers/$(TARGET).sys: $(TARGET).sys
|
||||||
|
|
||||||
$(DIST_DIR)/subsys/$(TARGET).sys: $(TARGET).sys
|
|
||||||
ifeq ($(DOSCLI),yes)
|
ifeq ($(DOSCLI),yes)
|
||||||
$(CP) $(TARGET).sys ..\..\$(DIST_DIR)\subsys\$(TARGET).sys
|
$(CP) $(TARGET).sys ..\..\$(DIST_DIR)\drivers\$(TARGET).sys
|
||||||
else
|
else
|
||||||
$(CP) $(TARGET).sys ../../$(DIST_DIR)/subsys/$(TARGET).sys
|
$(CP) $(TARGET).sys ../../$(DIST_DIR)/drivers/$(TARGET).sys
|
||||||
endif
|
endif
|
||||||
|
|
||||||
|
|
||||||
#WITH_DEBUGGING = yes
|
#WITH_DEBUGGING = yes
|
||||||
WIN32_LEAN_AND_MEAN = yes
|
WIN32_LEAN_AND_MEAN = yes
|
||||||
#WARNINGS_ARE_ERRORS = yes
|
#WARNINGS_ARE_ERRORS = yes
|
||||||
|
|
Loading…
Reference in a new issue