#
# DATlib   Copyright (c) 1995-1996 Marcus Meissner &
#          Friedrich-Alexander Universitaet Erlangen-Nuernberg (FAU), IMMD4
#          All rights reserved.
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions
# are met:
# 1. Redistributions of source code must retain the above copyright
#    notice, this list of conditions and the following disclaimer.
# 2. Redistributions in binary form must reproduce the above copyright
#    notice, this list of conditions and the following disclaimer in the
#    documentation and/or other materials provided with the distribution.
# 3. All advertising materials mentioning features or use of this software
#    must display the following acknowledgement:
#    This product includes software developed by Marcus Meissner
#    at the Friedrich-Alexander Universitaet Erlangen-Nuernberg (FAU), IMMD4
#
# 4. The name of the University or the author may not be used
#    to endorse or promote products derived from this software without
#    specific prior written permission.
#
# THIS SOFTWARE IS PROVIDED BY THE UNIVERSITY AND THE AUTHOR ``AS IS'' AND
# ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
# IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
# ARE DISCLAIMED.  IN NO EVENT SHALL THE UNIVERSITY OR THE AUTHOR BE LIABLE
# FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
# DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
# OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
# HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
# LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
# OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
# SUCH DAMAGE.
#
# $Id: Makefile,v 1.1 1997/03/16 20:27:44 msmeissn Exp msmeissn $
#
# $Log: Makefile,v $
# Revision 1.1  1997/03/16 20:27:44  msmeissn
# Initial revision
#
#

# This file was generated by `gxv' from `ply'.

TOP			=	../..
include				$(TOP)/Makefile.common

# Parameters.

PROGRAM		= ply
SOURCES.c	= ply.c ply_mythings.c _7seg.c 
LIBS		= $(DATALIB) $(GENLIB)
SOURCES.h	= ply.h
CFLAGS		= $(TOPCFLAGS) $(INCLUDE) -DDEFAULTAUDIOTAPE='"$(DEFAULTAUDIOTAPE)"'

SOURCES.G =
STUBS.G =

# Include the name of the .G files from the ply.make file.
include ply.make

# Derived parameters.

SOURCES = \
	$(SOURCES.G) \
	$(SOURCES.h) \
	$(SOURCES.l) \
	$(SOURCES.y) \
	$(SOURCES.cps) \
	$(SOURCES.c)

TARGETS.c = \
	$(SOURCES.G:%.G=%_ui.c) \
	$(STUBS.G:%.G=%_stubs.c)

TARGETS.h = \
	$(SOURCES.G:%.G=%_ui.h) \
	$(SOURCES.l:%.l=%.h) \
	$(SOURCES.y:%.y=%.h) \
	$(SOURCES.cps:%.cps=%.h)

TARGETS.other = \
	$(SOURCES.G:%.G=%.info)

TARGETS = \
	$(TARGETS.other) \
	$(TARGETS.h) \
	$(TARGETS.c)

OBJECTS = \
	$(SOURCES.c:%.c=%.o) \
	$(TARGETS.c:%.c=%.o)

# Compiler flags.

CPPFLAGS	+=  -I$(WIN_HOME)/include -DMAIN -DSVR4
LDFLAGS		+= -L$(WIN_HOME)/lib
LDLIBS		+= $(DATALIB) $(GENLIB) $(X11LIBS)

# Standard targets.

all:	 $(TARGETS.other) $(PROGRAM)
objects: $(SOURCES.c) $(TARGETS.c) $(TARGETS.h) $(OBJECTS)
sources: $(SOURCES)
targets: $(SOURCES) $(TARGETS)

$(PROGRAM): $(SOURCES.c) $(TARGETS.c) $(TARGETS.h) $(OBJECTS) $(DATALIB) $(GENLIB)
	$(CC) $(LDFLAGS) -o $@ $(OBJECTS) $(LDLIBS)

install: $(PROGRAM)
	$(INSTALL) $(PROGRAM) $(INSTBINDIR)
clean:
	-rm -f ply *.o core

