ossp-pkg/getopt/Makefile.in
##
## Makefile for OSSP's GNU getopt source tree
## Copyright (c) 2003 Ralf S. Engelschall <rse@engelschall.com>
##
DESTDIR =
prefix = @prefix@
exec_prefix = @exec_prefix@
bindir = @bindir@
libdir = @libdir@
includedir = @includedir@
mandir = @mandir@
CC = @CC@
CFLAGS = @CFLAGS@
CPPFLAGS = @DEFS@ -I.
LDFLAGS =
LIBS =
AR = @AR@
RANLIB = @RANLIB@
RM = rm -f
SHTOOL = ./shtool
all: libgetopt.a getopt
libgetopt.a: getopt.o getopt1.o
$(RM) libgetopt.a
$(AR) cq libgetopt.a getopt.o getopt1.o
$(RANLIB) libgetopt.a
getopt1.o: getopt1.c
$(CC) $(CFLAGS) $(CPPFLAGS) -o getopt1.o -c getopt1.c
getopt.o: getopt.c
$(CC) $(CFLAGS) $(CPPFLAGS) -o getopt.o -c getopt.c
getopt: getopt_main.o libgetopt.a
$(CC) $(CFLAGS) $(LDFLAGS) -o getopt getopt_main.o libgetopt.a
getopt_main.o: getopt_main.c
$(CC) $(CFLAGS) $(CPPFLAGS) -o getopt_main.o -c getopt_main.c
install:
$(SHTOOL) mkdir -f -p -m 755 $(DESTDIR)$(bindir)
$(SHTOOL) install -c -s -m 755 getopt $(DESTDIR)$(bindir)/
$(SHTOOL) install -c -m 755 getopt-config $(DESTDIR)$(bindir)/
$(SHTOOL) mkdir -f -p -m 755 $(DESTDIR)$(libdir)
$(SHTOOL) install -c -m 644 libgetopt.a $(DESTDIR)$(libdir)/
$(SHTOOL) mkdir -f -p -m 755 $(DESTDIR)$(libdir)/pkgconfig
$(SHTOOL) install -c -m 644 getopt.pc $(DESTDIR)$(libdir)/pkgconfig/
$(SHTOOL) mkdir -f -p -m 755 $(DESTDIR)$(includedir)
$(SHTOOL) install -c -m 644 getopt.h $(DESTDIR)$(includedir)/
$(SHTOOL) mkdir -f -p -m 755 $(DESTDIR)$(mandir)/man1
$(SHTOOL) install -c -m 644 getopt.1 $(DESTDIR)$(mandir)/man1/
$(SHTOOL) mkdir -f -p -m 755 $(DESTDIR)$(mandir)/man3
$(SHTOOL) install -c -m 644 getopt.3 $(DESTDIR)$(mandir)/man3/
clean:
$(RM) getopt.o getopt1.o libgetopt.a
$(RM) getopt_main.o getopt
distclean: clean
$(RM) getopt-config getopt.pc config.h config.log config.status Makefile
realclean: distclean
$(RM) shtool configure config.h.in