]>
git.ipfire.org Git - thirdparty/util-linux.git/blob - getopt-1.0.3b/Makefile
3 include ..
/make_include
6 GETOPTDIR
=$(USRLIBDIR
)/getopt
8 # Define this to 0 to use the getopt(3) routines in this package.
17 CPPFLAGS
=-DLIBCGETOPT
=$(LIBCGETOPT
)
18 ifeq ($(LIBCGETOPT
),0)
22 # -Wcast-align causes problems with the identifier stderr on alpha's
24 # -Wbad-function-cast and -Wmissing-declarations are unknown for gcc 2.5.8.
26 -W
-Wshadow
-Wpointer-arith
-Wcast-qual \
27 -Wwrite-strings
-Wstrict-prototypes
-Wmissing-prototypes \
28 -Wnested-externs
-Winline
29 CFLAGS
=$(WARNINGS
) $(OPT
)
32 ifeq ($(LIBCGETOPT
),0)
33 SOURCES
+=gnu
/getopt.c gnu
/getopt1.c
36 OBJECTS
=$(SOURCES
:.c
=.o
)
40 .PHONY
: all clean realclean
44 -$(RM
) $(OBJECTS
) $(BINARIES
)
47 $(CC
) $(LDFLAGS
) $< -o
$@
50 $(INSTALLDIR
) $(USRBINDIR
) $(MAN1DIR
) $(GETOPTDIR
)
51 $(INSTALLBIN
) getopt
$(USRBINDIR
)
52 $(INSTALLMAN
) getopt
.1 $(MAN1DIR
)
53 $(INSTALLBIN
) parse.bash parse.tcsh
test.bash
test.tcsh
$(GETOPTDIR
)