#
# $Id: Makefile.in 11 2006-11-07 21:41:40Z mleisher $
#

#
# Copyright 2006 Computing Research Labs, New Mexico State University
#
# Permission is hereby granted, free of charge, to any person obtaining a
# copy of this software and associated documentation files (the "Software"),
# to deal in the Software without restriction, including without limitation
# the rights to use, copy, modify, merge, publish, distribute, sublicense,
# and/or sell copies of the Software, and to permit persons to whom the
# Software is furnished to do so, subject to the following conditions:
#
# The above copyright notice and this permission notice shall be included in
# all copies or substantial portions of the Software.
#
# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.  IN NO EVENT SHALL
# THE COMPUTING RESEARCH LAB OR NEW MEXICO STATE UNIVERSITY BE LIABLE FOR ANY
# CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT
# OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR
# THE USE OR OTHER DEALINGS IN THE SOFTWARE.
#

RM = @RM@
CP = @CP@
MKINSTALLDIRS = ./mkinstalldirs

CC = @CC@
CFLAGS = @XX_CFLAGS@ @CFLAGS@

DEFINES = @DEFINES@ -DG_DISABLE_DEPRECATED \
	-DGDK_DISABLE_DEPRECATED -DGDK_PIXBUF_DISABLE_DEPRECATED

SRCS = bdf.c bdfcons.c bdffnt.c bdfgname.c bdfgrab.c bdfgrid.c bdfotf.c \
       bdfpkgf.c bdfpsf.c @HBFSRC@ \
       labcon.c \
       grayswatch.c \
       glyphedit.c \
       glyphtest.c \
       fontgrid.c \
       gectrl.c \
       gbdfed.c \
       guiedit.c \
       guigedit.c \
       guifile.c \
       guihelp.c \
       guiops.c \
       guipref.c \
       guiutil.c

OBJS = bdf.o bdfcons.o bdffnt.o bdfgname.o bdfgrab.o bdfgrid.o bdfotf.o \
       bdfpkgf.o bdfpsf.o @HBFOBJ@ \
       labcon.o \
       grayswatch.o \
       glyphedit.o \
       glyphtest.o \
       fontgrid.o \
       gectrl.o \
       gbdfed.o \
       guiedit.o \
       guigedit.o \
       guifile.o \
       guihelp.o \
       guiops.o \
       guipref.o \
       guiutil.o

#
# Point these at the FreeType source directories.
#
INCS = @CPPFLAGS@
LIBS = @LIBS@
LDFLAGS = @LDFLAGS@

prefix = @prefix@
exec_prefix = @exec_prefix@
bindir = @bindir@
mandir = @mandir@

all: gbdfed

gbdfed: $(OBJS)
	$(CC) $(STATIC) $(LDFLAGS) -o gbdfed $(OBJS) $(LIBS)

clean:
	$(RM) -f *.o *BAK *CKP *~ core

realclean: clean
	$(RM) -f gbdfed

distclean: clean
	$(RM) -f gbdfed config.* Makefile

.c.o:
	$(CC) $(DEFINES) $(CFLAGS) $(INCS) -c $< -o $@

install: gbdfed
	$(MKINSTALLDIRS) $(DESTDIR)$(bindir) $(DESTDIR)$(mandir)/man1
	$(CP) gbdfed $(DESTDIR)$(bindir)/gbdfed
	$(CP) gbdfed.man $(DESTDIR)$(mandir)/man1/gbdfed.1

uninstall:
	$(RM) -f $(DESTDIR)$(bindir)/gbdfed
	$(RM) -f $(DESTDIR)$(mandir)/man1/gbdfed.1

#
# Dependencies.
#
bdf.o: bdf.c bdfP.h bdf.h
bdfcons.o: bdfcons.c bdfP.h bdf.h
bdffnt.o: bdffnt.c bdfP.h bdf.h
bdfgname.o: bdfgname.c bdfP.h bdf.h
bdfgrab.o: bdfgrab.c bdfP.h bdf.h
bdfgrid.o: bdfgrid.c bdfP.h bdf.h
bdfotf.o: bdfotf.c
bdfpkgf.o: bdfpkgf.c bdfP.h bdf.h
bdfpsf.o: bdfpsf.c bdfP.h bdf.h
hbf.o: hbf.c hbf.h
labcon.o: labcon.c labcon.h
grayswatch.o: grayswatch.c grayswatch.h
glyphedit.o: glyphedit.c glyphedit.h bdfP.h bdf.h
glyphtest.o: glyphtest.c glyphtest.h bdfP.h bdf.h
fontgrid.o: fontgrid.c fontgrid.h bdfP.h bdf.h
gectrl.o: gectrl.c gectrl.h bdfP.h bdf.h gectrlbmaps.h
gbdfed.o: gbdfed.c gbdfed.h bdf.h fontgrid.h bdfP.h glyphtest.h labcon.h
guiedit.o: guiedit.c gbdfed.h bdf.h fontgrid.h bdfP.h glyphtest.h \
  labcon.h
guigedit.o: guigedit.c gbdfed.h bdf.h fontgrid.h bdfP.h glyphtest.h \
  glyphedit.h labcon.h gectrl.h
guifile.o: guifile.c gbdfed.h bdf.h fontgrid.h bdfP.h glyphtest.h \
  labcon.h
guihelp.o: guihelp.c gbdfed.h bdf.h fontgrid.h bdfP.h glyphtest.h htext.h
guiops.o: guiops.c gbdfed.h bdf.h fontgrid.h bdfP.h glyphtest.h
guipref.o: guipref.c gbdfed.h bdf.h fontgrid.h bdfP.h glyphtest.h
guiutil.o: guiutil.c gbdfed.h bdf.h fontgrid.h bdfP.h glyphtest.h

# end of Makefile
