/*
 * Xview Sample Imakefile < Imakefile >
 *
 * multi-platform programing: Borland Graphics Interface for Xlib
 *
 * Copyright (c) 1992-94,95 Tokyo Denki Uniersity, Taiji Yamada
 */
#include "../config.h"

EXTRA_INCLUDES = -I../sources/common -I../sources/x11 -I../sources/ps -I../sources/misc -I../graffit/sources -I/usr/openwin/include -UX_WCHAR

#if defined(BuildConcatenatedLib)
#ifdef UseInstalledXBGI
EXTRA_LOAD_FLAGS += -L/usr/openwin/lib
LOCAL_LIBRARIES = $(XBGILIB) $(XTOOLLIB) $(XPMLIB) -lxview -lolgx $(XLIB)
#else
#if DoSharedLib && !defined(LinuxArchitecture)
all:: libgraffit.so libxbgi.so

libgraffit.so:
	$(RM) $@*
	$(LN) ../graffit/sources/libgraffit.so* .
	-if [ ! -f $@ ]; then $(LN) $@* $@; fi

libxbgi.so:
	$(RM) $@*
	$(LN) ../sources/libxbgi.so* .
	-if [ ! -f $@ ]; then $(LN) $@* $@; fi

clean::
	$(RM) ./libgraffit.so* ./libxbgi.so*
LOCAL_LDFLAGS = -L.
EXTRA_LOAD_FLAGS += -L/usr/openwin/lib
LOCAL_LIBRARIES = -lgraffit -lxbgi $(XTOOLLIB) $(XPMLIB) -lxview -lolgx $(XLIB)
#else
EXTRA_LOAD_FLAGS += -L/usr/openwin/lib
LOCAL_LIBRARIES = ../graffit/sources/libgraffit.a ../sources/libxbgi.a $(XTOOLLIB) $(XPMLIB) -lxview -lolgx $(XLIB)
#endif
#endif
#else
#ifdef UseInstalledXBGI
EXTRA_LOAD_FLAGS += -L/usr/openwin/lib
LOCAL_LIBRARIES = $(XBGILIB) $(XTOOLLIB) $(XPMLIB) -lxview -lolgx $(XLIB)
#else
#if DoSharedLib && !defined(LinuxArchitecture)
all:: libgraffit.so libxbgi_$(DefaultStandaloneLib).so libxbgi_common.so libxbgi_misc.so

libgraffit.so:
	$(RM) $@*
	$(LN) ../graffit/sources/libgraffit.so* .
	-if [ ! -f $@ ]; then $(LN) $@* $@; fi

libxbgi_$(DefaultStandaloneLib).so:
	$(RM) $@*
	$(LN) ../sources/$(DefaultStandaloneLib)/libxbgi_$(DefaultStandaloneLib).so .
	-if [ ! -f $@ ]; then $(LN) $@* $@; fi

libxbgi_common.so:
	$(RM) $@*
	$(LN) ../sources/common/libxbgi_common.so* .
	-if [ ! -f $@ ]; then $(LN) $@* $@; fi

libxbgi_misc.so:
	$(RM) $@*
	$(LN) ../sources/misc/libxbgi_misc.so* .
	-if [ ! -f $@ ]; then $(LN) $@* $@; fi

clean::
	$(RM) ./libxbgi_common.so* ./libxbgi_misc.so*
LOCAL_LDFLAGS = -L.
EXTRA_LOAD_FLAGS += -L/usr/openwin/lib
LOCAL_LIBRARIES = -lgraffit -lxbgi_$(DefaultStandaloneLib) -lxbgi_common -lxbgi_misc $(XTOOLLIB) $(XPMLIB) -lxview -lolgx $(XLIB)
#else
EXTRA_LOAD_FLAGS += -L/usr/openwin/lib
LOCAL_LIBRARIES = ../graffit/sources/libgraffit.a ../sources/$(DefaultStandaloneLib)/libxbgi_$(DefaultStandaloneLib).a ../sources/common/libxbgi_common.a ../sources/misc/libxbgi_misc.a $(XTOOLLIB) $(XPMLIB) -lxview -lolgx $(XLIB)
#endif
#endif
#endif

SRCS = sponge.c
OBJS = sponge.o

ComplexProgramTarget(sponge)
