Skip to content

Instantly share code, notes, and snippets.

@heronyang
Last active August 29, 2015 14:07
Show Gist options
  • Save heronyang/aafe1986c04888518a98 to your computer and use it in GitHub Desktop.
Save heronyang/aafe1986c04888518a98 to your computer and use it in GitHub Desktop.
unix-makefile
unix: image
git clone https://github.com/qrush/unix.git
cp simhv/BIN/pdp11 unix/tools/
(cd unix; mkdir images; make)
image: simhv
wget http://unix-jun72.googlecode.com/files/images-20080625.tgz
tar -xf images-20080625.tgz
mv images-20080625 ./unix/images
simhv:
wget http://simh.trailing-edge.com/sources/simhv39-0.zip
mkdir simhv
unzip simhv39-0.zip -d simhv
(cd simhv; make)
clean:
rm -r simhv
rm -r unix
clean_download:
rm *zip
rm images-20080625.tgz
kill:
killall simh.cfg
run:
(cd unix; ./simh.cfg)
>> make run
(cd unix; ./simh.cfg)
PDP-11 simulator V3.9-0
./simh.cfg> #!tools/pdp11
Unknown command
Disabling CR
Disabling XQ
RF: buffering file in memory
TC0: 16b format, buffering file in memory
Listening on port 5555 (socket 7)
:login: root
root
# ls
bin
dev
etc
tmp
usr
# date
Fri Jan 1 00:00:06
#
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment