]> git.ipfire.org Git - thirdparty/e2fsprogs.git/blob - ext2ed/Makefile
Checked in changes from ext2ed version 0.2.
[thirdparty/e2fsprogs.git] / ext2ed / Makefile
1 # /gadi/project/Makefile
2 #
3 # Makefile for the extended-2 filesystem editor.
4 #
5 # First created : April 8 1995
6 #
7 # Copyright (C) 1995 Gadi Oxman
8
9 # ------------------------------------------------------------------------
10 # EXT2ED, ncurses and readline
11 # ------------------------------------------------------------------------
12 #
13 # EXT2ED requires the ncurses and readline libraries.
14 #
15 # Please define OLD_NCURSES below if you are using an old version of ncurses.
16 # I don't know the exact threshold, but from my experience this flag is needed
17 # for version 1.8.5 and not needed for 1.9.2c and up. In any case, you will
18 # notice immediately that this flag is wrong - The main window will be totally
19 # corrupted.
20
21 # FLAGS = -DOLD_NCURSES
22
23 # Define the directories below to insure that the compiler will find the
24 # required ncurses and readline include files / libraries. Be sure that you
25 # don't mix two two versions of ncurses.
26
27 NCURSES_INCLUDE = -I/usr/include/ncurses
28 # NCURSES_LIB = -L/usr//lib
29 READLINE_INCLUDE = -I/usr/include/readline
30 # READLINE_LIB = -L/usr/lib
31
32 # ------------------------------------------------------------------------
33 # Install Directories
34 # ------------------------------------------------------------------------
35
36 # The executable will go into BIN_DIR.
37 # The configuration file, log file, etc will go into VAR_DIR.
38 # The manual page will go into MAN_DIR.
39 # The EXT2ED documentation will go into DOC_DIR.
40
41 BIN_DIR = /usr/bin
42 VAR_DIR = /var/lib/ext2ed
43 MAN_DIR = /usr/man/man8
44 DOC_DIR = /usr/doc/ext2ed
45
46 # ------------------------------------------------------------------------
47
48 CC = gcc
49 CCFLAGS = -O $(FLAGS) -DVAR_DIR=\"$(VAR_DIR)\" $(NCURSES_INCLUDE) $(READLINE_INCLUDE)
50 LINKFLAGS = $(NCURSES_LIB) $(READLINE_LIB)
51 LIBS = -lreadline -lncurses
52
53 .c.o:
54 $(CC) $(CCFLAGS) $(INCLUDE_DIR) -c $<
55
56 OBJS= main.o init.o general_com.o inode_com.o dir_com.o super_com.o \
57 disk.o win.o group_com.o file_com.o blockbitmap_com.o ext2_com.o \
58 inodebitmap_com.o
59
60 ext2ed: $(OBJS)
61 $(CC) $(OBJS) $(LINKFLAGS) $(LIBS) -o ext2ed
62
63 clean:
64 rm ext2ed *.o
65
66 install: ext2ed
67 install -d $(VAR_DIR)
68 install -m 755 ext2ed $(BIN_DIR)
69 install -m 644 ext2.descriptors $(VAR_DIR)
70 install -m 644 ext2ed.conf $(VAR_DIR)
71 install -m 644 doc/ext2ed.8 $(MAN_DIR)
72
73 install.doc:
74 install -m 644 doc/user-guide-0.1.sgml $(DOC_DIR)
75 install -m 644 doc/user-guide-0.1.ps $(DOC_DIR)
76 install -m 644 doc/Ext2fs-overview-0.1.sgml $(DOC_DIR)
77 install -m 644 doc/Ext2fs-overview-0.1.ps $(DOC_DIR)
78 install -m 644 doc/ext2ed-design-0.1.sgml $(DOC_DIR)
79 install -m 644 doc/ext2ed-design-0.1.ps $(DOC_DIR)