head 1.4; access; symbols GETOPT_20051005:1.4; locks; strict; comment @# @; 1.4 date 2005.10.05.10.12.37; author rse; state Exp; branches; next 1.3; 1.3 date 2005.10.05.10.11.57; author rse; state Exp; branches; next 1.2; 1.2 date 2003.03.07.10.48.14; author rse; state Exp; branches; next 1.1; 1.1 date 2003.03.07.10.35.16; author rse; state Exp; branches; next ; desc @@ 1.4 log @remove generated file @ text @## ## Makefile for OSSP's GNU getopt source tree ## Copyright (c) 2003 Ralf S. Engelschall ## 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 @ 1.3 log @fresh up sources; add pkgconfig file; upgrade build env to latest GNU tools @ text @d63 1 a63 1 $(RM) getopt-config config.h config.log config.status Makefile @ 1.2 log @remove obsolete lib dir reference @ text @d49 2 @ 1.1 log @add an OSSP collection of GNU getopt sources @ text @d16 1 a16 1 CPPFLAGS = @@DEFS@@ -I. -I./lib @