diff options
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/Makefile b/Makefile new file mode 100644 index 0000000..ca05eb9 --- /dev/null +++ b/Makefile @@ -0,0 +1,20 @@ +CROSS_COMPILE ?= +KDIR ?= +KINC := -I$(KDIR)/usr/include + +CC := $(CROSS_COMPILE)gcc +CFLAGS ?= -O2 -W -Wall $(KINC) +LDFLAGS ?= -lrt + +%.o : %.c + $(CC) $(CFLAGS) -c -o $@ $< + +all: fbdev-test + +fbdev-test: fbdev.o + $(CC) $(LDFLAGS) -o $@ $^ + +clean: + -rm -f *.o + -rm -f fbdev-test + |