| Rev | Line | |
|---|
| [34] | 1 | # Copyright (C) HP Labs, Palo Alto and Fort Collins, 2005 |
|---|
| 2 | # Author: Diwaker Gupta <diwaker.gupta@hp.com> |
|---|
| 3 | # |
|---|
| 4 | # This program is free software; you can redistribute it and/or modify |
|---|
| 5 | # it under the terms of the GNU General Public License as published by |
|---|
| 6 | # the Free Software Foundation; under version 2 of the License. |
|---|
| 7 | # |
|---|
| 8 | # This program is distributed in the hope that it will be useful, |
|---|
| 9 | # but WITHOUT ANY WARRANTY; without even the implied warranty of |
|---|
| 10 | # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
|---|
| 11 | # GNU General Public License for more details. |
|---|
| 12 | |
|---|
| 13 | XEN_ROOT=../.. |
|---|
| 14 | include $(XEN_ROOT)/tools/Rules.mk |
|---|
| 15 | |
|---|
| 16 | sbindir=/usr/sbin |
|---|
| 17 | |
|---|
| 18 | CFLAGS += -Werror |
|---|
| 19 | CFLAGS += -I $(XEN_XC) |
|---|
| 20 | CFLAGS += -I $(XEN_LIBXC) |
|---|
| 21 | LDFLAGS += -L $(XEN_LIBXC) |
|---|
| 22 | |
|---|
| 23 | BIN = xentrace_setmask xenbaked |
|---|
| 24 | SCRIPTS = xenmon.py |
|---|
| 25 | |
|---|
| 26 | .PHONY: all |
|---|
| 27 | all: build |
|---|
| 28 | |
|---|
| 29 | .PHONY: build |
|---|
| 30 | build: $(BIN) |
|---|
| 31 | |
|---|
| 32 | .PHONY: install |
|---|
| 33 | install: build |
|---|
| 34 | [ -d $(DESTDIR)$(sbindir) ] || $(INSTALL_DIR) $(DESTDIR)$(sbindir) |
|---|
| 35 | $(INSTALL_PROG) xenbaked $(DESTDIR)$(sbindir)/xenbaked |
|---|
| 36 | $(INSTALL_PROG) xentrace_setmask $(DESTDIR)$(sbindir)/xentrace_setmask |
|---|
| 37 | $(INSTALL_PROG) xenmon.py $(DESTDIR)$(sbindir)/xenmon.py |
|---|
| 38 | |
|---|
| 39 | .PHONY: clean |
|---|
| 40 | clean: |
|---|
| 41 | rm -f $(BIN) |
|---|
| 42 | |
|---|
| 43 | |
|---|
| 44 | %: %.c Makefile |
|---|
| 45 | $(CC) $(CFLAGS) $(LDFLAGS) -lxenctrl -o $@ $< |
|---|
| 46 | xentrace_%: %.c Makefile |
|---|
| 47 | $(CC) $(CFLAGS) $(LDFLAGS) -lxenctrl -o $@ $< |
|---|
Note: See
TracBrowser
for help on using the repository browser.