1 # Makefile for popt library.
3 AUTOMAKE_OPTIONS = 1.4 foreign
5 EXTRA_DIST = autogen.sh CHANGES $(man_MANS) popt.spec \
6 testit.sh test-poptrc \
7 po/*.in po/*.po po/popt.pot \
12 INCLUDES = -I. -I$(top_srcdir)
14 noinst_HEADERS = findme.h poptint.h system.h
16 noinst_PROGRAMS = test1 test2 test3
17 test1_SOURCES = test1.c
18 test1_LDFLAGS = -all-static
19 test1_LDADD = $(lib_LTLIBRARIES)
20 test2_SOURCES = test2.c
21 test2_LDFLAGS = -all-static
22 test2_LDADD = $(lib_LTLIBRARIES)
23 test3_SOURCES = test3.c
24 test3_LDFLAGS = -all-static
25 test3_LDADD = $(lib_LTLIBRARIES)
27 noinst_SCRIPTS = testit.sh
34 include_HEADERS = popt.h
35 lib_LTLIBRARIES = libpopt.la
36 libpopt_la_SOURCES = popt.c findme.c poptparse.c poptconfig.c popthelp.c
40 #BUILT_SOURCES = popt.lcd
42 popt.lcd: Makefile.am ${libpopt_la_SOURCES} ${include_HEADERS} ${noinst_HEADERS}
43 lclint -dump $@ ${libpopt_la_SOURCES}
47 @echo $(libpopt_la_SOURCES:%=popt/%)
51 lclint ${DEFS} ${INCLUDES} test1.c ${libpopt_la_SOURCES}
53 CVSTAG = $(PACKAGE)-$(subst .,_,$(VERSION))
57 @echo "This is $(PACKAGE)-$(VERSION)."
59 @cvs -Q tag -F $(CVSTAG) .
60 @rm -rf /tmp/$(PACKAGE)-$(VERSION) /tmp/$(PACKAGE)
61 @cd /tmp; cvs -Q -d $(CVSROOT) export -r$(CVSTAG) $(PACKAGE) || :
62 @mv /tmp/$(PACKAGE) /tmp/$(PACKAGE)-$(VERSION)
63 @cd /tmp/$(PACKAGE)-$(VERSION); ./autogen.sh ; make depend; make distclean
64 @cd /tmp/$(PACKAGE)-$(VERSION); ./autogen.sh --noconfigure
65 @cd /tmp; tar czSpf $(PACKAGE)-$(VERSION).tar.gz $(PACKAGE)-$(VERSION)
66 @rm -rf /tmp/$(PACKAGE)-$(VERSION)
67 @cp /tmp/$(PACKAGE)-$(VERSION).tar.gz .
68 @rm -f /tmp/$(PACKAGE)-$(VERSION).tar.gz
70 @echo "The final archive is ./$(PACKAGE)-$(VERSION).tar.gz."