head	1.5;
access;
symbols
	r2-4-101:1.4
	r2-4-100:1.4
	r2-4-99:1.4
	r2-4-tree:1.4.0.6
	r-2-4-tree:1.4.0.4
	r5-0-4:1.4
	r2-4-12:1.4
	r2-3-12:1.4.2.1
	r2-3-11-patches:1.4.0.2
	r2-4-11:1.4
	r2-4-10:1.4
	r2-4-9:1.3
	r2-4-8:1.3
	r1-0:1.3;
locks; strict;
comment	@# @;


1.5
date	98.02.11.08.59.35;	author ewt;	state dead;
branches;
next	1.4;

1.4
date	97.11.02.16.12.55;	author ewt;	state Exp;
branches
	1.4.2.1;
next	1.3;

1.3
date	97.09.18.16.46.08;	author ewt;	state Exp;
branches;
next	1.2;

1.2
date	97.09.18.16.39.46;	author ewt;	state Exp;
branches;
next	1.1;

1.1
date	97.09.18.01.54.30;	author ewt;	state Exp;
branches;
next	;

1.4.2.1
date	98.01.07.16.47.17;	author ewt;	state Exp;
branches;
next	;


desc
@@


1.5
log
@1) added changes which let RPM build in a directory other then its source
   directory
2) moved popt to autoconf
@
text
@LIBOBJECTS = 	popt.o

DEFCFLAGS=-O2 -Wall

SOURCES =$(subst .o,.c,$(LIBOBJECTS))
LIBPOPT = libpopt.a
LIBS=/usr/lib
INCLUDE=/usr/include

ifeq (../Makefile.inc,$(wildcard ../Makefile.inc))
include ../Makefile.inc
endif

# -----------------------------------------------------------------------

ifeq ($(CFLAGS),)
CFLAGS=$(DEFCFLAGS)
endif

ifeq ($(RANLIB),)
RANLIB=ranlib
endif

ifeq (.depend,$(wildcard .depend))
TARGET=allprogs
else
TARGET=depend allprogs
endif

$(LIBPOPT): $(LIBPOPT)($(LIBOBJECTS))
	$(RANLIB) $@@

distclean: clean

clean:
	rm -f *.a *.o *~ $(PROGS) test.out tagtable.c

squeaky: clean
	rm -f .depend

depend:
	$(CPP) $(CFLAGS) -M $(SOURCES) > .depend

install:
	mkdir -p $(PREFIX)/$(INCLUDE)
	mkdir -p $(PREFIX)/$(LIBS)
	install -m 644 popt.h $(PREFIX)/$(INCLUDE)/popt.h
	install -m 644 $(LIBPOPT) $(PREFIX)/$(LIBS)/$(LIBPOPT)

ifeq (.depend,$(wildcard .depend))
include .depend
endif
@


1.4
log
@implmented POPT_ARG_INT and POPT_ARG_LONG
@
text
@@


1.4.2.1
log
@added makefile to 2.3.11 branch
@
text
@@


1.3
log
@1) allowed installation based on a PREFIX
2) added popt.spec
@
text
@d3 1
a3 1
DEFCFLAGS=-O2
@


1.2
log
@1) use Makefile.inc if it's present
2) added install rule
@
text
@d45 4
a48 2
	install -m 644 popt.h $(INCLUDE)/popt.h
	install -m 644 $(LIBPOPT) $(LIBS)/$(LIBPOPT)
@


1.1
log
@added kickstart support for

	1) keymap
	2) swap
	3) lilo
	4) postinstall networking (preliminary)
	5) dependency resolution
@
text
@d7 6
a12 3
INSTALL= @@INSTALL@@
INSTALL_PROGRAM= @@INSTALL_PROGRAM@@
INSTALL_DATA= @@INSTALL_DATA@@
d43 4
@
