hello.h hello.c test.c Makefile

# make
gcc -c test.c
gcc -c hello.c
gcc -lm -o test test.o hello.o
# ./test
- Call HelloWorld function -
Hello world.
 it's compiled by Makefile
# make clean
rm -f test test.o hello.o
#


'Programming > Linux Coding' 카테고리의 다른 글

Ex10. Makefile - lv3  (0) 2016.02.25
Ex10. Makefile - lv2  (0) 2016.02.24
Ex09. mycopy.c  (0) 2016.02.22
Ex08. simplecalc.c - libmycalcso.so (shared library)  (1) 2016.02.22
Ex07. simplecalc.c - libmycalc.a (static library)  (0) 2016.02.22

+ Recent posts