Skip to content
  • Steven Murray's avatar
    Unfortunately I have no choice but to put back the original Makefile that I · 7b5bdb58
    Steven Murray authored
    made for the unit tests.  I have learnt a lot, so this has not been a waist of
    time.  I tried to create an Imakefile that simply stated that the
    castorunittest binary of the test/unittests directory depends on all the object
    files it needs.  The addition of the Imakefile worked in the sense that I could
    create a castorunittest binary, however there was a serious side affect.  I
    caused several object files to have two build rules with different C/C++ macro
    definitions!  As an example the following two compilation rules were generated
    in the complete CASTOR Makefile (all includes followed).  Both rules are for
    the same object file, namely sendscsicmd.o.  The first compilation rule has
    -DTAPE set whereas the second does not.
    
    [itdssbuild01] /home/murrayc3/svn_imake/trunk > grep sendscsicmd.o make_commands.txt | grep \\-c
    cc -fPIC -D_LARGEFILE64_SOURCE -Wall -Wextra -Werror -Wno-unused-parameter -I. -I./h -O0 -g -m64 -fPIC -DUSE_XFSPREALLOC -m64 -fPIC -m64 -fPIC -pthread -I. -I./h -I/usr/include/oracle/11.2.0.3.0/client -DLCGDM_MAPFILE=\"IdMapFile\" -I/usr/include/oracle/11.2.0.3.0/client -I/usr/include/oracle/11.2.0.3.0/client -I/usr/include/oracle/11.2.0.3.0/client -I /usr//include -DSACCT -I /usr/include -I/usr/include/oracle/11.2.0.3.0/client -I/usr/include/python2.4  -DBIN=\"/usr/bin\" -I/usr/lib64/globus/include -I/usr/include/globus -I/usr/lib64/globus/include -I/usr/include/globus -I/usr/lib64/globus/include -I/usr/include/globus -I/usr//include/xrootd -D_LARGEFILE_SOURCE -D_REENTRANT -I/usr//include/xrootd -I/usr//include/xrootd/private  -c -o tape/sendscsicmd.o -DTAPE tape/sendscsicmd.c
    cc -fPIC -D_LARGEFILE64_SOURCE -Wall -Wextra -Werror -Wno-unused-parameter -I. -I./h -O0 -g -m64 -fPIC -DUSE_XFSPREALLOC -m64 -fPIC -m64 -fPIC -pthread -I. -I./h -I/usr/include/oracle/11.2.0.3.0/client -DLCGDM_MAPFILE=\"IdMapFile\" -I/usr/include/oracle/11.2.0.3.0/client -I/usr/include/oracle/11.2.0.3.0/client -I/usr/include/oracle/11.2.0.3.0/client -I /usr//include -DSACCT -I /usr/include -I/usr/include/oracle/11.2.0.3.0/client -I/usr/include/python2.4  -DBIN=\"/usr/bin\" -I/usr/lib64/globus/include -I/usr/include/globus -I/usr/lib64/globus/include -I/usr/include/globus -I/usr/lib64/globus/include -I/usr/include/globus -I/usr//include/xrootd -D_LARGEFILE_SOURCE -D_REENTRANT -I/usr//include/xrootd -I/usr//include/xrootd/private  -c -o test/unittest/../../tape/sendscsicmd.o test/unittest/../../tape/sendscsicmd.c
    [itdssbuild01] /home/murrayc3/svn_imake/trunk >
    7b5bdb58