# Generated automatically from Makefile.in by configure.
# fcpu_opcodes/Makefile.in -- Makefile Template for F-CPU Instruction Encoder/Decoder
# Copyright (C) 2001 - 2003 Michael Riepe <michael@stud.uni-hannover.de>
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 2 of the License, or
# (at your option) any later version.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with this program; if not, write to the Free Software
# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA

# @(#) $Id: Makefile.in,v 1.15 2003/01/29 14:03:02 michael Exp $

prefix = /usr/local
exec_prefix = ${prefix}
bindir = ${exec_prefix}/bin
libdir = ${exec_prefix}/lib
includedir = ${prefix}/include/fcpu

CC = gcc
AR = ar
RANLIB = ranlib
MV = mv -f
RM = rm -f
LN_S = ln -s
INSTALL = /usr//bin/install -c
INSTALL_DATA = ${INSTALL} -m 644
INSTALL_PROGRAM = ${INSTALL}

# ordinary lex is not sufficient
LEX = flex
# generate batch (non-interactive) scanner
LFLAGS = -B

CFLAGS = -g -O2 $(EXTRA_CFLAGS)
CPPFLAGS =  $(EXTRA_CPPFLAGS)
DEFS = -DHAVE_CONFIG_H $(EXTRA_DEFINES)
LDFLAGS =  $(EXTRA_LDFLAGS)
LIBS =  $(EXTRA_LIBS)

COMPILE = $(CC) -c $(DEFS) $(INCLUDES) $(CPPFLAGS) $(CFLAGS) $(XCFLAGS)

# no user serviceable parts below

PACKAGE = fctools
VERSION = 0.3

SHELL = /bin/sh


srcdir = ..
top_srcdir = ..

topdir = .
subdir = fcpu_opcodes

target_alias = fcpu
transform = s/^/$(target_alias)-/
tooldir = $(prefix)/$(target_alias)

INCLUDES = -I$(topdir) -I$(top_srcdir)

SRCS = fcpu_opcodes.l fcpu_decode.c
OBJS = fcpu_opcodes.o fcpu_decode.o
HDRS = fcpu_opcodes.h
GENSRCS = fcpu_opcodes.c

LIBRARY = libfcpu_opcodes.a

.c.o:
	$(COMPILE) -o $@ $<

.l.c:
	@$(RM) $@.tmp
	$(LEX) $(LFLAGS) -t $< > $@.tmp
	$(SHELL) $(top_srcdir)/move-if-change $@.tmp $@

all: $(LIBRARY)

$(LIBRARY): $(OBJS)
	$(RM) $@
	$(AR) rcv $@ $(OBJS)
	$(RANLIB) $@

installdirs = $(bindir) $(tooldir) $(libdir) $(includedir)

install: all installdirs install-prog install-data

installdirs: $(top_srcdir)/mkinstalldirs
	$(SHELL) $(top_srcdir)/mkinstalldirs $(installdirs)

install-prog:
	files="$(LIBRARY)"; for file in $$files; do \
		$(INSTALL_DATA) $$file $(libdir)/$$file || exit 1; \
	done

install-data:
	files="$(HDRS)"; for file in $$files; do \
		$(INSTALL_DATA) $(srcdir)/$$file $(includedir)/$$file || exit 1; \
	done

uninstall: uninstall-prog uninstall-data

uninstall-prog:
	files="$(LIBRARY)"; for file in $$files; do \
		$(RM) $(libdir)/$$file; \
	done

uninstall-data:
	files="$(HDRS)"; for file in $$files; do \
		$(RM) $(includedir)/$$file; \
	done

mostlyclean:

clean: mostlyclean
	$(RM) $(LIBRARY) $(OBJS)

distclean: clean
	$(RM) $(GENSRCS) Makefile

maintainer-clean: distclean

MAINT = maintainer-only-

DISTFILES = $(SRCS) $(GENSRCS) $(HDRS) Makefile.in

distdir = $(PACKAGE)-$(VERSION)
distsubdir = $(topdir)/$(distdir)/$(subdir)
$(MAINT)dist: $(DISTFILES)
	if test -d $(distsubdir); then true; else mkdir $(distsubdir); fi
	files="$(DISTFILES)"; for file in $$files; do \
		ln $(srcdir)/$$file $(distsubdir) || \
			cp -p $(srcdir)/$$file $(distsubdir) || exit 1; \
	done

# For the justification of the following Makefile rules, see node
# `Automatic Remaking' in GNU Autoconf documentation.

$(MAINT)Makefile: Makefile.in $(topdir)/config.status
	cd $(topdir) && CONFIG_FILES=$(subdir)/$@ CONFIG_HEADERS= ./config.status

# Tell versions [3.59,3.63) of GNU make not to export all variables.
# Otherwise a system limit (for SysV at least) may be exceeded.
.NOEXPORT:

# DEPENDENCIES -- DO NOT EDIT
fcpu_decode.o: fcpu_decode.c \
	$(top_srcdir)/fcpu_opcodes/fcpu_opcodes.h
fcpu_opcodes.o: fcpu_opcodes.c \
	$(top_srcdir)/fcpu_opcodes/fcpu_opcodes.h
