mirror of
https://github.com/reactos/reactos.git
synced 2026-07-07 00:44:22 +08:00
41 lines
913 B
Makefile
41 lines
913 B
Makefile
#
|
|
#
|
|
#
|
|
OBJECTS= serial.o ../../../ntoskrnl/ntoskrnl.a
|
|
|
|
all: serial.sys
|
|
|
|
.phony: all
|
|
|
|
clean:
|
|
- $(RM) serial.o
|
|
- $(RM) junk.tmp
|
|
- $(RM) base.tmp
|
|
- $(RM) temp.exp
|
|
- $(RM) serial.sys
|
|
|
|
.phony: clean
|
|
|
|
floppy: $(FLOPPY_DIR)/drivers/serial.sys
|
|
|
|
$(FLOPPY_DIR)/drivers/serial.sys: serial.sys
|
|
ifeq ($(DOSCLI),yes)
|
|
$(CP) serial.sys $(FLOPPY_DIR)\drivers\serial.sys
|
|
else
|
|
$(CP) serial.sys $(FLOPPY_DIR)/drviers/serial.sys
|
|
endif
|
|
|
|
serial.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 serial.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 serial.sys $(OBJECTS) -Wl,temp.exp
|
|
- $(RM) temp.exp
|
|
|
|
|