Files
xen/tools/internal/Makefile
T
kaf24@scramble.cl.cam.ac.uk dce8f3f323 bitkeeper revision 1.500 (3f86be35Q1ywfgRyq1VKkvPUP_JZ_A)
xi_vif_params.c:
  new file
dev.c, vif.h, network.h, network.c, xen_read_console.c, Makefile:
  Credit-based network scheduling.
2003-10-10 14:12:05 +00:00

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 $@ $<