# This file is automatically generated by buildconfig.

METHOD_SOURCES  = buffindexed/buffindexed.c buffindexed/shmem.c cnfs/cnfs.c \
                  ovdb/ovdb.c ovsqlite/ovsqlite-private.c ovsqlite/ovsqlite.c \
                  ovsqlite/sql-read.c ovsqlite/sqlite-helper.c timecaf/caf.c \
                  timecaf/timecaf.c timehash/timehash.c \
                  tradindexed/tdx-cache.c tradindexed/tdx-data.c \
                  tradindexed/tdx-group.c tradindexed/tradindexed.c \
                  tradspool/tradspool.c trash/trash.c
EXTRA_SOURCES   = ovsqlite/ovsqlite-server.c ovsqlite/sql-init.c \
                  ovsqlite/sql-main.c tradindexed/tdx-util.c
PROGRAMS        = buffindexed/buffindexed_d ovsqlite/ovsqlite-server \
                  ovsqlite/ovsqlite-util tradindexed/tdx-util
RM_CLEAN        = ovsqlite/sqlite-helper-gen
RM_DISTCLEAN    =
RM_MAINTCLEAN   = ovsqlite/sql-init.c ovsqlite/sql-init.h ovsqlite/sql-main.c \
                  ovsqlite/sql-main.h ovsqlite/sql-read.c ovsqlite/sql-read.h


##  Included from buffindexed/ovmethod.mk

# This rule requires a compiler that supports -o with -c.  Since it's normally
# used by developers, that should be acceptable.
buffindexed/buffindexed_d.$(EXTOBJ): buffindexed/buffindexed.c
	$(LIBCC) $(CFLAGS) -DBUFF_DEBUG -c -o $@ buffindexed/buffindexed.c

buffindexed/buffindexed_d: buffindexed/buffindexed_d.$(EXTOBJ) libinnstorage.$(EXTLIB) $(LIBHIST)
	$(LIBLDDEPS) $(LDFLAGS) -o $@ buffindexed/buffindexed_d.$(EXTOBJ) \
	    $(LIBSTORAGE) $(LIBHIST) $(LIBINN) $(STORAGE_LIBS) $(LIBS)


##  Included from ovsqlite/ovmethod.mk

OVSQLITEOBJECTS = ovsqlite/ovsqlite-server.o ovsqlite/sql-main.o \
	ovsqlite/sql-init.o \
	ovsqlite/ovsqlite-private.o
OVSQLITELOBJECTS = $(OVSQLITEOBJECTS:.o=.lo)

ovsqlite/ovsqlite-server: $(OVSQLITEOBJECTS) libinnstorage.$(EXTLIB)
	$(LIBLD) $(LDFLAGS) $(SQLITE3_LDFLAGS) -o $@ $(OVSQLITELOBJECTS) \
	$(LIBSTORAGE) $(LIBHIST) $(LIBINN) $(STORAGE_LIBS) $(SQLITE3_LIBS) \
	$(LIBS)

ovsqlite/ovsqlite-util: ovsqlite/ovsqlite-util.in $(FIXSCRIPT)
	$(FIX) ovsqlite/ovsqlite-util.in

ovsqlite/sqlite-helper-gen: ovsqlite/sqlite-helper-gen.in $(FIXSCRIPT)
	$(FIX) -i ovsqlite/sqlite-helper-gen.in

ovsqlite/sql-main.c: ovsqlite/sql-main.sql ovsqlite/sqlite-helper-gen
	ovsqlite/sqlite-helper-gen ovsqlite/sql-main.sql

ovsqlite/sql-main.h: ovsqlite/sql-main.c ;

ovsqlite/sql-init.c: ovsqlite/sql-init.sql ovsqlite/sqlite-helper-gen
	ovsqlite/sqlite-helper-gen ovsqlite/sql-init.sql

ovsqlite/sql-init.h: ovsqlite/sql-init.c ;

ovsqlite/sql-read.c: ovsqlite/sql-read.sql ovsqlite/sqlite-helper-gen
	ovsqlite/sqlite-helper-gen ovsqlite/sql-read.sql

ovsqlite/sql-read.h: ovsqlite/sql-read.c ;



##  Included from tradindexed/ovmethod.mk

tradindexed/tdx-util.$(EXTOBJ): tradindexed/tdx-util.c
	$(LIBCC) $(CFLAGS) -c -o $@ tradindexed/tdx-util.c

tradindexed/tdx-util: tradindexed/tdx-util.$(EXTOBJ) libinnstorage.$(EXTLIB) $(LIBHIST)
	$(LIBLD) $(LDFLAGS) -o $@ tradindexed/tdx-util.$(EXTOBJ) \
	    $(LIBSTORAGE) $(LIBHIST) $(LIBINN) $(STORAGE_LIBS) $(LIBS)
