Fix in DEFPATH mechanism, improved proto.make
This commit is contained in:
parent
1263ef9731
commit
8e99b149fc
2 changed files with 4 additions and 1 deletions
|
@ -40,7 +40,7 @@ char options[128];
|
||||||
int DefinitionModule;
|
int DefinitionModule;
|
||||||
char *ProgName;
|
char *ProgName;
|
||||||
char **DEFPATH;
|
char **DEFPATH;
|
||||||
int nDEF = 1, mDEF = 10;
|
int nDEF = 2, mDEF = 10;
|
||||||
int pass_1 = 1;
|
int pass_1 = 1;
|
||||||
t_def *Defined;
|
t_def *Defined;
|
||||||
extern int err_occurred;
|
extern int err_occurred;
|
||||||
|
@ -56,6 +56,7 @@ main(argc, argv)
|
||||||
|
|
||||||
ProgName = *argv++;
|
ProgName = *argv++;
|
||||||
DEFPATH = (char **) Malloc((unsigned)mDEF * sizeof(char *));
|
DEFPATH = (char **) Malloc((unsigned)mDEF * sizeof(char *));
|
||||||
|
DEFPATH[1] = 0;
|
||||||
|
|
||||||
while (--argc > 0) {
|
while (--argc > 0) {
|
||||||
if (**argv == '-')
|
if (**argv == '-')
|
||||||
|
|
|
@ -98,6 +98,8 @@ make_macros: Makefile
|
||||||
echo 'COPTIONS=$(COPTIONS)' >> make_macros
|
echo 'COPTIONS=$(COPTIONS)' >> make_macros
|
||||||
echo 'LDOPTIONS=$(LDOPTIONS)' >> make_macros
|
echo 'LDOPTIONS=$(LDOPTIONS)' >> make_macros
|
||||||
echo 'LINT=$(LINT)' >> make_macros
|
echo 'LINT=$(LINT)' >> make_macros
|
||||||
|
echo 'LINTSUF=$(LINTSUF)' >> make_macros
|
||||||
|
echo 'LINTPREF=$(LINTPREF)' >> make_macros
|
||||||
echo 'LINTOPTIONS=$(LINTOPTIONS)' >> make_macros
|
echo 'LINTOPTIONS=$(LINTOPTIONS)' >> make_macros
|
||||||
echo 'SUF=$(SUF)' >> make_macros
|
echo 'SUF=$(SUF)' >> make_macros
|
||||||
echo 'LIBSUF=$(LIBSUF)' >> make_macros
|
echo 'LIBSUF=$(LIBSUF)' >> make_macros
|
||||||
|
|
Loading…
Reference in a new issue