2000-12-09 02:17:38 +01:00
|
|
|
#
|
|
|
|
|
# This source code is free software; you can redistribute it
|
|
|
|
|
# and/or modify it in source code form under the terms of the GNU
|
|
|
|
|
# Library 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 Library General Public License for more details.
|
|
|
|
|
#
|
|
|
|
|
# You should have received a copy of the GNU Library 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
|
|
|
|
|
#
|
|
|
|
|
SHELL = /bin/sh
|
|
|
|
|
|
|
|
|
|
prefix = @prefix@
|
|
|
|
|
exec_prefix = @exec_prefix@
|
|
|
|
|
srcdir = @srcdir@
|
|
|
|
|
|
|
|
|
|
VPATH = $(srcdir)
|
|
|
|
|
|
|
|
|
|
bindir = @bindir@
|
|
|
|
|
libdir = @libdir@
|
|
|
|
|
includedir = $(prefix)/include
|
|
|
|
|
|
|
|
|
|
CC = @CC@
|
|
|
|
|
INSTALL = @INSTALL@
|
|
|
|
|
INSTALL_PROGRAM = @INSTALL_PROGRAM@
|
|
|
|
|
INSTALL_DATA = @INSTALL_DATA@
|
|
|
|
|
|
2008-11-20 06:07:34 +01:00
|
|
|
CPPFLAGS = -I$(srcdir)/.. @CPPFLAGS@ @DEFS@ @PICFLAG@
|
2010-05-13 01:46:22 +02:00
|
|
|
CFLAGS = @WARNING_FLAGS@ @CFLAGS@
|
2000-12-09 02:17:38 +01:00
|
|
|
LDFLAGS = @LDFLAGS@
|
|
|
|
|
|
2003-02-27 23:13:22 +01:00
|
|
|
all: dep pal.tgt
|
|
|
|
|
|
|
|
|
|
dep:
|
|
|
|
|
mkdir dep
|
2000-12-09 02:17:38 +01:00
|
|
|
|
|
|
|
|
%.o: %.c
|
2010-05-13 01:46:22 +02:00
|
|
|
$(CC) $(CPPFLAGS) $(CFLAGS) @DEPENDENCY_FLAG@ -c $< -o $*.o
|
2000-12-09 02:17:38 +01:00
|
|
|
mv $*.d dep
|
|
|
|
|
|
2001-01-09 04:10:48 +01:00
|
|
|
O = imain.o dump_final.o emit_jed.o enables.o fit_log.o fit_reg.o pads.o
|
2000-12-09 02:17:38 +01:00
|
|
|
|
|
|
|
|
ifeq (@CYGWIN@,yes)
|
2000-12-15 00:37:47 +01:00
|
|
|
TGTLDFLAGS=-L.. -livl
|
2000-12-09 02:17:38 +01:00
|
|
|
TGTDEPLIBS=../libivl.a
|
|
|
|
|
else
|
|
|
|
|
TGTLDFLAGS=
|
|
|
|
|
TGTDEPLIBS=
|
|
|
|
|
endif
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
pal.tgt: $O $(TGTDEPLIBS)
|
2001-01-18 04:09:45 +01:00
|
|
|
$(CC) @shared@ -o $@ $O $(TGTLDFLAGS) $(LDFLAGS) -lipal
|
2000-12-09 02:17:38 +01:00
|
|
|
|
|
|
|
|
clean:
|
2003-02-27 23:13:22 +01:00
|
|
|
rm -rf *.o dep pal.tgt
|
|
|
|
|
|
|
|
|
|
distclean: clean
|
2008-12-17 01:24:09 +01:00
|
|
|
rm -f Makefile config.log
|
2000-12-09 02:17:38 +01:00
|
|
|
|
2008-12-13 00:30:15 +01:00
|
|
|
Makefile: $(srcdir)/Makefile.in ../config.status
|
|
|
|
|
../config.status --file=$@
|
|
|
|
|
|
2000-12-09 02:17:38 +01:00
|
|
|
install: all installdirs $(libdir)/ivl/pal.tgt
|
|
|
|
|
|
|
|
|
|
$(libdir)/ivl/pal.tgt: ./pal.tgt
|
2009-02-04 17:44:22 +01:00
|
|
|
$(INSTALL_PROGRAM) ./pal.tgt "$(DESTDIR)$(libdir)/ivl/pal.tgt"
|
2000-12-09 02:17:38 +01:00
|
|
|
|
|
|
|
|
|
2009-02-04 17:44:22 +01:00
|
|
|
installdirs: $(srcdir)/../mkinstalldirs
|
|
|
|
|
$(srcdir)/../mkinstalldirs "$(DESTDIR)/$(libdir)/ivl"
|
2000-12-09 02:17:38 +01:00
|
|
|
|
|
|
|
|
uninstall:
|
2009-02-04 17:44:22 +01:00
|
|
|
rm -f "$DESTDIR)$(libdir)/ivl/pal.tgt"
|
2000-12-09 02:17:38 +01:00
|
|
|
|
|
|
|
|
|
|
|
|
|
-include $(patsubst %.o, dep/%.d, $O)
|