diff options
author | Jeremy Katz <katzj@redhat.com> | 2006-06-10 02:44:57 +0000 |
---|---|---|
committer | Jeremy Katz <katzj@redhat.com> | 2006-06-10 02:44:57 +0000 |
commit | 406f651b53ec93761f5ddf009d9acd32964aa481 (patch) | |
tree | 8d0e2460f21e1b35e80b8cd047b67d0f54eb9f7a /gptsync/Makefile | |
parent | 1eacd90831bf6175ffe6612ed2f276af11ee9cfc (diff) | |
download | anaconda-406f651b53ec93761f5ddf009d9acd32964aa481.tar.gz anaconda-406f651b53ec93761f5ddf009d9acd32964aa481.tar.xz anaconda-406f651b53ec93761f5ddf009d9acd32964aa481.zip |
supposed to be here
Diffstat (limited to 'gptsync/Makefile')
-rw-r--r-- | gptsync/Makefile | 47 |
1 files changed, 47 insertions, 0 deletions
diff --git a/gptsync/Makefile b/gptsync/Makefile new file mode 100644 index 000000000..8302933d3 --- /dev/null +++ b/gptsync/Makefile @@ -0,0 +1,47 @@ +# +# Makefile for gptsync on Unix platforms +# + +OBJS = gptsync.o os_unix.o + +TARGET = gptsync + +CPPFLAGS = -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 +CFLAGS = -Wall -Werror +LDFLAGS = +LIBS = + +# real making + +all: $(TARGET) + +$(TARGET): $(OBJS) + $(CC) $(LDFLAGS) -o $(TARGET) $(OBJS) $(LIBS) + +$(OBJS): %.o: %.c + $(CC) $(CPPFLAGS) $(CFLAGS) -c $< + +# cleanup + +clean: + $(RM) *.o *~ *% $(TARGET) + +distclean: clean + $(RM) .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 |