override CFLAGS += -I.. -fPIC `pkg-config --cflags glib-2.0` LDFLAGS = `pkg-config --libs glib-2.0` -L.. -lstandalone -lm all: chk_hpet.exe chk_hpet.exe: chk_hpet.o .depend gcc chk_hpet.o $(LDFLAGS) -o chk_hpet.exe cp chk_hpet.exe ../plugins clean: rm -rf *~ *.o rm -rf *.dat *.dsl acpi.dump rm -f chk_hpet.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