source: trunk/third/popt/Makefile.am @ 18470

Revision 18470, 1.9 KB checked in by ghudson, 21 years ago (diff)
The test programs won't build on Solaris, because popt doesn't realize it depends on gettext and iconv there, and because the test programs try to build static and we don't have a static libiconv. For now, just disable building the test programs; we may also have to deal with the library dependencies at some point.
Line 
1# Makefile for popt library.
2
3AUTOMAKE_OPTIONS = 1.4 foreign
4
5EXTRA_DIST = autogen.sh CHANGES $(man_MANS) popt.spec \
6        testit.sh test-poptrc \
7        po/*.in po/*.po po/popt.pot \
8        popt.ps
9
10SUBDIRS = intl po
11
12INCLUDES = -I. -I$(top_srcdir)
13
14noinst_HEADERS = findme.h poptint.h system.h
15
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)
26
27noinst_SCRIPTS = testit.sh
28
29TESTS_ENVIRONMENT = \
30test1="./test1"
31
32TESTS = testit.sh
33
34include_HEADERS = popt.h
35lib_LTLIBRARIES = libpopt.la
36libpopt_la_SOURCES = popt.c findme.c poptparse.c poptconfig.c popthelp.c
37
38man_MANS = popt.3
39
40#BUILT_SOURCES = popt.lcd
41
42popt.lcd: Makefile.am ${libpopt_la_SOURCES} ${include_HEADERS} ${noinst_HEADERS}
43        lclint -dump $@ ${libpopt_la_SOURCES}
44
45.PHONY: sources
46sources:
47        @echo $(libpopt_la_SOURCES:%=popt/%)
48
49.PHONY: lclint
50lclint:
51        lclint ${DEFS} ${INCLUDES} test1.c ${libpopt_la_SOURCES}
52
53CVSTAG = $(PACKAGE)-$(subst .,_,$(VERSION))
54
55.PHONY: archive
56archive:
57        @echo "This is $(PACKAGE)-$(VERSION)."
58        @sleep 5
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
69        @echo " "
70        @echo "The final archive is ./$(PACKAGE)-$(VERSION).tar.gz."
71
72.PHONY: doxygen
73doxygen: Doxyfile
74        rm -rf doxygen
75        mkdir -p doxygen
76        doxygen
Note: See TracBrowser for help on using the repository browser.