init: init nachos hw01

This commit is contained in:
AFS_TA
2026-03-27 10:12:37 +08:00
commit 1e698d2426
240 changed files with 76969 additions and 0 deletions

16
c++example/Makefile Executable file
View File

@@ -0,0 +1,16 @@
PREFIX=decstation-ultrix- # add crosscompiler prefix here i.e. decstation-ultrix-
INCLUDEDIR= # add path to include directories for crosscompiler environment here:
# don't forget the -I tag before the directory
# i.e: -I/usr/lcoal/nachosxdev/include -I/usr/local/nachosxdev/include/g++-3
all: stack inheritstack templatestack
stack: stack.h stack.cc
$(PREFIX)g++ $(INCLUDEDIR) -o stack stack.cc
inheritstack: inheritstack.h inheritstack.cc list.h list.cc
$(PREFIX)g++ $(INCLUDEDIR) -o inheritstack inheritstack.cc list.cc
templatestack: templatestack.h templatestack.cc
$(PREFIX)g++ $(INCLUDEDIR) -o templatestack templatestack.cc