2 # Makefile for utils/amd-udi/montip
3 # Copyright (C) 1993 Free Software Foundation
5 # This file is free software; you can redistribute it and/or modify
6 # it under the terms of the GNU General Public License as published by
7 # the Free Software Foundation; either version 2 of the License, or
8 # (at your option) any later version.
10 # This program is distributed in the hope that it will be useful,
11 # but WITHOUT ANY WARRANTY; without even the implied warranty of
12 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13 # GNU General Public License for more details.
15 # You should have received a copy of the GNU General Public License
16 # along with this program; if not, write to the Free Software
17 # Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
21 # Written by Jeffrey Wheat (cassidy@cygnus.com)
24 #### Start of system configuration section. ####
32 INSTALL_PROGRAM = @INSTALL_PROGRAM@
33 INSTALL_DATA = @INSTALL_DATA@
51 exec_prefix = $(prefix)
53 bindir = $(exec_prefix)/bin
54 libdir = $(exec_prefix)/lib
56 mandir = $(prefix)/man
57 man1dir = $(mandir)/man1
58 man2dir = $(mandir)/man2
59 man3dir = $(mandir)/man3
60 man4dir = $(mandir)/man4
61 man5dir = $(mandir)/man5
62 man6dir = $(mandir)/man6
63 man7dir = $(mandir)/man7
64 man8dir = $(mandir)/man8
69 INSTALL_DATA = $(INSTALL)
70 INSTALL_PROGRAM = $(INSTALL)
72 #### End of system configuration section. ####
74 OBJS = udi2mtip.o messages.o endian.o hif.o checksum.o tdfunc.o
76 LIBTIP = ../udi/libtip.a
78 INCLUDE = -I$(srcdir)/../udi -I$(srcdir)/../include
81 $(CC) $(INCLUDE) $(DEFS) $(CFLAGS) -c $<
85 montip: $(LIBTIP) $(OBJS)
86 $(CC) $(LDFLAGS) -o $@ $(OBJS) $(LIBTIP) $(LIBIBERTY)
93 distclean maintainer-clean realclean: clean
94 $(RM) -f Makefile config.status
96 .PHONY: check installcheck info install-info clean-info dvi
100 info install-info clean-info dvi:
102 # with the gnu make, this is done automatically.
104 Makefile: Makefile.in
105 $(SHELL) ./config.status
107 config.status: configure
108 $(srcdir)/configure --no-create
110 configure: configure.in
113 # Prevent GNU make v3 from overflowing arg limit on SysV.