I am newbie , so have some problems with creating makefile. I have tried to compile them from terminal and found right options for gcc to do this. But I have some troubles with creating one makefile to compile to do all this tasks. Here is my commands that work.
Code:
gcc -c pstree.c -DHAVE_CONFIG_H -I.
gcc -o hello pstree.o -L/usr/lib/ -ltinfo
gcc -c fuser.c -DHAVE_CONFIG_H -I.
gcc -c -o libsignals.a signals.c
gcc -o hello fuser.o -L/usr/lib/ -L. -lsignals
gcc -c -o libsignals.a signals.c
gcc -o hello killall.o -L/usr/lib/ -L. -lsignals
gcc -c killall.c -DHAVE_CONFIG_H -I.
Please help with creating makefile for this purpose. Thanks in advance.