vx32

Local 9vx git repository for patches.
git clone git://r-36.net/vx32
Log | Files | Refs

Makefrag (1455B)


      1 
      2 all: 	hash/vmd5 hash/vsha1 hash/vsha2 hash/vwhirlpool hash/vripemd \
      3 	hash/hmd5 hash/hsha1 hash/hsha2 hash/hwhirlpool hash/hripemd
      4 
      5 
      6 # Build rules for VX32 environment
      7 hash/vmd5: hash/md5.vo
      8 	$(VX32_LD) -o $@ $(VX32_LDFLAGS) hash/md5.vo \
      9 		$(VX32_LDLIBS)
     10 
     11 hash/vsha1: hash/sha1.vo hash/sha_main.vo
     12 	$(VX32_LD) -o $@ $(VX32_LDFLAGS) hash/sha1.vo hash/sha_main.vo \
     13 		$(VX32_LDLIBS)
     14 
     15 hash/vsha2: hash/sha2.vo hash/sha2_main.vo
     16 	$(VX32_LD) -o $@ $(VX32_LDFLAGS) hash/sha2.vo hash/sha2_main.vo \
     17 		$(VX32_LDLIBS)
     18 
     19 hash/vwhirlpool: hash/whirlpool.vo
     20 	$(VX32_LD) -o $@ $(VX32_LDFLAGS) hash/whirlpool.vo \
     21 		$(VX32_LDLIBS)
     22 
     23 hash/vripemd: hash/ripemd.vo
     24 	$(VX32_LD) -o $@ $(VX32_LDFLAGS) hash/ripemd.vo \
     25 		$(VX32_LDLIBS)
     26 
     27 hash/%.vo: hash/%.c
     28 	$(VX32_CC) -c $(VX32_CFLAGS) -o $@ $<
     29 
     30 
     31 
     32 # Build rules for native host environment (for comparison purposes)
     33 hash/hmd5: hash/md5.ho
     34 	$(HOST_CC) -o $@ $(HOST_LDFLAGS) hash/md5.ho \
     35 		$(HOST_LDLIBS)
     36 
     37 hash/hsha1: hash/sha1.ho hash/sha_main.ho
     38 	$(HOST_CC) -o $@ $(HOST_LDFLAGS) hash/sha1.ho hash/sha_main.ho \
     39 		$(HOST_LDLIBS)
     40 
     41 hash/hsha2: hash/sha2.ho hash/sha2_main.ho
     42 	$(HOST_CC) -o $@ $(HOST_LDFLAGS) hash/sha2.ho hash/sha2_main.ho \
     43 		$(HOST_LDLIBS)
     44 
     45 hash/hwhirlpool: hash/whirlpool.ho
     46 	$(HOST_CC) -o $@ $(HOST_LDFLAGS) hash/whirlpool.ho \
     47 		$(HOST_LDLIBS)
     48 
     49 hash/hripemd: hash/ripemd.ho
     50 	$(HOST_CC) -o $@ $(HOST_LDFLAGS) hash/ripemd.ho \
     51 		$(HOST_LDLIBS)
     52 
     53 hash/%.ho: hash/%.c
     54 	$(HOST_CC) -c $(HOST_CFLAGS) -o $@ $<
     55