# For Project 2A you want something along these lines for a Makefile. # Here custsort.c is the implementation code for the function custsort( ), # which is declared in custsort.h. The driver for testing is implemented in # test.c, which includes (by #include) custsort.h, and the executable driver # file is to be called tester. # # Executing "make" will compile and link everything. # # For development purposes you can execute "make custsort.o" or # "make test.o" to compile (but not link) custsort.c to custsort.o # or test.c to test.o, respectively. # # The construction command line for tester simply links test.o and # custsort.o to create the executable file. # tester: custsort.o test.o gcc -o tester custsort.o test.o custsort.o: custsort.h custsort.c gcc -c custsort.c test.o: custsort.h test.c gcc -c test.c