# Copyright(c) 1995-1997 Gregory M. Messner
# All rights reserved
#
# Permission to use, copy, modify and distribute this material for
# non-commercial personal and educational use without fee is hereby
# granted, provided that the above copyright notice and this permission 
# notice appear in all copies, and that the name of Gregory M. Messner
# not be used in advertising or publicity pertaining to this material
# without the specific, prior written permission of Gregory M. Messner 
# or an authorized representative.
#
# GREGORY M. MESSNER MAKES NO REPRESENTATIONS AND EXTENDS NO WARRANTIES, 
# EXPRESS OR IMPLIED, WITH RESPECT TO THE SOFTWARE, INCLUDING, BUT NOT
# LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
# ANY PARTICULAR PURPOSE, AND THE WARRANTY AGAINST INFRINGEMENT OF PATENTS
# OR OTHER INTELLECTUAL PROPERTY RIGHTS. THE SOFTWARE IS PROVIDED "AS IS",
# AND IN NO EVENT SHALL GREGORY M. MESSNER BE LIABLE FOR ANY DAMAGES,
# INCLUDING ANY LOST PROFITS OR OTHER INCIDENTAL OR CONSEQUENTIAL DAMAGES
# RELATING TO THE SOFTWARE.


#+++FHDR+++
#
#	Filename: samples/makefile
#	Module  : Xg Widget Set
#	Version	: 1.9 10/18/96
#
#	Description: This is the make file for the sample/test
#		     programs for the Xg Widget Set.
#
#
#
#	Changes
#
#	By		Date		Description
#	--------	---------	----------------------------------
#	messner		08/08/95	Original file
#
#
#---FHDR---

TESTCSRC = testcb.c testcl.c testepb.c testfl.c testne.c \
	  testrow.c testtb.c testte.c testtabs.c
TESTPROGS = ${TESTCSRC:.c=}

CFLAGS  = -I/usr/X11R6/include/xg -I/usr/X11R6/include
LDFLAGS = -L/usr/X11R6/lib -lXm -lXt -lXmu -lX11 -lxg

# ------------------------------------------------------------------------
# miscellaneous macros
#
CLEAN	= *.o
CLOBBER	= $(TESTPROGS)

# ------------------------------------------------------------------------
# the following are the targets to be built
#
all: test

test : ${TESTPROGS} 

testcb : testcb.o $(LIBXG)
	cc -o $@ $@.o ${LDFLAGS}

testcl : testcl.o $(LIBXG)
	cc -o $@ $@.o ${LDFLAGS}

testfl : testfl.o $(LIBXG)
	cc -o $@ $@.o ${LDFLAGS}

testepb: testepb.o $(LIBXG)
	cc -o $@ $@.o ${LDFLAGS}

testne: testne.o $(LIBXG)
	cc -o $@ $@.o ${LDFLAGS}
	
testte: testte.o $(LIBXG)
	cc -o $@ $@.o ${LDFLAGS}
	
testtabs: testtabs.o $(LIBXG)
	cc -o $@ $@.o ${LDFLAGS}

testrow: testrow.o $(LIBXG)
	cc -o $@ $@.o ${LDFLAGS}

testtb: testtb.o $(LIBXG)
	cc -o $@ $@.o ${LDFLAGS}


# ------------------------------------------------------------------------
# maintenance targets
#
clean:
	-rm -f $(CLEAN)

clobber: clean
	-rm -f $(CLOBBER)

#------------------------------------------------------------------------

