Changeset 18 for trunk/Makefile.in


Ignore:
Timestamp:
Jan 28, 2006, 9:07:52 PM (19 years ago)
Author:
rainer
Message:

Optimized version of tiger algorithm, and basic ingredients for unit testing (part 2)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/Makefile.in

    r1 r18  
    5757XOR_CODE = @xor_code@
    5858SH_LKM   = @sh_lkm@
     59TIGER_SRC = @tiger_src@
    5960
    6061ACLOCAL_M4 = $(top_srcdir)/aclocal.m4
     
    6364
    6465CC = @CC@
     66# DBGDEF = -pg -DSH_PROFILE=1
    6567DBGDEF = @mydebugdef@
    6668DEFS = $(DBGDEF) @DEFS@ -I. -I$(top_srcdir)/include
     
    98100        lzoconf.h minilzo.h rijndael-alg-fst.h rijndael-api-fst.h \
    99101        rijndael-boxes-fst.h sh_socket.h sh_ignore.h sh_prelude.h \
    100         sh_mounts.h sh_userfiles.h sh_static.h sh_prelink.h
     102        sh_mounts.h sh_userfiles.h sh_static.h sh_prelink.h 
    101103
    102104
     
    130132        $(srcsrc)/sh_userfiles.c $(srcsrc)/sh_prelude.c \
    131133        $(srcsrc)/sh_prelink.c $(srcsrc)/sh_static.c \
    132         $(srcsrc)/sh_prelude_old.c
    133 
    134 OBJECTS = samhain.o sh_unix.o sh_utils.o sh_error.o sh_files.o \
    135         sh_getopt.o sh_readconf.o sh_tiger0.o sh_tiger1.o sh_tiger2.o \
    136         sh_tiger1_64.o sh_tiger2_64.o sh_hash.o sh_mail.o sh_mem.o \
     134        $(srcsrc)/sh_prelude_old.c
     135
     136OBJECTS = sh_files.o sh_tiger0.o sh_tiger2.o sh_tiger2_64.o \
     137        samhain.o sh_unix.o sh_utils.o sh_error.o \
     138        sh_getopt.o sh_readconf.o \
     139        sh_hash.o sh_mail.o sh_mem.o \
    137140        sh_entropy.o sh_forward.o sh_modules.o sh_utmp.o sh_kern.o \
    138141        sh_suidchk.o sh_srp.o sh_fifo.o sh_tools.o sh_html.o sh_gpg.o \
     
    141144        trustfile.o rijndael-alg-fst.o rijndael-api-fst.o slib.o \
    142145        zAVLTree.o sh_socket.o sh_ignore.o sh_prelude.o \
    143         sh_mounts.o sh_userfiles.o sh_prelink.o sh_static.o sh_prelude_old.o
     146        sh_mounts.o sh_userfiles.o sh_prelink.o sh_static.o \
     147        sh_prelude_old.o
    144148
    145149KERN = kern_head.h kern_head.c
     
    10571061        rm x_`echo $@ |sed 's%\.o$$%%'`.c
    10581062
     1063sh_tiger_i.o: $(srcsrc)/$(TIGER_SRC) Makefile config_xor.h
     1064        @echo "$(COMPILE) $(VFLAG) -o sh_tiger_i.o -c $(srcsrc)/$(TIGER_SRC)";\
     1065        $(COMPILE) $(VFLAG) -o sh_tiger_i.o -c $(srcsrc)/$(TIGER_SRC);
     1066
    10591067samhain_setpwd: encode config_xor.h $(srcsrc)/samhain_setpwd.c
    10601068        @echo '$(COMPILE)  -o samhain_setpwd $(srcsrc)/samhain_setpwd.c'; \
     
    10751083        rm x_yulectl.c
    10761084
    1077 $(SAMHAIN): internal.h $(OBJECTS)
     1085$(SAMHAIN): internal.h $(OBJECTS) sh_tiger_i.o
    10781086        @-rm -f $(SAMHAIN)
    1079         @echo "$(LINK) $(OBJECTS) $(LIBS_TRY)"; \
    1080         $(LINK) $(OBJECTS) $(LIBS_TRY)
    1081 
    1082 
     1087        @echo "$(LINK) sh_tiger_i.o $(OBJECTS) $(LIBS_TRY)"; \
     1088        $(LINK) sh_tiger_i.o $(OBJECTS) $(LIBS_TRY)
     1089
     1090
     1091CUTEST_SOURCES = $(srcsrc)/cutest_sh_tools.c \
     1092                $(srcsrc)/cutest_zAVLTree.c \
     1093                $(srcsrc)/cutest_sh_tiger0.c
     1094
     1095CUTEST_OBJECTS = cutest_sh_tools.o cutest_zAVLTree.o cutest_sh_tiger0.o
     1096
     1097$(CUTEST_OBJECTS): $(CUTEST_SOURCES)
     1098        @echo "./encode $(XOR_CODE) $(srcsrc)/`echo $@ |sed 's%\.o$$%%'`.c --> x_`echo $@ |sed 's%\.o$$%%'`.c"; \
     1099        ./encode $(XOR_CODE) $(srcsrc)/`echo $@ |sed 's%\.o$$%%'`.c; \
     1100        echo "$(COMPILE) $(VFLAG) -o `echo $@ |sed 's%.*/%%'` -c x_`echo $@ |sed 's%\.o$$%%'`.c"; \
     1101        $(COMPILE) $(VFLAG) -o `echo $@ |sed 's%.*/%%'` -c x_`echo $@ |sed 's%\.o$$%%'`.c; \
     1102        rm x_`echo $@ |sed 's%\.o$$%%'`.c
     1103
     1104cutest: internal.h $(OBJECTS) $(CUTEST_OBJECTS) sh_tiger_i.o $(srcsrc)/make-tests.sh
     1105        cd $(srcsrc)/ && ./make-tests.sh >CuTestMain.c
     1106        @$(COMPILE) -o CuTestMain.o -c $(srcsrc)/CuTestMain.c; \
     1107        $(COMPILE) -o CuTest.o -c $(srcsrc)/CuTest.c; \
     1108        rm -f samhain.o; \
     1109        ./encode $(XOR_CODE) $(srcsrc)/samhain.c; \
     1110        $(COMPILE) $(VFLAG) -DSH_CUTEST=1 -o samhain.o -c x_samhain.c; \
     1111        rm x_samhain.c; \
     1112        $(LINK) sh_tiger_i.o $(CUTEST_OBJECTS) CuTestMain.o CuTest.o $(OBJECTS) $(LIBS_TRY); \
     1113        ./cutest
    10831114
    10841115samhain_hide.o: $(srcsrc)/samhain_hide.c samhain_erase.o
     
    15961627sh_static.o: $(srcsrc)/sh_static.c Makefile config_xor.h
    15971628sh_prelude_old.o: $(srcsrc)/sh_prelude_old.c Makefile config_xor.h $(srcinc)/slib.h $(srcinc)/sh_mem.h $(srcinc)/sh_cat.h $(srcinc)/sh_error_min.h $(srcinc)/sh_prelude.h $(srcinc)/sh_static.h
     1629sh_async.o: $(srcsrc)/sh_async.c Makefile config_xor.h $(srcinc)/samhain.h $(srcinc)/sh_calls.h $(srcinc)/sh_error.h
Note: See TracChangeset for help on using the changeset viewer.