Added missing .cvsignore files.
[reactos.git] / reactos / drivers / dd / vidport / makefile
index 75fa290..43cd517 100644 (file)
@@ -1,79 +1,42 @@
-# $Id: makefile,v 1.9 2000/08/18 22:27:08 dwelch Exp $
+# $Id: makefile,v 1.13 2001/07/25 06:21:38 ekohl Exp $
 #
 #
 PATH_TO_TOP = ../../..
-TARGET=vidport
-OBJECTS = $(TARGET).o $(TARGET).coff ../../../ntoskrnl/ntoskrnl.a
 
-BASE_CFLAGS = -I../../../include
+TARGET = vidport
 
-all: $(TARGET).sys vidport.a
+OBJECTS = $(TARGET).o $(TARGET).coff
+
+LIBS = $(PATH_TO_TOP)/ntoskrnl/ntoskrnl.a
+
+CFLAGS = -D__NTDRIVER__
+
+all: $(TARGET).sys $(TARGET).sys.unstripped vidport.a
 
 .phony: all
 
 clean:
-       - $(RM) $(TARGET).o
-       - $(RM) $(TARGET).a
-       - $(RM) $(TARGET).coff
-       - $(RM) junk.tmp
-       - $(RM) base.tmp
-       - $(RM) temp.exp
-       - $(RM) $(TARGET).sys
+       - $(RM) *.o *.a *.sym $(TARGET).coff junk.tmp base.tmp temp.exp $(TARGET).sys $(TARGET).sys.unstripped
 
 .phony: clean
 
 install: $(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: $(PATH_TO_TOP)/$(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
+$(PATH_TO_TOP)/$(DIST_DIR)/drivers/$(TARGET).sys: $(TARGET).sys
+       $(CP) $(TARGET).sys $(PATH_TO_TOP)/$(DIST_DIR)/drivers/$(TARGET).sys
 
-$(TARGET).sys: $(OBJECTS)
+$(TARGET).sys $(TARGET).sys.unstripped: $(OBJECTS) $(LIBS)
+
+$(TARGET).a: $(TARGET).def
        $(DLLTOOL) \
                --dllname $(TARGET).sys \
                --def $(TARGET).def \
                --kill-at \
                --output-lib $(TARGET).a
-       $(CC) \
-                $(OBJECTS) \
-                -Wl,-d -specs=../../svc_specs \
-                -mdll \
-                -o junk.tmp \
-                -Wl,--image-base,0x10000 \
-                -Wl,--defsym,_end=end \
-               -Wl,--defsym,_edata=__data_end__ \
-                -Wl,--defsym,_etext=etext \
-               -Wl,--base-file,base.tmp
-       - $(RM) junk.tmp
-       $(DLLTOOL) \
-                --dllname $(TARGET).sys \
-                --base-file base.tmp \
-               --output-exp temp.exp \
-                --def $(TARGET).edf
-       - $(RM) base.tmp
-       $(CC) \
-                $(OBJECTS) \
-                -specs=../../svc_specs \
-                -mdll \
-                -o $(TARGET).sys \
-                -Wl,--image-base,0x10000 \
-                -Wl,-e,_DriverEntry@8 \
-                -Wl,--defsym,_end=end \
-               -Wl,--defsym,_edata=__data_end__ \
-                -Wl,--defsym,_etext=etext \
-                -Wl,temp.exp 
-       - $(RM) temp.exp
 
-include ../../../rules.mak
+include $(PATH_TO_TOP)/rules.mak