ia64/xen-unstable

view tools/internal/Makefile @ 910:7c2e9edb5190

bitkeeper revision 1.576 (3facdede5nZbIb45xqApby8e8U5CQA)

xi_save_linux.c, xi_restore_linux.c, Makefile:
Suspend/resume now uses zlib to reduce the state file size.
author kaf24@scramble.cl.cam.ac.uk
date Sat Nov 08 12:17:34 2003 +0000 (2003-11-08)
parents 2157fc1812d8
children 4aba3a48d64f 0a901de56d7c
line source
2 CC = gcc
3 CFLAGS = -Wall -O3
4 CFLAGS += -I../../xen/include -I../../xenolinux-sparse/include
6 HDRS = $(wildcard *.h)
7 SRCS = $(wildcard *.c)
8 OBJS = $(patsubst %.c,%.o,$(SRCS))
10 TARGETS = xi_create xi_start xi_stop xi_destroy xi_build
11 TARGETS += xi_phys_grant xi_list xi_save_linux xi_restore_linux
12 TARGETS += xi_sched_global xi_sched_domain xi_usage xi_vif_params
13 INSTALL = $(TARGETS) xi_vifinit xi_helper
15 all: check-for-zlib $(TARGETS)
17 check-for-zlib:
18 @if [ ! -e /usr/include/zlib.h ]; then \
19 echo "***********************************************************"; \
20 echo "ERROR: install zlib header files (http://www.gzip.org/zlib)"; \
21 echo "***********************************************************"; \
22 false; \
23 fi
25 install: all
26 mkdir -p ../../../install/bin
27 cp -a $(INSTALL) ../../../install/bin
28 chmod 755 ../../../install/bin/xi_vifinit
29 chmod 755 ../../../install/bin/xi_helper
31 clean:
32 $(RM) *.o *.rpm $(TARGETS)
34 rpm: all
35 rm -rf staging
36 mkdir staging
37 mkdir staging/i386
38 rpmbuild --define "staging$$PWD/staging" --define '_builddir.' --define "_rpmdir$$PWD/staging" -bb rpm.spec
39 mv staging/i386/*.rpm .
40 rm -rf staging
42 xi_save_linux xi_restore_linux: %: %.c $(HDRS) Makefile
43 $(CC) $(CFLAGS) -lz -o $@ $<
45 %: %.c $(HDRS) Makefile
46 $(CC) $(CFLAGS) -o $@ $<