mirror of
git://sourceware.org/git/lvm2.git
synced 2024-12-21 13:34:40 +03:00
Move main() into separate file.
This commit is contained in:
parent
e56ff0333d
commit
7fa2d1a092
@ -27,7 +27,7 @@ SOURCES=\
|
||||
lvcreate.c \
|
||||
lvdisplay.c \
|
||||
lvextend.c \
|
||||
lvm.c \
|
||||
lvmcmdline.c \
|
||||
lvmchange.c \
|
||||
lvmdiskscan.c \
|
||||
lvreduce.c \
|
||||
@ -77,8 +77,8 @@ ifeq ("@STATIC_LINK@", "no")
|
||||
LVMLIBS += -rdynamic
|
||||
endif
|
||||
|
||||
lvm: $(OBJECTS) $(top_srcdir)/lib/liblvm.a
|
||||
$(CC) -o lvm $(OBJECTS) $(LD_FLAGS) -L$(top_srcdir)/lib \
|
||||
lvm: $(OBJECTS) lvm.o $(top_srcdir)/lib/liblvm.a
|
||||
$(CC) -o lvm $(OBJECTS) lvm.o $(LD_FLAGS) -L$(top_srcdir)/lib \
|
||||
-L$(DESTDIR)/lib $(LVMLIBS) $(LIBS)
|
||||
|
||||
.commands: commands.h cmdnames.h Makefile
|
||||
|
1230
tools/lvm.c
1230
tools/lvm.c
File diff suppressed because it is too large
Load Diff
12
tools/lvm2cmdline.h
Normal file
12
tools/lvm2cmdline.h
Normal 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
1239
tools/lvmcmdline.c
Normal file
File diff suppressed because it is too large
Load Diff
Loading…
Reference in New Issue
Block a user