mirror of
https://github.com/reactos/reactos.git
synced 2024-06-28 08:51:29 +00:00
dad291cf6f
svn path=/trunk/; revision=705
55 lines
1.2 KiB
Makefile
55 lines
1.2 KiB
Makefile
#
|
|
#
|
|
#
|
|
TARGET = beep
|
|
OBJECTS = beep.o ../../../ntoskrnl/ntoskrnl.a
|
|
|
|
BASE_CFLAGS = -I../../../include
|
|
|
|
all: beep.sys
|
|
|
|
.PHONY: all
|
|
|
|
clean:
|
|
- $(RM) beep.o
|
|
- $(RM) junk.tmp
|
|
- $(RM) base.tmp
|
|
- $(RM) temp.exp
|
|
- $(RM) beep.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
|
|
|
|
|
|
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
|
|
- $(RM) base.tmp
|
|
$(CC) --verbose -Wl,--image-base,0x10000 -Wl,-e,_DriverEntry@8 \
|
|
-specs=../../svc_specs -mdll -o beep.sys $(OBJECTS) -Wl,temp.exp
|
|
- $(RM) temp.exp
|
|
|
|
include ../../../rules.mak
|
|
|