mirror of
https://github.com/reactos/reactos.git
synced 2024-06-28 08:51:29 +00:00
ddfa2017c7
Added PATH_TO_ROOT variable to most makefiles Added system independant install utility Implemented prototype system for changing individual regions without a memory area Added some interesting articles from usenet svn path=/trunk/; revision=1306
74 lines
1.4 KiB
Makefile
74 lines
1.4 KiB
Makefile
# $Id: makefile,v 1.8 2000/08/18 22:27:04 dwelch Exp $
|
|
#
|
|
#
|
|
PATH_TO_TOP = ../../..
|
|
|
|
TARGET = beep
|
|
OBJECTS = beep.o beep.coff ../../../ntoskrnl/ntoskrnl.a
|
|
|
|
BASE_CFLAGS = -I../../../include
|
|
|
|
all: beep.sys
|
|
|
|
.PHONY: all
|
|
|
|
clean:
|
|
- $(RM) beep.o
|
|
- $(RM) beep.coff
|
|
- $(RM) junk.tmp
|
|
- $(RM) base.tmp
|
|
- $(RM) temp.exp
|
|
- $(RM) beep.sys
|
|
|
|
.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_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
|
|
|
|
|
|
beep.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 beep.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
|
|
|