2 # /**-------------------------------------------------------------------**
4 # **-------------------------------------------------------------------**
6 # **-------------------------------------------------------------------**
7 # ** First version: july 28th 2001 **
8 # **-------------------------------------------------------------------**/
10 # Makefile.am (or Makefile if generated) of PIP/PipLib. Makefile.am is not a
11 # makefile, you must run the 'configure' shellscript to generate the Makefile
12 # thanks to this file.
14 SUBDIRS = . example doc test
16 ACLOCAL_AMFLAGS = -I m4
19 EXTRA_PROGRAMS = pip32 pip64 pipMP
20 lib_LTLIBRARIES = @piplibs@
21 EXTRA_LTLIBRARIES = libpiplib32.la libpiplib64.la libpiplibMP.la
35 pkginclude_HEADERS = \
36 include/piplib/piplib.h \
37 include/piplib/piplib32.h \
38 include/piplib/piplib64.h \
39 include/piplib/piplibMP.h
41 libpiplib32_la_SOURCES = $(LIBRARY_FILES)
42 libpiplib32_la_CPPFLAGS = @DFLAGS32@ -I$(srcdir)/include
43 libpiplib32_la_LDFLAGS = -rpath $(libdir) -version-info @versioninfo@
44 libpiplib64_la_SOURCES = $(LIBRARY_FILES)
45 libpiplib64_la_CPPFLAGS = @DFLAGS64@ -I$(srcdir)/include
46 libpiplib64_la_LDFLAGS = -rpath $(libdir) -version-info @versioninfo@
47 libpiplibMP_la_SOURCES = $(LIBRARY_FILES)
48 libpiplibMP_la_CPPFLAGS = @MP_DFLAGS@ -I$(srcdir)/include
49 libpiplibMP_la_LDFLAGS = @EXTRA_LIBS@ -rpath $(libdir) -version-info @versioninfo@
51 pip32_SOURCES = source/maind.c
52 pip32_CPPFLAGS = @DFLAGS32@ -I$(srcdir)/include
53 pip32_LDADD = libpiplib32.la
54 pip64_SOURCES = source/maind.c
55 pip64_CPPFLAGS = @DFLAGS64@ -I$(srcdir)/include
56 pip64_LDADD = libpiplib64.la
57 pipMP_SOURCES = source/maind.c
58 pipMP_CPPFLAGS = @MP_DFLAGS@ -I$(srcdir)/include
59 pipMP_LDADD = libpiplibMP.la @EXTRA_LIBS@
61 version.h: @GIT_INDEX@
62 echo '#define PIPLIB_HEAD "'`$(top_builddir)/genversion.sh`'"' > $@
68 (cd doc; make piplib.pdf) && cp doc/piplib.pdf $(distdir)/doc/
69 $(top_builddir)/genversion.sh > $(distdir)/PIPLIB_HEAD
72 @for pip in @pips@; do \
73 (cd test; $(MAKE) test PIP=$$pip); \
75 @for example in @examples@; do \
76 (cd example; $(MAKE) test EXAMPLE=$$example); \
80 @echo " /*-----------------------------------------------*"
81 @echo " * PIP/PipLib *"
82 @echo " *-----------------------------------------------*/"