Refactor: build env

This commit is contained in:
2026-04-02 22:22:57 +08:00
parent 1e698d2426
commit fe65d46df7
7 changed files with 42 additions and 2 deletions

13
code/Makefile Normal file
View File

@@ -0,0 +1,13 @@
.PHONY: all clean run
all:
make -C build.linux depend
make -C build.linux -j 16
make -C test -j 16
clean:
make -C build.linux distclean
make -C test distclean
run:
make -C test run

1
code/build.linux/.gitignore vendored Normal file
View File

@@ -0,0 +1 @@
nachos

View File

@@ -200,7 +200,7 @@ DEFINES = -DFILESYS_STUB -DRDATA -DSIM_FIX
# break the thread system. You might want to use -fno-inline if
# you need to call some inline functions from the debugger.
CFLAGS = -g -Wall $(INCPATH) $(DEFINES) $(HOSTCFLAGS) -DCHANGED -m32
CFLAGS = -g -Wall $(INCPATH) $(DEFINES) $(HOSTCFLAGS) -DCHANGED -m32 -w
LDFLAGS = -m32
CPP_AS_FLAGS= -m32
@@ -211,7 +211,7 @@ LD = g++ -m32 -Wno-deprecated
AS = as --32
RM = /bin/rm
INCPATH = -I../network -I../filesys -I../userprog -I../threads -I../machine -I../lib -I-
INCPATH = -iquote../network -iquote../filesys -iquote../userprog -iquote../threads -iquote../machine -iquote../lib
PROGRAM = nachos

Binary file not shown.