2001-07-15 21:19:02 +00:00
|
|
|
# $Id: makefile,v 1.5 2001/07/15 21:19:00 rex Exp $
|
2000-10-18 09:11:01 +00:00
|
|
|
#
|
1999-04-03 23:43:27 +00:00
|
|
|
#
|
2001-05-26 08:19:03 +00:00
|
|
|
TARGET = sermouse
|
|
|
|
|
2000-08-18 22:27:09 +00:00
|
|
|
PATH_TO_TOP = ../../..
|
|
|
|
|
2001-05-26 08:19:03 +00:00
|
|
|
OBJECTS = $(TARGET).o $(TARGET).coff ../../../ntoskrnl/ntoskrnl.a
|
|
|
|
|
2001-06-22 12:30:02 +00:00
|
|
|
CFLAGS = -D__NTDRIVER__ -O2 -I.
|
1999-04-03 23:43:27 +00:00
|
|
|
|
2001-05-26 08:19:03 +00:00
|
|
|
all: $(TARGET).sys
|
1999-03-19 05:55:55 +00:00
|
|
|
|
1999-04-03 23:43:27 +00:00
|
|
|
.phony: all
|
|
|
|
|
|
|
|
clean:
|
2001-07-15 21:19:02 +00:00
|
|
|
- $(RM) $(TARGET).o $(TARGET).coff junk.tmp base.tmp temp.exp sermouse.sys
|
1999-04-03 23:43:27 +00:00
|
|
|
|
|
|
|
.phony: clean
|
1999-03-19 05:55:55 +00:00
|
|
|
|
2000-08-11 12:46:47 +00:00
|
|
|
install: $(FLOPPY_DIR)/drivers/$(TARGET).sys
|
1999-06-25 04:36:03 +00:00
|
|
|
|
1999-07-16 23:37:07 +00:00
|
|
|
$(FLOPPY_DIR)/drivers/$(TARGET).sys: $(TARGET).sys
|
|
|
|
$(CP) $(TARGET).sys $(FLOPPY_DIR)/drivers/$(TARGET).sys
|
|
|
|
|
|
|
|
dist: ../../../$(DIST_DIR)/drivers/$(TARGET).sys
|
|
|
|
|
|
|
|
../../../$(DIST_DIR)/drivers/$(TARGET).sys: $(TARGET).sys
|
|
|
|
$(CP) $(TARGET).sys ../../../$(DIST_DIR)/drivers/$(TARGET).sys
|
1999-06-25 04:36:03 +00:00
|
|
|
|
2001-05-26 08:19:03 +00:00
|
|
|
$(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)
|
2000-10-18 09:11:01 +00:00
|
|
|
- $(RM) junk.tmp
|
2001-05-26 08:19:03 +00:00
|
|
|
$(DLLTOOL) \
|
|
|
|
--dllname $(TARGET).sys \
|
|
|
|
--base-file base.tmp \
|
|
|
|
--output-exp temp.exp \
|
|
|
|
--kill-at
|
2000-10-18 09:11:01 +00:00
|
|
|
- $(RM) base.tmp
|
2001-05-26 08:19:03 +00:00
|
|
|
$(CC) \
|
|
|
|
--verbose \
|
|
|
|
-Wl,--image-base,0x10000 \
|
|
|
|
-Wl,-e,_DriverEntry@8 \
|
|
|
|
-Wl,temp.exp \
|
|
|
|
-specs=../../svc_specs \
|
|
|
|
-mdll \
|
|
|
|
-o $(TARGET).sys \
|
|
|
|
$(OBJECTS)
|
2000-10-18 09:11:01 +00:00
|
|
|
- $(RM) temp.exp
|
|
|
|
|
1999-08-29 13:45:08 +00:00
|
|
|
|
2001-05-26 08:19:03 +00:00
|
|
|
include ../../../rules.mak
|