Changeset 2649c5 in git
- Timestamp:
- Sep 12, 2007, 11:31:40 AM (16 years ago)
- Branches:
- (u'spielwiese', '8e0ad00ce244dfd0756200662572aef8402f13d5')
- Children:
- 3952b09109e6bea4c8f045f60329ee2fd1e52cd6
- Parents:
- ac1aa29db9af55386c48180b044b115e3fbd5e01
- Location:
- modules/modgen
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
modules/modgen/Makefile.in
rac1aa29 r2649c5 110 110 echo "" >> pathnames.h 111 111 echo "#define TOPSRCDIR \"$(topsrcdir)\"" >> pathnames.h 112 echo "#define LIBDIR \"$(libdir)\"" >> pathnames.h 113 echo "#define PREFIX \"$(prefix)\"" >> pathnames.h 114 echo "#define EXEC_PREFIX \"$(exec_prefix)\"" >> pathnames.h 112 echo "#define SINGUNAME \"$(SINGUNAME)\"" >> pathnames.h 115 113 116 114 scanner.cc: scanner.l mod_grammar.h modgen.h 117 $(LEX) scanner.l > scanner.cc 115 @if test -r scanner.cc; then \ 116 touch scanner.cc ;\ 117 else \ 118 if test "x${LEX}" = x; then \ 119 echo Error: no lex given, could not rebuilt scanner.cc;\ 120 exit 1; \ 121 fi\ 122 fi 123 ${LEX} -s -I -t scanner.l > scanner.cc.lmp 124 cp scanner.cc.lmp scanner.cc 118 125 119 126 # $(LEX) -Pyymod scanner.l > scanner.cc -
modules/modgen/main.cc
rac1aa29 r2649c5 77 77 int do_create_makefile = 1; 78 78 int do_create_srcdir = 1; 79 char* inst_dir = EXEC_PREFIX;79 char* inst_dir = "${SINGULARROOT}/${SINGUNAME}"; 80 80 81 81 #ifdef IRIX_6 -
modules/modgen/makefile.cc
rac1aa29 r2649c5 2 2 * Computer Algebra System SINGULAR * 3 3 ****************************************/ 4 /* $Id: makefile.cc,v 1.2 8 2006-11-09 13:23:43Singular Exp $ */4 /* $Id: makefile.cc,v 1.29 2007-09-12 09:31:40 Singular Exp $ */ 5 5 /* 6 6 * ABSTRACT: lib parsing … … 97 97 fprintf(fp, "CC\t= gcc\n"); 98 98 fprintf(fp, "CXX\t= gcc\n"); 99 fprintf(fp, "SINGULARROOT\t= ../..\n"); 99 100 #warning "PROBLEM: nice place for include file has to be found" 100 fprintf(fp, "CFLAGS\t= -DNDEBUG -DBUILD_MODULE -I. -I %s/kernel -I%s/Singular -I%s/include\n",PREFIX,PREFIX,EXEC_PREFIX);101 fprintf(fp, "DCFLAGS\t= -DBUILD_MODULE -I. -I %s/kernel -I%s/Singular -I%s/include\n",PREFIX,PREFIX,EXEC_PREFIX);101 fprintf(fp, "CFLAGS\t= -DNDEBUG -DBUILD_MODULE -I. -I${SINGULARROOT}/kernel -I${SINGULARROOT}/Singular -I${SINGULARROOT}/%s/include\n",SINGUNAME); 102 fprintf(fp, "DCFLAGS\t= -DBUILD_MODULE -I. -I${SINGULARROOT}/kernel -I${SINGULARROOT}/Singular -I${SINGULARROOT}/%s/include\n",SINGUNAME); 102 103 fprintf(fp, "#LD\t=\n"); 103 104 fprintf(fp, "\n"); 104 105 fprintf(fp, "instdir = %s\n", inst_dir ); 105 fprintf(fp, "MKINSTALLDIRS\t\t= %s/modules/mkinstalldirs\n", PREFIX);106 fprintf(fp, "MKINSTALLDIRS\t\t= ${SINGULARROOT}/modules/mkinstalldirs\n"); 106 107 #warning "PROBLEM: do we also install install-sh when installing Singular?" 107 fprintf(fp, "INSTALL\t\t= %s/Singular/install-sh -c\n", PREFIX);108 fprintf(fp, "INSTALL\t\t= ${SINGULARROOT}/Singular/install-sh -c\n"); 108 109 fprintf(fp, "INSTALL_PROGRAM\t= ${INSTALL}\n"); 109 110 fprintf(fp, "INSTALL_DATA\t= ${INSTALL} -m 644\n"); -
modules/modgen/scanner.cc
rac1aa29 r2649c5 1 #line 2 "scanner.cc"2 1 /* A lexical scanner generated by flex */ 3 2 4 3 /* Scanner skeleton version: 5 * $Header: /exports/cvsroot-2/cvsroot/modules/modgen/scanner.cc,v 1. 4 2006-12-07 10:12:07Singular Exp $4 * $Header: /exports/cvsroot-2/cvsroot/modules/modgen/scanner.cc,v 1.5 2007-09-12 09:31:40 Singular Exp $ 6 5 */ 7 6 … … 11 10 12 11 #include <stdio.h> 12 #include <unistd.h> 13 13 14 14 … … 24 24 25 25 #include <stdlib.h> 26 #include <unistd.h>27 26 28 27 /* Use prototypes in function declarations. */ … … 703 702 * Computer Algebra System SINGULAR * 704 703 ****************************************/ 705 /* $Id: scanner.cc,v 1. 4 2006-12-07 10:12:07Singular Exp $ */704 /* $Id: scanner.cc,v 1.5 2007-09-12 09:31:40 Singular Exp $ */ 706 705 #include <stdio.h> 707 706 #include <string.h> … … 830 829 #define cstring 20 831 830 832 #line 833 "scanner.cc"833 831 834 832 /* Macros after this point can all be overridden by user definitions in … … 991 989 static int quote = 0; /* " */ 992 990 993 #line 994 "scanner.cc"994 991 995 992 if ( yy_init ) … … 1856 1853 YY_RULE_SETUP 1857 1854 #line 543 "scanner.l" 1858 ECHO; 1859 YY_BREAK 1860 #line 1861 "scanner.cc" 1855 YY_FATAL_ERROR( "flex scanner jammed" ); 1856 YY_BREAK 1861 1857 case YY_STATE_EOF(preamble): 1862 1858 case YY_STATE_EOF(MODINITIAL): … … 2256 2252 2257 2253 2254 #ifndef YY_NO_INPUT 2258 2255 #ifdef __cplusplus 2259 2256 static int yyinput() … … 2328 2325 return c; 2329 2326 } 2330 2327 #endif /* YY_NO_INPUT */ 2331 2328 2332 2329 #ifdef YY_USE_PROTOS … … 2439 2436 2440 2437 2441 #ifndef YY_ALWAYS_INTERACTIVE2442 #ifndef YY_NEVER_INTERACTIVE2443 extern int isatty YY_PROTO(( int ));2444 #endif2445 #endif2446 2438 2447 2439 #ifdef YY_USE_PROTOS
Note: See TracChangeset
for help on using the changeset viewer.