\tinstall install libraries or executables
\tlink create a library or an executable
\trelink (synonym for `link')
-\tuninstall remove libraries from an installed directory";
+\tuninstall remove libraries from an installed directory
+\techo the program behaves as a reimplementation of echo";
include =
doc = "This option is equivalent to `--mode=finish'";
};
-flag = {
- name = "preserve_dup_deps";
- descrip = "normally, duplicate libs are removed";
- doc = "Sometimes in some circumstances it is necessary to search\n"
- "a library multiple times. By default, we do not.";
-};
-
flag = {
name = "fallback_echo";
flag_code = ' SET_OPT_MODE("echo");';
* * * * * * * * * * * * * * * * * * * * * * * * * *
*/
flag = {
- name = doc_link;
+ name = doc_comp_and_link;
documentation;
descrip = 'compile and link mode options:';
};
"";
};
+/*
+ * * * * * * * * * * * * * * * * * * * * * * * * * *
+ */
+flag = {
+ name = doc_link;
+ documentation;
+ descrip = 'link only mode options:';
+};
+
+flag = {
+ name = "preserve_dup_deps";
+ descrip = " -- normally, duplicate libs are removed";
+ doc = "Sometimes in some circumstances it is necessary to search\n"
+ "a library multiple times. By default, we do not.";
+};
+
/*
* * * * * * * * * * * * * * * * * * * * * * * * * *
*/
flag = {
name = doc_compile;
documentation;
- descrip = 'compile-only mode options:';
+ descrip = 'compile only mode options:';
};
flag = {
*
* Strings that, when written from 'C', must be the same as
* the strings typed in the definition and template files.
- */[=
-
+ */
+[=
IF (== (suffix) "h") =][=
-
- (define guard (string-append "HDRGRD_" (string-upcase!
- (string->c-name! (out-name)) )))
- (define hdr-name (out-name)) =]
-#ifndef [=(. guard)=]
-#define [=(. guard)=] 1
+ (make-header-guard "ltmain") =]
#include <stdio.h>
#include <options.h>
ELSE not h suffix
-=]
-#include "[=(. hdr-name)=]"
+=]#include "[=(. header-file)=]"
[=
(define tpl-name "")
(define cmd-list "")
+(define cmd-str "")
(define proc-list "")
(define Cmd-Name "") =][=
FOR string =][=
(set! Cmd-Name (string-capitalize! (get "str_name")))
+ (set! cmd-str (string-append "z" Cmd-Name "Cmd"))
=]
/*
IF (exist? "explain") =]
[= ENDIF =]
-tSCC z[= (. Cmd-Name) =]Cmd[] =[=
- (out-push-new ".lt.sh") =][=
- INCLUDE (. tpl-name) =][=
- (out-pop)
- (set! cmd-list (string-append cmd-list "z" Cmd-Name "Cmd\n"))
- (kr-string (shell "cat .lt.sh ; rm -f .lt.sh"))
+tSCC [= (. cmd-str) =][] =[=
+ INCLUDE
+ (set! cmd-list (string-append cmd-list cmd-str "\n"))
+ (out-push-new)
+ (. tpl-name) =][=
+ (kr-string (out-pop #t))
=];
/* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */[=
extern void emitShellQuoted LT_PARAMS(( tCC* pzArg, FILE* outFp ));
extern void emitShellArg LT_PARAMS(( tCC* pzArg, FILE* outFp ));
-#endif /* [=(. guard)=] */[=
+#endif /* [=(. header-guard)=] */[=
ENDIF =]