github.com/jlmucb/cloudproxy@v0.0.0-20170830161738-b5aa0b619bc4/cpvmm/vmm/test/setjumptest.mak (about) 1 2 ifndef CPProgramDirectory 3 E= /home/jlm/jlmcrypt 4 else 5 E= $(CPProgramDirectory) 6 endif 7 ifndef VMSourceDirectory 8 S= /home/jlm/fpDev/fileProxy/cpvmm 9 else 10 S= $(VMSourceDirectory) 11 endif 12 ifndef TARGET_MACHINE_TYPE 13 TARGET_MACHINE_TYPE= x64 14 endif 15 16 jumpsrc= $(S)/vmm/host/hw/em64t 17 18 B= $(E)/vmmobjects/test 19 20 CC= gcc 21 AS= as 22 LINK= gcc 23 LIBMAKER= ar 24 25 dobjs= $(B)/em64t_setjmp.o $(B)/testsetjump.o 26 27 28 all: $(E)/testsetjump.exe 29 30 $(E)/testsetjump.exe: $(dobjs) 31 $(LINK) -o $(E)/testsetjump.exe $(dobjs) 32 33 $(B)/testsetjump.o: ./testsetjump.c 34 echo "testsetjump.o" 35 $(CC) -c -o $(B)/testsetjump.o ./testsetjump.c 36 37 $(B)/em64t_setjmp.o: $(jumpsrc)/em64t_setjmp.s 38 echo "em64t_setjmp.o" 39 $(AS) -o $(B)/em64t_setjmp.o $(jumpsrc)/em64t_setjmp.s 40