Makefile fixes

This commit is contained in:
François Autin
2023-04-05 15:09:10 +02:00
parent cb25b09cff
commit 7179931224
7 changed files with 6 additions and 9 deletions

View File

@ -0,0 +1,16 @@
PROGRAMS = halt prints
build: $(PROGRAMS)
dumps: halt.dump prints.dump
tests: halt.guac prints.guac
clean:
$(RM) halt.o halt prints prints.o
TOPDIR = ../..
include $(TOPDIR)/Makefile.rules
$(PROGRAMS): % : $(USERLIB)/sys.o $(USERLIB)/libnachos.o %.o

BIN
test/syscall_tests/halt Executable file

Binary file not shown.

View File

@ -0,0 +1,7 @@
#include "userlib/syscall.h"
int main() {
Shutdown();
return 0;
}

BIN
test/syscall_tests/prints Executable file

Binary file not shown.

View File

@ -0,0 +1,10 @@
#include "userlib/syscall.h"
#include "userlib/libnachos.h"
int main() {
n_printf("Hello World 1");
n_printf("Hello World 2");
n_printf("Hello World 3");
n_printf("Hello World 4");
return 0;
}