Fixed bugs in null device drivers, added zero stream device
[reactos.git] / reactos / drivers / dd / null / makefile
index f8f00a3..5b54514 100644 (file)
@@ -1,70 +1,15 @@
-# $Id: makefile,v 1.6 1999/12/04 20:58:39 ea Exp $
-#
-#
-TARGET=null
-OBJECTS= $(TARGET).o $(TARGET).coff ../../../ntoskrnl/ntoskrnl.a
+# $Id: makefile,v 1.15 2002/04/29 23:06:42 hyperion Exp $
 
-BASE_CFLAGS = -I../../../include
+PATH_TO_TOP = ../../..
 
-all: $(TARGET).sys
+TARGET_TYPE = driver
 
-.phony: all
+TARGET_NAME = null
 
-clean:
-       - $(RM) $(TARGET).o
-       - $(RM) $(TARGET).coff
-       - $(RM) junk.tmp
-       - $(RM) base.tmp
-       - $(RM) temp.exp
-       - $(RM) $(TARGET).sys
+TARGET_OBJECTS = null.o
 
-.phony: clean
+TARGET_LFLAGS = -Wl,--file-alignment,0x20 -Wl,--section-alignment,0x20
 
-floppy: $(FLOPPY_DIR)/drivers/$(TARGET).sys
+include $(PATH_TO_TOP)/rules.mak
 
-$(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
-
-
-include ../../../rules.mak
+include $(TOOLS_PATH)/helper.mk