Changeset 2530
- Timestamp:
- 11/07/06 19:43:33 (2 years ago)
- Files:
-
- trunk/tendra/regression/ada/asis/cases/Makefile (modified) (2 diffs)
- trunk/tendra/regression/ada/asis/src/common/test.mk (modified) (1 diff)
- trunk/tendra/regression/ada/tdfada/Makefile (modified) (2 diffs)
- trunk/tendra/src/producers/ada/asis/asis-gela-library-env.adb (added)
- trunk/tendra/src/producers/ada/asis/asis-gela-library.adb (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
trunk/tendra/regression/ada/asis/cases/Makefile
r2475 r2530 3 3 SRC_DIR = ${.CURDIR:C/(.*)\/regression.*/\1/} 4 4 OUT_DIR = ${SRC_DIR}/obj/${NAME} 5 5 INCL = ${SRC_DIR}/src/lib/libada/spec/ 6 6 .SUFFIXES: .${NAME} .${NAME}.out 7 7 … … 11 11 .${NAME}.${NAME}.out : 12 12 if [ -f ${.IMPSRC:R}.adb ]; then \ 13 GELA_INCLUDE_PATH=${INCL} \ 13 14 ${OUT_DIR}/${NAME} ${.IMPSRC:R}.adb body ${.IMPSRC:R} \ 14 15 > ${OUT_DIR}/${.TARGET}; \ 15 16 else \ 17 GELA_INCLUDE_PATH=${INCL} \ 16 18 ${OUT_DIR}/${NAME} ${.IMPSRC:R}.ads spec ${.IMPSRC:R} \ 17 19 > ${OUT_DIR}/${.TARGET}; \ trunk/tendra/regression/ada/asis/src/common/test.mk
r2464 r2530 15 15 DONT_INSTALL = Y 16 16 17 DEPEND_SRC = ${LIB_DIR}/libasis.a lib17 DEPEND_SRC = ${LIB_DIR}/libasis.a 18 18 19 19 CLEANFILES=* 20 20 21 lib:22 ln -s ${SRC_DIR}/src/lib/libada/spec lib23 24 21 .include "${SRC_DIR}/mk/base/tendra.prog.mk" trunk/tendra/regression/ada/tdfada/Makefile
r2491 r2530 7 7 OBJ_DIR = ${SRC_DIR}/obj/regression/tdfada 8 8 TDFADA = ${SRC_DIR}/obj/producers/ada/tdfada/tdfada 9 INCL = ${SRC_DIR}/ obj/producers/ada/tdfada/lib9 INCL = ${SRC_DIR}/src/lib/libada/spec/ 10 10 11 11 .include "${SRC_DIR}/config.mk" … … 39 39 40 40 .ads.j: 41 ${TDFADA} ${.IMPSRC}41 ${TDFADA} -I${INCL} ${.IMPSRC} 42 42 43 43 .adb.j: 44 ${TDFADA} ${.IMPSRC}44 ${TDFADA} -I${INCL} ${.IMPSRC} 45 45 46 46 make-subdir: obj-dir all-tests trunk/tendra/src/producers/ada/asis/asis-gela-library.adb
r2528 r2530 12 12 13 13 function Gela_Lib_Path return String; 14 function Env return String is separate; 14 15 15 16 Search_Path : Unbounded_Wide_String; … … 66 67 67 68 function Gela_Lib_Path return String is 68 use Ada.Strings;69 Cmd : constant String := Ada.Command_Line.Command_Name;70 Slash : constant Natural :=71 Fixed.Index (Cmd, Maps.To_Set ("/\"), Going => Backward);72 Suffix : constant String := "lib/"73 69 begin 74 if Slash = 0 then 75 return Suffix; 76 else 77 return Cmd (Cmd'First .. Slash) & Suffix; 78 end if; 70 return Env; 79 71 end Gela_Lib_Path; 80 72