IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 7504


Ignore:
Timestamp:
Jun 9, 2006, 6:23:49 PM (20 years ago)
Author:
eugene
Message:

config fixes to support pkg-config, moved errorCodes to psphotErrorCodes, updates to support psphot as library

Location:
trunk/psphot
Files:
3 added
2 deleted
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/psphot/Makefile.am

    r6140 r7504  
    33CLEANFILES = *.pyc *~ core core.*
    44
    5 EXTRA_DIST = autogen.sh
     5pkgconfigdir = $(libdir)/pkgconfig
     6pkgconfig_DATA= psphot.pc
     7
     8EXTRA_DIST = \
     9        psphot.pc.in \
     10        autogen.sh
  • trunk/psphot/configure.ac

    r7440 r7504  
    4242
    4343dnl Set CFLAGS for build
    44 CFLAGS="${CFLAGS}"
    45 psphot_CFLAGS="-Wall -Werror -std=c99"
    46 AC_SUBST([psphot_CFLAGS])
     44CFLAGS="${CFLAGS} -Wall -Werror -std=c99"
     45
     46AC_SUBST([PSPHOT_CFLAGS])
     47AC_SUBST([PSPHOT_LIBS])
    4748
    4849AC_CONFIG_FILES([
    4950  Makefile
    5051  src/Makefile
     52  psphot.pc
    5153])
    5254
  • trunk/psphot/src/Makefile.am

    r7438 r7504  
    11
    22lib_LTLIBRARIES = libpsphot.la
    3 libpsphot_la_CPPFLAGS = $(PSLIB_CFLAGS) $(PSMODULE_CFLAGS) $(psphot_CFLAGS)
     3libpsphot_la_CPPFLAGS = $(PSLIB_CFLAGS) $(PSMODULE_CFLAGS) $(PSPHOT_CFLAGS)
    44# libpsphot_la_LDFLAGS = $(PSMODULE_LIBS) $(PSLIB_LIBS)
    55
    66bin_PROGRAMS = psphot
    7 psphot_CPPFLAGS = $(PSLIB_CFLAGS) $(PSMODULE_CFLAGS) $(psphot_CFLAGS)
     7psphot_CPPFLAGS = $(PSLIB_CFLAGS) $(PSMODULE_CFLAGS) $(PSPHOT_CFLAGS)
    88psphot_LDFLAGS = $(PSLIB_LIBS) $(PSMODULE_LIBS)
    99psphot_LDADD = libpsphot.la
     
    1717
    1818libpsphot_la_SOURCES = \
    19         errorCodes.c            \
     19        psphotErrorCodes.c      \
    2020        psphotModelGroupInit.c  \
    2121        psphotArguments.c       \
     
    5050
    5151include_HEADERS = \
    52         psphot.h               
     52        psphot.h \
     53        psphotErrorCodes.h
    5354
    5455clean-local:
     
    6162# Error codes.
    6263#
    63 BUILT_SOURCES = psphotErrorCodes.h errorCodes.c
    64 CLEANFILES = psphotErrorCodes.h errorCodes.c
     64BUILT_SOURCES = psphotErrorCodes.h psphotErrorCodes.c
     65CLEANFILES = psphotErrorCodes.h psphotErrorCodes.c
    6566
    66 psphotErrorCodes.h : errorCodes.dat psphotErrorCodes.h.in
    67         $(ERRORCODES) --data=errorCodes.dat --outdir=. psphotErrorCodes.h
     67psphotErrorCodes.h : psphotErrorCodes.dat psphotErrorCodes.h.in
     68        $(ERRORCODES) --data=psphotErrorCodes.dat --outdir=. psphotErrorCodes.h
    6869
    69 errorCodes.c : errorCodes.dat errorCodes.c.in psphotErrorCodes.h
    70         $(ERRORCODES) --data=errorCodes.dat --outdir=. errorCodes.c
     70psphotErrorCodes.c : psphotErrorCodes.dat psphotErrorCodes.c.in psphotErrorCodes.h
     71        $(ERRORCODES) --data=psphotErrorCodes.dat --outdir=. psphotErrorCodes.c
Note: See TracChangeset for help on using the changeset viewer.