all: makefile.tag

#flag DVBUG turns on debugging

CFLAGS = -O -c -DMOTIF -DMSDOS -Wimplicit
CC = gcc

CFILES = main.c gui.c gui-dialogs.c gui-menubar.c gui-documents.c mo-www.c\
  mo-dtm.c hotlist.c whine.c history.c\
  annotate.c pan.c grpan.c grpan-www.c audan.c globalhist.c img.c\
  picread.c xpmhash.c xpmread.c gifread.c pixmaps.c\
  medcut.c mo-hdf.c hotfile.c child.c \
  accept.c cciServer.c cciBind1.c cciBind2.c support.c bla.c

OFILES = main.o gui.o gui-dialogs.o gui-menubar.o gui-documents.o mo-www.o\
  mo-dtm.o hotlist.o whine.o history.o\
  annotate.o pan.o grpan.o grpan-www.o audan.o globalhist.o img.o\
  picread.o xpmhash.o xpmread.o gifread.o pixmaps.o\
  medcut.o mo-hdf.o hotfile.o child.o \
  accept.o cciServer.o cciBind1.o cciBind2.o support.o bla.o

.c.o:
	gcc $(CFLAGS) $<

makefile.tag: $(OFILES)

HFILES = mosaic.h
$(OBJS): $(HFILES)

hotlist.o hotfile.o: hotlist.h
gui.o: xresources.h
