diff options
author | David Cantrell <dcantrell@redhat.com> | 2009-06-09 11:28:13 -1000 |
---|---|---|
committer | David Cantrell <dcantrell@redhat.com> | 2009-06-09 12:26:55 -1000 |
commit | 99dce090dd668d81a796b51d8503435a66f0e1f9 (patch) | |
tree | c39592e6998094f4d19b752a920ea9f2928c3c32 /utils | |
parent | f18251d2a9d1f5dfe5f44e490fd15c502fd144c5 (diff) | |
download | anaconda-99dce090dd668d81a796b51d8503435a66f0e1f9.tar.gz anaconda-99dce090dd668d81a796b51d8503435a66f0e1f9.tar.xz anaconda-99dce090dd668d81a796b51d8503435a66f0e1f9.zip |
Convert utils/ to Makefile.am
Diffstat (limited to 'utils')
-rw-r--r-- | utils/Makefile | 90 | ||||
-rw-r--r-- | utils/Makefile.am | 34 |
2 files changed, 34 insertions, 90 deletions
diff --git a/utils/Makefile b/utils/Makefile deleted file mode 100644 index 4677b04c0..000000000 --- a/utils/Makefile +++ /dev/null @@ -1,90 +0,0 @@ -# -# Makefile -# -# Copyright (C) 2007 Red Hat, Inc. All rights reserved. -# -# 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, see <http://www.gnu.org/licenses/>. -# - -include ../Makefile.inc - -ARCH := $(patsubst i%86,i386,$(shell uname -m)) -ARCH := $(patsubst sparc%,sparc,$(ARCH)) - -LOADERDIR = ../loader -LOADLIBES = -lpopt -CFLAGS += -I.. -I$(LOADERDIR) - -UTILS = modlist snarffont mapshdr readmap -ifeq (s390, $(ARCH)) -UTILS += geninitrdsz mk-s390-cdboot -endif -ifeq (s390x, $(ARCH)) -UTILS += geninitrdsz mk-s390-cdboot -endif - -ifeq (.depend,$(wildcard .depend)) -TARGET=all -else -TARGET=depend all -endif - -everything: $(TARGET) - -all: $(UTILS) - -modlist: modlist.o moduleinfo.o - $(CC) $(LDFLAGS) -o modlist modlist.o moduleinfo.o $(LOADLIBES) - -moduleinfo.o: $(LOADERDIR)/moduleinfo.c - cp $(LOADERDIR)/moduleinfo.c ./ - $(CC) $(CFLAGS) -c moduleinfo.c - -moduledeps.o: $(LOADERDIR)/moduledeps.c - cp $(LOADERDIR)/moduledeps.c ./ - $(CC) $(CFLAGS) -c moduledeps.c - -geninitrdsz: geninitrdsz.c - $(CC) $(CFLAGS) -o $@ $< - -mk-s390-cdboot: mk-s390-cdboot.c - $(CC) $(CFLAGS) -o $@ $< - -depends: - -install: all - mkdir -p $(DESTDIR)/usr/bin - mkdir -p $(DESTDIR)/$(RUNTIMEDIR) - install -m755 genmodinfo $(DESTDIR)/$(RUNTIMEDIR) - install -m755 trimpciids $(DESTDIR)/$(RUNTIMEDIR) - install -m755 modlist $(DESTDIR)/$(RUNTIMEDIR) - install -m755 readmap $(DESTDIR)/$(RUNTIMEDIR) - install -m755 mapshdr $(DESTDIR)/$(RUNTIMEDIR) - if [ -x geninitrdsz ]; then \ - install -m755 geninitrdsz $(DESTDIR)/$(RUNTIMEDIR) ; \ - fi - if [ -x mk-s390-cdboot ]; then \ - install -m755 mk-s390-cdboot $(DESTDIR)/$(RUNTIMEDIR) ; \ - fi - -clean: - rm -f modlist snarffont mapshdr readmap geninitrdsz \ - moduledeps.c moduleinfo.c .depend *.o - -depend: - $(CPP) -M -I$(LOADERDIR) *.c > .depend - -ifeq (.depend,$(wildcard .depend)) -include .depend -endif diff --git a/utils/Makefile.am b/utils/Makefile.am new file mode 100644 index 000000000..750f51515 --- /dev/null +++ b/utils/Makefile.am @@ -0,0 +1,34 @@ +# utils/Makefile.am for anaconda +# +# Copyright (C) 2009 Red Hat, Inc. +# +# This program is free software; you can redistribute it and/or modify +# it under the terms of the GNU Lesser General Public License as published +# by the Free Software Foundation; either version 2.1 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 Lesser General Public License for more details. +# +# You should have received a copy of the GNU Lesser General Public License +# along with this program. If not, see <http://www.gnu.org/licenses/>. +# +# Author: David Cantrell <dcantrell@redhat.com> + +utilsdir = $(libdir)/$(PACKAGE_NAME)-runtime +utils_PROGRAMS = modlist mapshdr readmap +dist_utils_SCRIPTS = genmodinfo trimpciids +noinst_PROGRAMS = snarffont +dist_noinst_SCRIPTS = filtermoddeps + +if IS_S390 +utils_PROGRAMS += geninitrdsz mk-s390-cdboot +endif + +modlist_CFLAGS = -I$(top_srcdir)/loader +modlist_LDADD = $(POPT_LIBS) +modlist_SOURCES = modlist.c $(top_srcdir)/loader/moduleinfo.c + +MAINTAINERCLEANFILES = Makefile.in |