1
0
mirror of https://github.com/DoctorWkt/unix-jun72.git synced 2026-03-10 04:44:54 +00:00

- fixaout.py overwrites a.out now instead of writing b.out.

This commit is contained in:
tim.newsham
2008-05-11 22:48:25 +00:00
parent e92ef99b75
commit c5bc1102dc
2 changed files with 2 additions and 4 deletions

View File

@@ -156,12 +156,10 @@ clobber : clean
# generic rule for assembling a .s into an 0405 a.out format.
# XXX make fixaout.py overwrite a.out instead of write b.out
.SUFFIXES : .s .0405
.s.0405 :
@$(AS) $<
@../tools/fixaout.py
@rm a.out
@mv b.out $@
@mv a.out $@
@echo done $< $@

View File

@@ -28,4 +28,4 @@ def write(fn, d) :
d1 = words(read('a.out'))
hdr = d1[:8]
d = [0405, 12+hdr[1], 0, 0, hdr[4], 0] + d1[8:]
write("b.out", unwords(d))
write("a.out", unwords(d))