mirror of
https://github.com/xen-project/xen.git
synced 2026-10-29 10:40:03 +01:00
xi_vif_params.c: new file dev.c, vif.h, network.h, network.c, xen_read_console.c, Makefile: Credit-based network scheduling.
37 lines
913 B
Makefile
37 lines
913 B
Makefile
|
|
CC = gcc
|
|
CFLAGS = -Wall -O3
|
|
CFLAGS += -I../../xen/include -I../../xenolinux-sparse/include
|
|
|
|
HDRS = $(wildcard *.h)
|
|
SRCS = $(wildcard *.c)
|
|
OBJS = $(patsubst %.c,%.o,$(SRCS))
|
|
|
|
TARGETS = xi_create xi_start xi_stop xi_destroy xi_build
|
|
TARGETS += xi_phys_grant xi_phys_revoke xi_phys_probe xi_list
|
|
TARGETS += xi_sched_global xi_sched_domain xi_usage xi_vif_params
|
|
INSTALL = $(TARGETS) xi_vifinit xi_helper
|
|
|
|
all: $(TARGETS)
|
|
|
|
install: all
|
|
mkdir -p ../../../install/bin
|
|
cp -a $(INSTALL) ../../../install/bin
|
|
chmod 755 ../../../install/bin/xi_vifinit
|
|
chmod 755 ../../../install/bin/xi_helper
|
|
|
|
clean:
|
|
$(RM) *.o *.rpm $(TARGETS)
|
|
|
|
rpm: all
|
|
rm -rf staging
|
|
mkdir staging
|
|
mkdir staging/i386
|
|
rpmbuild --define "staging$$PWD/staging" --define '_builddir.' --define "_rpmdir$$PWD/staging" -bb rpm.spec
|
|
mv staging/i386/*.rpm .
|
|
rm -rf staging
|
|
|
|
%: %.c $(HDRS) Makefile
|
|
$(CC) $(CFLAGS) -o $@ $<
|
|
|