mirror of
https://github.com/reactos/reactos.git
synced 2025-08-05 15:43:00 +00:00
50 lines
1.2 KiB
Makefile
50 lines
1.2 KiB
Makefile
#
|
|
#
|
|
#
|
|
TARGET=null
|
|
OBJECTS= null.o ../../../ntoskrnl/ntoskrnl.a
|
|
|
|
all: null.sys
|
|
|
|
.phony: all
|
|
|
|
clean:
|
|
- $(RM) null.o
|
|
- $(RM) junk.tmp
|
|
- $(RM) base.tmp
|
|
- $(RM) temp.exp
|
|
- $(RM) null.sys
|
|
|
|
.phony: clean
|
|
|
|
floppy: $(FLOPPY_DIR)/drivers/$(TARGET).sys
|
|
|
|
$(FLOPPY_DIR)/drivers/$(TARGET).sys: $(TARGET).sys
|
|
ifeq ($(DOSCLI),yes)
|
|
$(CP) $(TARGET).sys $(FLOPPY_DIR)\drivers\$(TARGET).sys
|
|
else
|
|
$(CP) $(TARGET).sys $(FLOPPY_DIR)/drivers/$(TARGET).sys
|
|
endif
|
|
|
|
dist: ../../../$(DIST_DIR)/drivers/$(TARGET).sys
|
|
|
|
../../../$(DIST_DIR)/drivers/$(TARGET).sys: $(TARGET).sys
|
|
ifeq ($(DOSCLI),yes)
|
|
$(CP) $(TARGET).sys ..\..\..\$(DIST_DIR)\drivers\$(TARGET).sys
|
|
else
|
|
$(CP) $(TARGET).sys ../../../$(DIST_DIR)/drivers/$(TARGET).sys
|
|
endif
|
|
|
|
null.sys: $(OBJECTS)
|
|
$(CC) -specs=../../svc_specs -mdll -o junk.tmp -Wl,--defsym,_end=end \
|
|
-Wl,--defsym,_edata=__data_end__ -Wl,--defsym,_etext=etext \
|
|
-Wl,--base-file,base.tmp $(OBJECTS)
|
|
- $(RM) junk.tmp
|
|
$(DLLTOOL) --dllname null.sys --base-file base.tmp \
|
|
--output-exp temp.exp
|
|
- $(RM) base.tmp
|
|
$(CC) --verbose -Wl,--image-base,0x10000 -Wl,-e,_DriverEntry@8 \
|
|
-specs=../../svc_specs -mdll -o null.sys $(OBJECTS) -Wl,temp.exp
|
|
- $(RM) temp.exp
|
|
|
|
|