ia64/xen-unstable

changeset 6028:1d240086de52

Add missing parallax makefile.
Seems to have vanished in the directory shuffle of last month.

Signed-off-by: andrew.warfield@cl.cam.ac.uk
Signed-off-by: Nguyen Anh Quynh <aquynh@gmail.com>
author akw27@arcadians.cl.cam.ac.uk
date Thu Aug 04 15:02:09 2005 +0000 (2005-08-04)
parents f3f483059250
children 9f0eff879d89
files tools/blktap/parallax/Makefile
line diff
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/tools/blktap/parallax/Makefile	Thu Aug 04 15:02:09 2005 +0000
     1.3 @@ -0,0 +1,64 @@
     1.4 +XEN_ROOT = ../../..
     1.5 +include $(XEN_ROOT)/tools/Rules.mk
     1.6 +
     1.7 +PARALLAX_INSTALL_DIR	= /usr/sbin
     1.8 +
     1.9 +INSTALL         = install
    1.10 +INSTALL_PROG    = $(INSTALL) -m0755
    1.11 +INSTALL_DIR     = $(INSTALL) -d -m0755
    1.12 +
    1.13 +INCLUDES += -I.. -I/usr/include -I $(XEN_LIBXC)
    1.14 +
    1.15 +LDFLAGS = -L.. -lpthread -lz -lblktap
    1.16 +
    1.17 +#PLX_SRCS := 
    1.18 +PLX_SRCS := vdi.c 
    1.19 +PLX_SRCS += radix.c 
    1.20 +PLX_SRCS += snaplog.c
    1.21 +PLX_SRCS += blockstore.c 
    1.22 +PLX_SRCS += block-async.c
    1.23 +PLX_SRCS += requests-async.c
    1.24 +VDI_SRCS := $(PLX_SRCS)
    1.25 +PLX_SRCS += parallax.c
    1.26 +
    1.27 +#VDI_TOOLS :=
    1.28 +VDI_TOOLS := vdi_create
    1.29 +VDI_TOOLS += vdi_list
    1.30 +VDI_TOOLS += vdi_snap
    1.31 +VDI_TOOLS += vdi_snap_list
    1.32 +VDI_TOOLS += vdi_snap_delete
    1.33 +VDI_TOOLS += vdi_fill
    1.34 +VDI_TOOLS += vdi_tree
    1.35 +VDI_TOOLS += vdi_validate
    1.36 +
    1.37 +CFLAGS   += -Wall
    1.38 +CFLAGS   += -Werror
    1.39 +CFLAGS   += -Wno-unused
    1.40 +#CFLAGS   += -O3
    1.41 +CFLAGS   += -g3
    1.42 +CFLAGS   += -fno-strict-aliasing
    1.43 +CFLAGS   += $(INCLUDES)
    1.44 +CFLAGS   += -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE
    1.45 +# Get gcc to generate the dependencies for us.
    1.46 +CFLAGS   += -Wp,-MD,.$(@F).d
    1.47 +DEPS     = .*.d
    1.48 +
    1.49 +OBJS     = $(patsubst %.c,%.o,$(SRCS))
    1.50 +IBINS    = parallax $(VDI_TOOLS)
    1.51 +
    1.52 +all: $(VDI_TOOLS) parallax blockstored
    1.53 +
    1.54 +install: all
    1.55 +	$(INSTALL_PROG) $(IBINS) $(DESTDIR)$(PARALLAX_INSTALL_DIR)
    1.56 +
    1.57 +clean:
    1.58 +	rm -rf *.o *~ $(DEPS) xen TAGS $(VDI_TOOLS) parallax vdi_unittest
    1.59 +
    1.60 +parallax: $(PLX_SRCS)
    1.61 +	$(CC) $(CFLAGS) -o parallax -L.. $(LDFLAGS) $(PLX_SRCS)
    1.62 +
    1.63 +${VDI_TOOLS}: %: %.c $(VDI_SRCS)
    1.64 +	$(CC) $(CFLAGS) -g3 -o $@ $@.c $(LDFLAGS) $(VDI_SRCS)
    1.65 +
    1.66 +.PHONY: TAGS clean install rpm
    1.67 +-include $(DEPS)
    1.68 \ No newline at end of file