all: dropwatch CFLAGS += -c -g -D_GNU_SOURCE -Wall -Werror CFLAGS += `pkg-config --cflags libnl-2.0` LDFLAGS += -lbfd -lreadline -ltermcap LDFLAGS += `pkg-config --libs libnl-2.0` OBJFILES := main.o lookup.o\ lookup_bfd.o lookup_kas.o dropwatch: $(OBJFILES) gcc -g -o dropwatch $(OBJFILES) $(LDFLAGS) %.o: %.c gcc $(CFLAGS) $< clean: rm -f dropwatch *.o