aboutsummaryrefslogtreecommitdiff
path: root/02_process_init/Makefile
blob: 6e1f512f04617b35255abd6504fd4329f3ddbb6e (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
# Copyright (c) 2020 Johannes Stoelp

show: entry
	#gdb -q --batch -ex 'starti' -ex 'x/g $$rsp' -ex 'x/s *(char**)($$rsp+8)' ./$^
	./entry 1 2 3 4

entry: entry.S entry.c
	gcc -o $@                        \
	    -I ../include                \
	    -Wall -Wextra                \
	    -static                      \
	    -nostartfiles -nodefaultlibs \
	    -g -O0                       \
	    $^


clean:
	rm -f entry