1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52
|
# Copyright (c) 2006-2007, Intel Corporation
# All rights reserved.
# -*- mode: Makefile; -*-
#
# txt-test makefile
#
ROOTDIR ?= $(CURDIR)/..
include $(ROOTDIR)/Config.mk
LINUX_BASE_DIR = $(ROOTDIR)/../
LINUX_BUILD_DIR = $(LINUX_BASE_DIR)/build-linux-2.6.18-xen_$(TARGET_ARCH)
LINUX_SRC_DIR = $(LINUX_BASE_DIR)/linux-2.6.18-xen.hg
# uncomment to build test kernel module
#MOD_TARGET := txt-test.ko
#
# universal targets
#
dist : install
build : $(MOD_TARGET)
install : build
clean :
rm -f $(MOD_TARGET) *~ *.o *.mod.* *.symvers
distclean : clean
#
# dependencies
#
BUILD_DEPS := $(ROOTDIR)/Config.mk $(CURDIR)/Makefile
$(MOD_TARGET) : $(BUILD_DEPS) txt-test.c
$(MAKE) -C $(LINUX_BUILD_DIR) M=$(CURDIR) modules
%.o : %.c $(BUILD_DEPS)
$(CC) $(CFLAGS) -DNO_TBOOT_LOGLVL -c $< -o $@
|