vx32

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

Makefrag (581B)


      1 
      2 MICROBENCHMARKS = null jump jumpal call callind syscall read write 64add 64mul 64div jumpfar
      3 
      4 all: 	$(addprefix micro/v,$(MICROBENCHMARKS)) \
      5  	$(addprefix micro/h,$(MICROBENCHMARKS)) \
      6 	micro/hrepeat
      7 
      8 
      9 # Build rules for VX32 environment
     10 micro/v%: micro/%.vo
     11 	$(VX32_LD) -o $@ $(VX32_LDFLAGS) $< $(VX32_LDLIBS)
     12 
     13 micro/%.vo: micro/%.c
     14 	$(VX32_CC) -c $(VX32_CFLAGS) -o $@ $<
     15 
     16 
     17 
     18 # Build rules for native host environment (for comparison purposes)
     19 micro/h%: micro/%.ho
     20 	$(HOST_CC) -o $@ $(HOST_LDFLAGS) $< $(HOST_LDLIBS)
     21 
     22 micro/%.ho: micro/%.c
     23 	$(HOST_CC) -c $(HOST_CFLAGS) -o $@ $<
     24