Makefile fixes

This commit is contained in:
François Autin
2023-04-05 15:11:12 +02:00
parent cb25b09cff
commit 7179931224
7 changed files with 6 additions and 9 deletions
+16
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
View File
Binary file not shown.
+7
View File
@@ -0,0 +1,7 @@
#include "userlib/syscall.h"
int main() {
Shutdown();
return 0;
}
BIN
View File
Binary file not shown.
+10
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;
}