all: program1 # Compiler CC=gcc # Where to install INSTDIR = /usx/bin # Where include files are kept VPATH = src # Compile options CFLAGS = -Wall -g # Override .c.o suffix rule to look in the src directory program1: main.o $(CC) -o program1 main.o main.o: main.c main.h a_functions.o b_functions.o c_functions.o d_functions.o a_functions.o: a_functions.c a.h b_functions.o: b_functions.c b.h c_functions.o: c_functions.c c.h d_functions.o: d_functions.c d.h clean: -rm main.o a_functions.o b_functions.o c_functions.o d_functions.o program1 install: program1 @if [ -d $(INSTDIR) ]; \ then \ ls;\ else \ echo "Sorry, $(INSTDIR) does not exist";} \ fi uninstall: