diff options
author | kaf24@firebug.cl.cam.ac.uk <kaf24@firebug.cl.cam.ac.uk> | 2006-03-09 21:17:45 +0100 |
---|---|---|
committer | kaf24@firebug.cl.cam.ac.uk <kaf24@firebug.cl.cam.ac.uk> | 2006-03-09 21:17:45 +0100 |
commit | 326450f67e011c6cb6ced17c8dcb5e7a8442057d (patch) | |
tree | cee4a75a40c795a063b54ee703fcf9cf0ade0785 /tools/misc/nsplitd | |
parent | e2b8c751654956aef727ec7ee17091cd8e0938ac (diff) | |
download | xen-326450f67e011c6cb6ced17c8dcb5e7a8442057d.tar.gz xen-326450f67e011c6cb6ced17c8dcb5e7a8442057d.tar.bz2 xen-326450f67e011c6cb6ced17c8dcb5e7a8442057d.zip |
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>
Diffstat (limited to 'tools/misc/nsplitd')
-rw-r--r-- | tools/misc/nsplitd/Makefile | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/tools/misc/nsplitd/Makefile b/tools/misc/nsplitd/Makefile index c5c4c9ed40..8880ceabf7 100644 --- a/tools/misc/nsplitd/Makefile +++ b/tools/misc/nsplitd/Makefile @@ -1,6 +1,6 @@ +XEN_ROOT := ../../.. +include $(XEN_ROOT)/tools/Rules.mk -CC = gcc -CFLAGS = -Wall -O3 CFILES = $(wildcard *.c) HDRS = $(wildcard *.h) @@ -16,7 +16,7 @@ clean: $(RM) *.o $(TARGET) *~ $(TARGET): $(OBJS) - $(CC) $(CFLAGS) -o $@ $^ + $(HOSTCC) $(HOSTCFLAGS) -o $@ $^ %.o: %.c $(HDRS) Makefile - $(CC) $(CFLAGS) -c -o $@ $< + $(HOSTCC) $(HOSTCFLAGS) -c -o $@ $< |