IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 7438


Ignore:
Timestamp:
Jun 8, 2006, 10:58:34 AM (20 years ago)
Author:
eugene
Message:

adjusted configure scripts to build libpsphot without psphot.c

Location:
trunk/psphot
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/psphot/configure.ac

    r7426 r7438  
    6565dnl ------------------------------------------------------------
    6666
     67AC_PATH_PROG([ERRORCODES], [psParseErrorCodes], [missing])
     68if test "$ERRORCODES" = "missing" ; then
     69  AC_MSG_ERROR([psParseErrorCodes is required])
     70fi
     71
    6772PKG_CHECK_MODULES(PSLIB, pslib >= 0.9.0)
    6873PKG_CHECK_MODULES(PSMODULE, psmodule >= 0.0.0)
  • trunk/psphot/src/Makefile.am

    r7385 r7438  
     1
    12lib_LTLIBRARIES = libpsphot.la
    23libpsphot_la_CPPFLAGS = $(PSLIB_CFLAGS) $(PSMODULE_CFLAGS) $(psphot_CFLAGS)
    3 libpsphot_la_LDFLAGS = $(PSMODULE_LIBS) $(PSLIB_LIBS)
    4 libpsphot_la_SOURCES = $(psphot_SOURCES)
     4# libpsphot_la_LDFLAGS = $(PSMODULE_LIBS) $(PSLIB_LIBS)
    55
    66bin_PROGRAMS = psphot
    77psphot_CPPFLAGS = $(PSLIB_CFLAGS) $(PSMODULE_CFLAGS) $(psphot_CFLAGS)
    88psphot_LDFLAGS = $(PSLIB_LIBS) $(PSMODULE_LIBS)
     9psphot_LDADD = libpsphot.la
    910
    10 PSLIB_DIR = `pslib-config --prefix`
     11psphot_SOURCES = \
     12        psphot.c               
    1113
    1214# psphot_CPPFLAGS = $(libpsphot_la_CPPFLAGS)
     
    1416# psphot_LDADD = libpsphot.la
    1517
    16 psphot_SOURCES =                \
    17         psphot.c                \
     18libpsphot_la_SOURCES = \
    1819        errorCodes.c            \
    1920        psphotModelGroupInit.c  \
     
    4849        psphotCleanup.c         
    4950
    50 noinst_HEADERS =                \
     51include_HEADERS = \
    5152        psphot.h               
    5253
    5354clean-local:
    5455        -rm -f TAGS
     56
    5557# Tags for emacs
    5658tags:
     
    6365
    6466psphotErrorCodes.h : errorCodes.dat psphotErrorCodes.h.in
    65         $(PSLIB_DIR)/bin/psParseErrorCodes --data=errorCodes.dat --outdir=. \
    66                                                 psphotErrorCodes.h
     67        $(ERRORCODES) --data=errorCodes.dat --outdir=. psphotErrorCodes.h
     68
    6769errorCodes.c : errorCodes.dat errorCodes.c.in psphotErrorCodes.h
    68         $(PSLIB_DIR)/bin/psParseErrorCodes --data=errorCodes.dat --outdir=. errorCodes.c
     70        $(ERRORCODES) --data=errorCodes.dat --outdir=. errorCodes.c
Note: See TracChangeset for help on using the changeset viewer.