From 1248eae0617555a4f13f7bbee9f120ad3d46c5f3 Mon Sep 17 00:00:00 2001 From: Mikhail Osipov Date: Mon, 7 Oct 2019 13:25:32 +0300 Subject: hello --- Makefile | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 Makefile (limited to 'Makefile') diff --git a/Makefile b/Makefile new file mode 100644 index 0000000..69beadf --- /dev/null +++ b/Makefile @@ -0,0 +1,15 @@ +PROGNAME=$(shell pwd | xargs basename) + +$(PROGNAME): main.o + ld -o $@ $< + +%.o: %.s syscall.s + as -o $@ $< + +syscall.s: /usr/include/asm/unistd_64.h + @echo create $@ from $< + @awk -f syscall.awk $< > $@ + +clean: + @echo cleaning... + @rm -f syscall.s *~ *.o core* -- cgit v1.2.3-70-g09d2