# If your Motif include files are not in the standard places, specify it:
MOTIF_INCLUDE = -I/toolsa/motif.1.2/usr/include
# otherwise comment out the line above.

# ----------------------------------------------------------------------------
# For normal machines with normal compilers:
#CC = cc
# For Sun's and other non-at-least-pseudo-ANSI-C platforms:
CC = gcc
# ----------------------------------------------------------------------------

# ----------------------------------------------------------------------------
# If you are using Motif 1.2, you should define MOTIF1_2 (e.g. SCO
# below).  Else Motif 1.1 is assumed.  (The widget will work
# standalone without Motif, but Mosaic requires Motif.)
MOTIF1_2=-DMOTIF1_2
# For SGI's:
#CCKR=-cckr
#OTHERFLAGS = $(CCKR)
# For HP's:
# OTHERFLAGS = -I/usr/include/Motif1.1 -I/usr/include/X11R4
# For SCO and anyone else using Motif 1.2:
OTHERFLAGS = $(MOTIF1_2)
# For NeXT:
# OTHERFLAGS = -DNEXT -I/usr/include/X11
# For everyone else:
#OTHERFLAGS = 
# ----------------------------------------------------------------------------

# ----------------------------------------------------------------------------
# For SGI's:
#RANLIB = /bin/true
# For everyone else:
RANLIB = ranlib
# ----------------------------------------------------------------------------

# You shouldn't need to edit below here.

CFLAGS = -g -DMOTIF -DXMOSAIC $(OTHERFLAGS) $(MOTIF_INCLUDE)

LIBTARGET = libhtmlw.a

all: $(LIBTARGET)

CFILES = HTML.c HTMLlists.c HTMLformat.c HTMLparse.c HTMLimages.c HTML-PSformat.c

OBJS = $(CFILES:.c=.o)

$(LIBTARGET): $(OBJS)
	-rm -f $(LIBTARGET)
	ar rv $(LIBTARGET) $(OBJS)
	$(RANLIB) $(LIBTARGET)

clean:
	rm -f $(LIBTARGET) *.o
tags:
	etags -t *.[ch]
