1 # /gadi/project/Makefile
3 # Makefile for the extended-2 filesystem editor.
5 # First created : April 8 1995
7 # Copyright (C) 1995 Gadi Oxman
9 # ------------------------------------------------------------------------
10 # EXT2ED, ncurses and readline
11 # ------------------------------------------------------------------------
13 # EXT2ED requires the ncurses and readline libraries.
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
21 # FLAGS = -DOLD_NCURSES
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.
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
32 # ------------------------------------------------------------------------
34 # ------------------------------------------------------------------------
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.
42 VAR_DIR
= /var
/lib
/ext2ed
43 MAN_DIR
= /usr
/man
/man8
44 DOC_DIR
= /usr
/doc
/ext2ed
46 # ------------------------------------------------------------------------
49 CCFLAGS
= -O
$(FLAGS
) -DVAR_DIR
=\"$(VAR_DIR
)\" $(NCURSES_INCLUDE
) $(READLINE_INCLUDE
)
50 LINKFLAGS
= $(NCURSES_LIB
) $(READLINE_LIB
)
51 LIBS
= -lreadline
-lncurses
54 $(CC
) $(CCFLAGS
) $(INCLUDE_DIR
) -c
$<
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 \
61 $(CC
) $(OBJS
) $(LINKFLAGS
) $(LIBS
) -o ext2ed
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
)
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
)