mirror of
https://github.com/xen-project/xen.git
synced 2026-10-29 10:40:03 +01:00
Merge http://xen.bkbits.net:8080/xeno-unstable.bk into gandalf.hpl.hp.com:/var/bk/xeno-unstable.bk
33 lines
694 B
Makefile
33 lines
694 B
Makefile
|
|
CC = gcc
|
|
CFLAGS = -Wall -O3
|
|
EXTRA_INC = -I../../xen/include/hypervisor-ifs
|
|
EXTRA_INC += -I../../linux-xen-sparse/include -I../xc/lib
|
|
EXTRA_INC += -I../xu/lib
|
|
EXTRA_INC += -I../lib
|
|
|
|
HDRS = $(wildcard *.h)
|
|
SRCS = $(wildcard *.c)
|
|
OBJS = $(patsubst %.c,%.o,$(SRCS))
|
|
|
|
TARGETS = xen_cpuperf
|
|
|
|
INSTALL = $(TARGETS) xencons
|
|
|
|
all: $(TARGETS)
|
|
$(MAKE) -C miniterm
|
|
|
|
install: all
|
|
mkdir -p $(prefix)/usr/bin
|
|
mkdir -p $(prefix)/usr/sbin
|
|
install -m0755 $(INSTALL) $(prefix)/usr/bin
|
|
install -m0755 netfix $(prefix)/usr/sbin
|
|
$(MAKE) -C miniterm install
|
|
|
|
clean:
|
|
$(RM) *.o $(TARGETS) *~
|
|
$(MAKE) -C miniterm clean
|
|
|
|
%: %.c $(HDRS) Makefile
|
|
$(CC) $(CFLAGS) $(EXTRA_INC) -o $@ $<
|