Commit ed36ea86 authored by Federico Vaga's avatar Federico Vaga Committed by Alessandro Rubini

Makefile to compile it all

From this commit onwards the whole thing compiles and works (from
2.6.34 onwards). We chose to save you from the past history of
internal zio development.

Signed-off by: Federico Vaga <federico.vaga@gmail.com>
Signed-off-by: Alessandro Rubini's avatarAlessandro Rubini <rubini@gnudd.com>
parent 01e6e6e9
LINUX ?= /lib/modules/$(shell uname -r)/build
zio-core-objs := zio-dev.o zio-sys.o zio-buf.o
obj-m = zio-core.o
obj-m += drivers/
obj-m += buffers/
obj-m += triggers/
EXTRA_CFLAGS += -I$(obj)/include/
hostprogs-y := zio-dump
HOST_EXTRACFLAGS += -I$(M)/include/
all: modules user
modules:
$(MAKE) $(EXTRA_CFLAGS) -C $(LINUX) M=$(shell /bin/pwd)
# This is ugly, please forgive me by now
user: $(hostprogs-y)
zio-dump: zio-dump.c
$(CC) -Wall -Iinclude $^ -o $@
# this make clean is ugly, I'm aware...
clean:
rm -rf `find . -name \*.o -o -name \*.ko -o -name \*~ `
rm -rf `find . -name Module.\* -o -name \*.mod.c`
rm -rf .tmp_versions modules.order
$(MAKE) -C doc clean
LINUX ?= /lib/modules/$(shell uname -r)/build
EXTRA_CFLAGS += -I$(obj)/../include/
obj-m = zio-buf-kmalloc.o
all:
$(MAKE) -C $(LINUX) M=$(shell /bin/pwd) modules
LINUX ?= /lib/modules/$(shell uname -r)/build
EXTRA_CFLAGS += -I$(obj)/../include/
obj-m = zio-zero.o
all:
$(MAKE) -C $(LINUX) M=$(shell /bin/pwd) modules
LINUX ?= /lib/modules/$(shell uname -r)/build
EXTRA_CFLAGS += -I$(obj)/../include/
obj-m = zio-trig-timer.o
all:
$(MAKE) -C $(LINUX) M=$(shell /bin/pwd) modules
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment