os_kernel_lab/related_info/lec7-8/Makefile

26 lines
835 B
Makefile
Raw Normal View History

2013-10-14 09:20:58 +08:00
all: lec7_1.c
2013-10-17 09:09:27 +08:00
@echo "====================================="
@echo "compile and analysis lec7_2"
@echo "====================================="
gcc -g -o lec7_2 lec7_2-fork.c
2013-10-14 09:20:58 +08:00
@echo "====================================="
@echo "compile and analysis lec7_1"
@echo "====================================="
gcc -g -o lec7_1 lec7_1.c
@echo "====================================="
@echo "using objdump to decompile lec7_1"
@echo "====================================="
objdump -S lec7_1
@echo "====================================="
@echo "using readelf to analyze lec7_1"
@echo "====================================="
readelf -a lec7_1
@echo "====================================="
@echo "using nm to analyze lec7_1"
@echo "====================================="
nm lec7_1
2013-10-14 09:25:33 +08:00
process_state:
top
2013-10-14 09:20:58 +08:00
clean:
2013-10-17 09:09:27 +08:00
rm ./lec7_1 ./lec7_2