1
0
mirror of git://sourceware.org/git/lvm2.git synced 2025-01-03 05:18:29 +03:00

Move main() into separate file.

This commit is contained in:
Alasdair Kergon 2004-03-26 12:00:24 +00:00
parent e56ff0333d
commit 7fa2d1a092
4 changed files with 1256 additions and 1231 deletions

View File

@ -27,7 +27,7 @@ SOURCES=\
lvcreate.c \ lvcreate.c \
lvdisplay.c \ lvdisplay.c \
lvextend.c \ lvextend.c \
lvm.c \ lvmcmdline.c \
lvmchange.c \ lvmchange.c \
lvmdiskscan.c \ lvmdiskscan.c \
lvreduce.c \ lvreduce.c \
@ -77,8 +77,8 @@ ifeq ("@STATIC_LINK@", "no")
LVMLIBS += -rdynamic LVMLIBS += -rdynamic
endif endif
lvm: $(OBJECTS) $(top_srcdir)/lib/liblvm.a lvm: $(OBJECTS) lvm.o $(top_srcdir)/lib/liblvm.a
$(CC) -o lvm $(OBJECTS) $(LD_FLAGS) -L$(top_srcdir)/lib \ $(CC) -o lvm $(OBJECTS) lvm.o $(LD_FLAGS) -L$(top_srcdir)/lib \
-L$(DESTDIR)/lib $(LVMLIBS) $(LIBS) -L$(DESTDIR)/lib $(LVMLIBS) $(LIBS)
.commands: commands.h cmdnames.h Makefile .commands: commands.h cmdnames.h Makefile

File diff suppressed because it is too large Load Diff

12
tools/lvm2cmdline.h Normal file
View File

@ -0,0 +1,12 @@
/*
* Copyright (C) 2003 Sistina Software (UK) Limited.
*
* This file is released under the GPL.
*/
#ifndef _LVM_CMDLINE_H
#define _LVM_CMDLINE_H
int lvm2_main(int argc, char **argv);
#endif

1239
tools/lvmcmdline.c Normal file

File diff suppressed because it is too large Load Diff