#KDIR := /lib/modules/$(shell uname -r)/build KDIR := /home/s0mbre/aWork/git/linux-2.6/linux-2.6.eventfs PWD := $(shell pwd) CC := gcc CFLAGS := -I$(KDIR)/include -W -Wall TARGETS := signal \ all: $(TARGETS) @echo "Compilation has been successfully finished." %:$(patsubst %,%.c,$<) $(CC) $(CFLAGS) $(patsubst %,%.c,$@) -o $@ clean: @rm -f *.o *~ $(TARGETS) %:$(patsubst %.o,%.c,$<)