Skip to content

Commit 3a89051

Browse files
committed
clean build and demo.
1 parent e0448a3 commit 3a89051

File tree

5 files changed

+38
-9
lines changed

5 files changed

+38
-9
lines changed

Makefile

Lines changed: 10 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,23 +1,26 @@
11
#
22
# this is just a top-level makefile to build the simulator
33
#
4-
all:
4+
5+
all: src/usersim/sim
6+
7+
src/usersim/sim src/tools/readall:
58
cd src ; make
69

7-
test: src/usersim/sim
8-
cd src/usersim ; ./sim
10+
test: filesystem src/usersim/sim
11+
src/usersim/sim
912

10-
unpack:
11-
cd src/tools; make
13+
filesystem: src/tools/readall
1214
for i in disks/*.image ; do src/tools/readall -d filesystem $$i ; done
1315
cp -r src/kernel filesystem/usr/src/sys
1416

1517
clean:
16-
for dir in usersim tools src/sgs src/fstools ; do \
18+
for dir in src ; do \
1719
(cd $$dir ; make clean) \
1820
done
1921

2022
clobber:
21-
for dir in usersim tools src/sgs src/fstools ; do \
23+
for dir in src ; do \
2224
(cd $$dir ; make clobber) \
2325
done
26+
rm -rf filesystem

README.md

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,23 @@ for a blast from the past, type:
33
make test
44

55
you now are running micronix 1.4 shell and can do a lot
6+
including:
7+
8+
cd /usr/src/sys
9+
make
10+
11+
or, for a quite strange experience,
12+
13+
src/usersim/sim bin/man sh | less
14+
15+
(run the simulated z80 micronix man program on sh, and pipe it to linux less)
616

717
---------------------
818

19+
this document is obsolete, as I've changed the directory structure radically,
20+
with source code in src, and almost every work in progress thing moved to
21+
./extra
22+
923
Morrow Designs Micronix and tools
1024

1125
directories:

src/Makefile

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,3 +4,15 @@ all:
44
for i in $(DIRS) ; do \
55
(cd $$i ; make ) ; \
66
done
7+
8+
clean:
9+
for i in $(DIRS) ; do \
10+
(cd $$i ; make clean ) ; \
11+
done
12+
13+
clobber:
14+
for i in $(DIRS) ; do \
15+
(cd $$i ; make clobber ) ; \
16+
done
17+
18+

src/usersim/Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
INCLUDE = -I../../include -I../include
1+
INCLUDE = -I../include -I../kernel
22

33
OBJECTS = z80emu.o micronix.o
44
TARGETS = sim

src/usersim/micronix.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ typedef unsigned short UINT;
4040
static int do_exec(char *name, char **argv);
4141
static void emulate();
4242

43-
#define DEFROOT "../../filesystem"
43+
#define DEFROOT "filesystem"
4444

4545
int savemode;
4646
int debug_terminal;

0 commit comments

Comments
 (0)