override CFLAGS += `pkg-config --cflags glib-2.0` -I.. LDFLAGS = `pkg-config --libs glib-2.0` -L.. -lstandalone all: start_test report_result finish_test report_testrun_progress announce_resource report_result: start_test ln -s start_test report_result finish_test: start_test ln -s start_test finish_test report_testrun_progress: ln -s start_test report_testrun_progress announce_resource: ln -s start_test announce_resource install: cp -a start_test report_result finish_test report_testrun_progress announce_resource $(DESTDIR)/usr/bin clean: rm -rf *~ *.o rm -f ethernet.so ethernet.exe # most of the makefile remains as it was before. # at the bottom, we add these lines: # rule for building dependency lists, and writing them to a file # named ".depend". .depend: rm -f .depend gccmakedep -f- -- $(CFLAGS) -- *.c > .depend # now add a line to include the dependency list. include .depend