ia64/xen-unstable

view tools/vtpm/Rules.mk @ 9212:7e68bc2745af

Clean up the usage of CFLAGS. This is nice for packagers, who would
like to control the base compilation flags from a central place.

Signed-off-by: Charles Coffing <ccoffing@novell.com>
author kaf24@firebug.cl.cam.ac.uk
date Thu Mar 09 21:17:45 2006 +0100 (2006-03-09)
parents b21261034a25
children fbcb603288bb
line source
1 # Base definitions and rules (XEN_ROOT must be defined in including Makefile)
2 include $(XEN_ROOT)/tools/Rules.mk
4 #
5 # Tool definitions
6 #
8 # Installation program and options
9 INSTALL = install
10 INSTALL_PROG = $(INSTALL) -m0755
11 INSTALL_DIR = $(INSTALL) -d -m0755
13 # Xen tools installation directory
14 TOOLS_INSTALL_DIR = $(DESTDIR)/usr/bin
16 # General compiler flags
17 CFLAGS = -Werror -g3 -I.
19 # For generating dependencies
20 CFLAGS += -Wp,-MD,.$(@F).d
22 DEP_FILES = .*.d
24 # Generic project files
25 HDRS = $(wildcard *.h)
26 SRCS = $(wildcard *.c)
27 OBJS = $(patsubst %.c,%.o,$(SRCS))
29 # Generic (non-header) dependencies
30 $(SRCS): Makefile $(XEN_ROOT)/tools/Rules.mk $(XEN_ROOT)/tools/vtpm/Rules.mk
32 $(OBJS): $(SRCS)
34 -include $(DEP_FILES)
36 BUILD_EMULATOR = n
38 # Make sure these are just rules
39 .PHONY : all build install clean