diff options
Diffstat (limited to '02_process_init')
-rw-r--r-- | 02_process_init/Makefile | 17 | ||||
-rw-r--r-- | 02_process_init/entry.c | 1 |
2 files changed, 10 insertions, 8 deletions
diff --git a/02_process_init/Makefile b/02_process_init/Makefile index db04941..0b51903 100644 --- a/02_process_init/Makefile +++ b/02_process_init/Makefile @@ -3,14 +3,17 @@ show: entry ./entry 1 2 3 4 -entry: entry.S entry.c - gcc -o $@ \ - -g -O0 \ - -Wall -Wextra \ - -I ../include \ - -nostdlib \ - -static \ +entry: entry.S entry.c ../lib/libcommon.a + gcc -o $@ \ + -g -O0 \ + -Wall -Wextra \ + -I../lib/include \ + -nostdlib \ + -static \ $^ +../lib/libcommon.a: + make -C ../lib + clean: rm -f entry diff --git a/02_process_init/entry.c b/02_process_init/entry.c index 37d5fc8..ca24f77 100644 --- a/02_process_init/entry.c +++ b/02_process_init/entry.c @@ -2,7 +2,6 @@ #include <auxv.h> #include <elf.h> -#define MAX_PRINTF_LEN 128 #include <io.h> #if !defined(__linux__) || !defined(__x86_64__) |