This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
all: clean build run | |
build: | |
gcc -nostdlib -Wall -shared -fPIC hello_exit.S -Wl,-soname,libhelloexit.so.1 -o libhelloexit.so.1.0 | |
ln -sv libhelloexit.so.1.0 libhelloexit.so.1 | |
ln -sv libhelloexit.so.1.0 libhelloexit.so | |
gcc -nostdlib -Wall -L. -I. hello.c -lhelloexit -Wl,-rpath,. -o hello | |
@echo Done | |
run: |