diff options
author | David Cantrell <dcantrell@redhat.com> | 2009-06-09 11:20:38 -1000 |
---|---|---|
committer | David Cantrell <dcantrell@redhat.com> | 2009-06-09 12:26:51 -1000 |
commit | 49d2c55bcdf6920a0bfe7b2e84fbbfcf4270c437 (patch) | |
tree | 2dee7bb04c74bda930dcdee7828ddfa556500d84 /gptsync | |
parent | 7a3cce670191f11fd28065c475f8bd44ab10d1de (diff) | |
download | anaconda-49d2c55bcdf6920a0bfe7b2e84fbbfcf4270c437.tar.gz anaconda-49d2c55bcdf6920a0bfe7b2e84fbbfcf4270c437.tar.xz anaconda-49d2c55bcdf6920a0bfe7b2e84fbbfcf4270c437.zip |
Convert gptsync/ to Makefile.am
Diffstat (limited to 'gptsync')
-rw-r--r-- | gptsync/Makefile | 52 | ||||
-rw-r--r-- | gptsync/Makefile.am | 35 |
2 files changed, 35 insertions, 52 deletions
diff --git a/gptsync/Makefile b/gptsync/Makefile deleted file mode 100644 index c08a7745d..000000000 --- a/gptsync/Makefile +++ /dev/null @@ -1,52 +0,0 @@ -# -# Makefile for gptsync on Unix platforms -# - - -TARGETS = gptsync showpart -OBJS = showpart.c lib.c os_unix.c gptsync.c - -CPPFLAGS = $(CFLAGS) -#CPPFLAGS = $(shell echo $(CFLAGS) | sed -e 's/-O2/-O0/g' -e 's/-g /-ggdb3 /g') -CPPFLAGS += -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -LDFLAGS = -LIBS = -CC = gcc - -include ../Makefile.inc - -# real making - -all: $(TARGETS) - -gptsync: gptsync.o lib.o - $(CC) $(CPPFLAGS) $(LDFLAGS) -DPROGNAME=$@ -o $@ os_unix.c $^ $(LIBS) - -showpart: showpart.o lib.o - $(CC) $(CPPFLAGS) $(LDFLAGS) -DPROGNAME=$@ -o $@ os_unix.c $^ $(LIBS) - -%.o: %.c - $(CC) $(CPPFLAGS) -c -o $@ $< - -# cleanup - -clean: - $(RM) *.o *~ *% $(TARGETS) .depend - -# automatic dependencies - -depend: dep -dep: - for i in $(OBJS:.o=.c) ; do $(CC) $(CPPFLAGS) -MM $$i ; done > .depend - -ifeq (.depend,$(wildcard .depend)) -include .depend -endif - -# eof - -# install target for anaconda -install: all - mkdir -p $(DESTDIR)/usr/sbin - install -m 755 gptsync $(DESTDIR)/usr/sbin/gptsync - install -m 755 showpart $(DESTDIR)/usr/sbin/showpart diff --git a/gptsync/Makefile.am b/gptsync/Makefile.am new file mode 100644 index 000000000..7f664325d --- /dev/null +++ b/gptsync/Makefile.am @@ -0,0 +1,35 @@ +# gptsync/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> + +COMMON_SRCS = lib.c os_unix.c +noinst_HEADERS = gptsync.h syslinux_mbr.h + +if IS_GPTSYNC_ARCH +sbin_PROGRAMS = gptsync showpart + +gptsync_CFLAGS = -DPROGNAME=gptsync +gptsync_SOURCES = gptsync.c $(COMMON_SRCS) + +showpart_CFLAGS = -DPROGNAME=showpart +showpart_SOURCES = showpart.c $(COMMON_SRCS) +endif + +EXTRA_DIST = README + +MAINTAINERCLEANFILES = Makefile.in |