# @(#) $Header: /src/X11/contrib/demos/xphoon/RCS/Imakefile,v 1.2 90/04/05 18:17:54 tim Exp Locker: tim $ (LBL)
#
# Copyright (C) 1988 by Jef Poskanzer and Craig Leres.
#
# Permission to use, copy, modify, and distribute this software and its
# documentation for any purpose and without fee is hereby granted, provided
# that the above copyright notice appear in all copies and that both that
# copyright notice and this permission notice appear in supporting
# documentation.  This software is provided "as is" without express or
# implied warranty.


       INCLUDES = -I. -I$(TOP) -I$(TOP)/X11 -I$(TOP)/X11/bitmaps
LOCAL_LIBRARIES = $(XLIB)
  SYS_LIBRARIES = -lm

# System-dependent options -- xbigphoon is a little big for many Suns
# to compile.
#         DEFINES = -pipe

           SRCS1 = xphoon.c fullmoon.c phase.c dtime.c
           OBJS1 = xphoon.o fullmoon.o phase.o dtime.o

        PROGRAMS = xphoon

ComplexProgramTarget_1(xphoon,$(LOCAL_LIBRARIES),)


# Make the export sharchive.
shar: xphoon.shar

xphoon.shar: xphoon.shar1 xphoon.shar2 xphoon.shar3 xphoon.shar4 xphoon.shar5

xphoon.shar1: README Imakefile Makefile xphoon.man xphoon.c fullmoon.c phase.c dtime.c tws.h
	shar -v -c -p X README Imakefile Makefile xphoon.man xphoon.c fullmoon.c phase.c dtime.c tws.h >xphoon.shar1

bigfullmoon.xbm.Z: bigfullmoon.xbm
	compress -c bigfullmoon.xbm >bigfullmoon.xbm.Z

bigfullmoon.xbm.Z.uu: bigfullmoon.xbm.Z
	uuencode bigfullmoon.xbm.Z bigfullmoon.xbm.Z >bigfullmoon.xbm.Z.uu

bigfullmoon.xbm.Z.uuaa: bigfullmoon.xbm.Z.uu
	split -550 bigfullmoon.xbm.Z.uu bigfullmoon.xbm.Z.uu

xphoon.shar2: bigfullmoon.xbm.Z.uuaa
	shar -v -c -p X bigfullmoon.xbm.Z.uuaa >xphoon.shar2

xphoon.shar3: bigfullmoon.xbm.Z.uuab
	shar -v -c -p X bigfullmoon.xbm.Z.uuab >xphoon.shar3

xphoon.shar4: bigfullmoon.xbm.Z.uuac
	shar -v -c -p X bigfullmoon.xbm.Z.uuac >xphoon.shar4

xphoon.shar5: bigfullmoon.xbm.Z.uuad
	shar -v -c -p X bigfullmoon.xbm.Z.uuad >xphoon.shar5

# Unpack the compressed, uuencoded, shared bitmap.
unshar:
	cat bigfullmoon.xbm.Z.uu?? > bigfullmoon.xbm.Z.uu
	uudecode bigfullmoon.xbm.Z.uu
	uncompress bigfullmoon.xbm.Z

# Make the export tarchive.
tar: xphoon.tar.Z

xphoon.tar.Z: xphoon.tar
	rm -f xphoon.tar.Z
	compress xphoon.tar

xphoon.tar: README Imakefile Makefile xphoon.man xphoon.c fullmoon.c phase.c dtime.c tws.h bigfullmoon.xbm
	tar chf xphoon.tar README Imakefile Makefile xphoon.man xphoon.c fullmoon.c phase.c dtime.c tws.h bigfullmoon.xbm
