mirror of
https://github.com/reactos/reactos.git
synced 2024-06-28 08:51:29 +00:00
29b9e3f0b4
svn path=/trunk/; revision=367
32 lines
671 B
Makefile
32 lines
671 B
Makefile
#
|
|
#
|
|
#
|
|
OBJECTS = beep.o ../../../ntoskrnl/ntoskrnl.a
|
|
|
|
all: beep.sys
|
|
|
|
.PHONY: all
|
|
|
|
clean:
|
|
- $(RM) beep.o
|
|
- $(RM) junk.tmp
|
|
- $(RM) base.tmp
|
|
- $(RM) temp.exp
|
|
- $(RM) beep.sys
|
|
|
|
.phony: clean
|
|
|
|
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
|
|
|
|
|