override CFLAGS += `pkg-config --cflags glib-2.0` -fPIC -I.. -I/usr/include/slang LDFLAGS = -nodefaultlibs -L../initramfs/data/lib -L../initramfs/data/usr/lib `pkg-config --libs glib-2.0` all: bashshell.so bashshell.so: bashshell.o .depend gcc -shared bashshell.o $(LDFLAGS) -o bashshell.so -lnewt cp bashshell.so ../plugins clean: rm -rf *~ *.o rm -f bashshell.so # 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