#========================================================================
# TITLE:	QMR 
# MODULE:	makefile
# BY:		Ross C LINDER	(c) 1994/95 All rights reserved
#
# X11-QMR is Copyright (c) 1994/95 of Ross C Linder. X11-QMR is not
# public. Permission is granted to use and distribute X11-QMR freely.
# 
# The only restriction is that you do not attempt to prevent others
# from having free access to the source.
#
# Note: sorry people, but X11-QMR now only compiles with Motif2.0+
#       This is due to the Motif Combo Widget.
#
# @(#)makefile	$Revision: 1.7 $	$Date: 1995/05/19 12:37:54 $
#========================================================================

#.uil.uid:
#	uil -o $*.uid $*.uil

CC = cc
CFLAGS = -O6 -DSYSV
#CFLAGS = -g -DSYSV -DDEBUG

LDFLAGS = -L/usr/X11R6/lib

# Linux dynamic libraries..
DYN_LIBS = -lhtmlw -lMrm -lXm -lXpm -lXmu -lXt -lXext -lX11 -lm

# Linux static libraries
LIBS = -lhtmlw -lMrm /usr/X11R6/lib/libXm.a -lXpm -lXmu -lXt -lXext -lX11 -lm 


OBJS = qmr.o unpack.o reply.o tagline.o qwk.o util.o mhelp.o gifread.o 
#
# For Linux with the static/dynamic OSF conflict
#
all:	qmr.dynamic qmr qmr.uid aview

qmr.dynamic:	$(OBJS)
		$(CC) $(LDFLAGS) -o qmr.dynamic $(OBJS) $(DYN_LIBS)
		strip qmr.dynamic

qmr:		$(OBJS)
		$(CC) $(LDFLAGS) -o qmr $(OBJS) $(LIBS)
		strip qmr

qmr.uid:	qmr.uil
		uil -o qmr.uid qmr.uil

aview:		aview.o
		$(CC) -o aview aview.o

clean:
		rm -f *.o *.uid qmr qmr.dynamic aview core
