ifeq ($(PARAM_FILE), ) PARAM_FILE:=../../Makefile.param include $(PARAM_FILE) endif obj-m := piris.o hi_pwm-y += piris.o EXTRA_CFLAGS += -I$(REL_INC) EXTRA_CFLAGS += $(DRV_CFLAGS) default: $(CC) -g -Wall -o piris_test piris_test.c strfunc.c @$(MAKE) -C $(LINUX_ROOT) M=$(PWD) modules @rm -f *.o modules.* *.symvers *.mod.c clean: @make -C $(LINUX_ROOT) M=$(PWD) clean @rm -f piris_test *.bak