Changeset 2171


Ignore:
Timestamp:
2001-03-13T18:02:15+13:00 (23 years ago)
Author:
jrm21
Message:

various - changed make to $(MAKE), tidied up conditionals (eg for USE_FASTCGI).

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/gsdl/src/recpt/Makefile.in

    r2166 r2171  
    3232endif
    3333
     34USE_CORBA = @USE_CORBA@
     35ifeq ($(USE_CORBA), 1)
     36CORBA_CFLAGS=-DUSE_CORBA
     37else
     38CORBA_CFLAGS=
     39endif
     40
     41
     42
    3443AR = ar
    3544CC = @CC@
     
    3746#CCFLAGS = @CFLAGS@ -Wall -Wunused -pedantic -W -Woverloaded-virtual
    3847
    39 CCFLAGS = $(Z_CFLAGS) @CFLAGS@
     48CCFLAGS = $(Z_CFLAGS) $(CORBA_CFLAGS) @CFLAGS@
    4049
    4150# YAZ kit for z39.50
     
    5059else
    5160DEFS = -DNZDL -DQUIET -DSHORT_SUFFIX -DPARADOCNUM -DUSE_FASTCGI @DEFS@
    52 
    5361INCLUDES = -I../../lib -I. -I../colservr -I../../packages/mg \
    5462       -I../../packages/mg/lib -I../../packages/mg/src/text \
     
    6977MINCLUDES = -I. -I../../lib -I../colservr $(MICO_INC)
    7078
    71 USE_CORBA = @USE_CORBA@
    72 
    7379RANLIB = @RANLIB@
    7480LDFLAGS = @LDFLAGS@
     
    7682
    7783GSDLOS = @gsdlos@
    78 
    7984
    8085COMPILE = $(CC) -c $(CCFLAGS) $(DEFS) $(INCLUDES)
     
    214219# called by librarymain.cpp.
    215220$(YAZDIR)/client/yaz_zclient.o: $(YAZDIR)/lib/libyaz.a
    216     cd $(YAZDIR)/client &&  make yaz_zclient.o
     221    cd $(YAZDIR)/client &&  $(MAKE) yaz_zclient.o
    217222
    218223# this should be done by the top level makefile...
    219224$(YAZDIR)/lib/libyaz.a:
    220     cd $(YAZDIR) && make all
     225    cd $(YAZDIR) && $(MAKE) all
    221226
    222227# put a separate rule here, as it speeds up compilation of other objects
     
    252257
    253258# # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # #
    254 
    255 
    256 ifneq ($(USE_FASTCGI), 1)
     259ifeq ($(USE_FASTCGI), 1)
     260    FASTCGI_OBJS = ../../packages/fcgi/libfcgi/libfcgi.a
     261else
     262    FASTCGI_OBJS =
     263endif
     264
    257265RECPT_OBJS = $(COMMONOBJECTS) $(RECPTOBJECTS) \
    258266    ../../lib/gsdllib.a  \
    259267    ../../packages/mg/src/text/libtextin.a \
    260268    ../../packages/mg/lib/libmg.a \
     269    $(FASTCGI_OBJS) \
    261270    ../mgpp/text/libtextin.a \
    262271    ../mgpp/lib/libmg.a
    263 else
    264 RECPT_OBJS = $(COMMONOBJECTS) $(RECPTOBJECTS) \
    265     ../../lib/gsdllib.a  \
    266     ../../packages/mg/src/text/libtextin.a \
    267     ../../packages/mg/lib/libmg.a \
    268     ../../packages/fcgi/libfcgi/libfcgi.a \
    269     ../mgpp/text/libtextin.a \
    270     ../mgpp/lib/libmg.a
    271 endif
    272272
    273273recpt: $(RECPT_OBJS)
     
    282282
    283283
    284 ifneq ($(USE_FASTCGI), 1)
    285284LIBRARY_OBJS = $(COMMONOBJECTS) $(LIBRARYOBJECTS) $(COLSERVROBJECTS) \
    286285    ../../lib/gsdllib.a  \
    287286    ../../packages/mg/src/text/libtextin.a \
    288287    ../../packages/mg/lib/libmg.a \
    289     $(Z_LIBYAZ_A) \
     288    $(FASTCGI_OBJS) $(Z_LIBYAZ_A) \
    290289    ../mgpp/text/libtextin.a \
    291     ../mgpp/lib/libmg.a
    292 else
    293 LIBRARY_OBJS = $(COMMONOBJECTS) $(LIBRARYOBJECTS) $(COLSERVROBJECTS) \
    294     ../../lib/gsdllib.a  \
    295     ../../packages/mg/src/text/libtextin.a \
    296     ../../packages/mg/lib/libmg.a \
    297     ../../packages/fcgi/libfcgi/libfcgi.a \
    298     ../mgpp/text/libtextin.a \
    299     ../mgpp/lib/libmg.a \
    300     $(Z_LIBYAZ_A)
    301 endif
     290    ../mgpp/lib/libmg.a
    302291
    303292library: $(LIBRARY_OBJS)
     
    309298                   ../../lib/corbatext_t.o ../../lib/corbaconv_text_t.o \
    310299           ../../lib/corbaiface.o ../../lib/corbaiface_skel.o
    311 ifneq ($(USE_FASTCGI), 1)
     300
    312301RLIBRARY_OBJS = $(COMMONOBJECTS) $(RECPTLIB_OBJECTS) $(COLSERVROBJECTS) \
    313302    ../../lib/gsdllib.a  \
    314303    ../../packages/mg/src/text/libtextin.a \
    315304    ../../packages/mg/lib/libmg.a \
     305    $(FASTCGI_OBJS) $(Z_LIBOBJS) $(Z_LIBYAZ_A) \
    316306    ../mgpp/text/libtextin.a \
    317307    ../mgpp/lib/libmg.a
    318 else
    319 RLIBRARY_OBJS = $(COMMONOBJECTS) $(RECPTLIB_OBJECTS) $(COLSERVROBJECTS) \
    320     ../../lib/gsdllib.a  \
    321     ../../packages/mg/src/text/libtextin.a \
    322     ../../packages/mg/lib/libmg.a \
    323     ../../packages/fcgi/libfcgi/libfcgi.a \
    324     ../mgpp/text/libtextin.a \
    325     ../mgpp/lib/libmg.a
    326 endif
     308
    327309RECPTLIB_OBJS = $(RLIBRARY_OBJS) ../colservr/corbaServer.o
    328310
    329311corbaserver: $(RECPTLIB_OBJS)
    330     echo -e building corbaserver
     312    @echo -e building corbaserver
    331313    $(MLINK) $(RECPTLIB_OBJS) $(MLIBS)
    332     strip --strip-all --discard-all corbaserver
    333 
     314# non GNU strips might not like these options - check autoconf?
     315#   strip --strip-all --discard-all corbaserver
     316    strip corbaserver
    334317# # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # #
    335318
    336319CORBARECPT_OBJECTS = nullproto.o corbaproto.o corbaclient.o
    337 ifneq ($(USE_FASTCGI), 1)
     320
    338321CORBARECPT_OBJS = $(COMMONOBJECTS) $(CORBARECPT_OBJECTS) $(COLSERVROBJECTS) \
    339322    ../../lib/corbaiface.o \
     
    344327    ../../packages/mg/src/text/libtextin.a \
    345328    ../../packages/mg/lib/libmg.a \
     329    $(FASTCGI_OBJS) \
    346330    ../mgpp/text/libtextin.a \
    347331    ../mgpp/lib/libmg.a
    348 else
    349 CORBARECPT_OBJS = $(COMMONOBJECTS) $(CORBARECPT_OBJECTS) $(COLSERVROBJECTS) \
    350     ../../lib/corbaiface.o \
    351     ../../lib/corbaiface_skel.o\
    352     ../../lib/corbaconv_text_t.o \
    353     ../../lib/corbatext_t.o \
    354     ../../lib/gsdllib.a  \
    355     ../../packages/mg/src/text/libtextin.a \
    356     ../../packages/mg/lib/libmg.a \
    357     ../../packages/fcgi/libfcgi/libfcgi.a \
    358     ../mgpp/text/libtextin.a \
    359     ../mgpp/lib/libmg.a
    360 endif
     332
    361333
    362334corbarecptldd: $(CORBARECPT_OBJS)
    363     echo -e building corbarecptldd:
     335    @echo -e building corbarecptldd:
    364336    $(MLINK)  $(CORBARECPT_OBJS)  $(MLIBS)
    365337
Note: See TracChangeset for help on using the changeset viewer.