diff --git a/reactos/drivers/dd/floppy/Makefile b/reactos/drivers/dd/floppy/Makefile new file mode 100644 index 00000000000..4f0b3ca758e --- /dev/null +++ b/reactos/drivers/dd/floppy/Makefile @@ -0,0 +1,70 @@ +# $Id: Makefile,v 1.1 2000/07/19 14:25:35 dwelch Exp $ +# +# +TARGET=floppy + +OBJECTS = $(TARGET).o $(TARGET).coff ../../../ntoskrnl/ntoskrnl.a + +BASE_CFLAGS = -I. -I../../../include + +all: $(TARGET).sys + +.phony: all + +clean: + - $(RM) $(TARGET).o + - $(RM) $(TARGET).coff + - $(RM) junk.tmp + - $(RM) base.tmp + - $(RM) temp.exp + - $(RM) $(TARGET).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 + +$(TARGET).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 $(TARGET).sys \ + --base-file base.tmp \ + --output-exp temp.exp \ + --kill-at + - $(RM) base.tmp + $(CC) \ + --verbose \ + -Wl,--image-base,0x10000 \ + -Wl,-e,_DriverEntry@8 \ + -Wl,temp.exp \ + -specs=../../svc_specs \ + -mdll \ + -o $(TARGET).sys \ + $(OBJECTS) + - $(RM) temp.exp + +WITH_DEBUGGING=yes +include ../../../rules.mak diff --git a/reactos/drivers/dd/floppy/floppy.rc b/reactos/drivers/dd/floppy/floppy.rc new file mode 100644 index 00000000000..61da49f2e1e --- /dev/null +++ b/reactos/drivers/dd/floppy/floppy.rc @@ -0,0 +1,39 @@ + +#include +#include + +LANGUAGE LANG_ENGLISH, SUBLANG_ENGLISH_US + +VS_VERSION_INFO VERSIONINFO + FILEVERSION RES_UINT_FV_MAJOR,RES_UINT_FV_MINOR,RES_UINT_FV_REVISION,RES_UINT_FV_BUILD + PRODUCTVERSION RES_UINT_PV_MAJOR,RES_UINT_PV_MINOR,RES_UINT_PV_REVISION,RES_UINT_PV_BUILD + FILEFLAGSMASK 0x3fL +#ifdef _DEBUG + FILEFLAGS 0x1L +#else + FILEFLAGS 0x0L +#endif + FILEOS 0x40004L + FILETYPE 0x2L + FILESUBTYPE 0x0L +BEGIN + BLOCK "StringFileInfo" + BEGIN + BLOCK "040904b0" + BEGIN + VALUE "CompanyName", RES_STR_COMPANY_NAME + VALUE "FileDescription", "Floppy Device Driver\0" + VALUE "FileVersion", "0.1.4\0" + VALUE "InternalName", "floppy\0" + VALUE "LegalCopyright", RES_STR_LEGAL_COPYRIGHT + VALUE "OriginalFilename", "floppy.sys\0" + VALUE "ProductName", RES_STR_PRODUCT_NAME + VALUE "ProductVersion", RES_STR_PRODUCT_VERSION + END + END + BLOCK "VarFileInfo" + BEGIN + VALUE "Translation", 0x409, 1200 + END +END +