dtinfo subdirectory mmdb

This commit is contained in:
Ulrich Wilkens
2013-08-28 20:32:11 +02:00
committed by Jon Trulson
parent eb698f32cf
commit 92424bd169
12 changed files with 33 additions and 31 deletions

View File

@@ -9,9 +9,9 @@ SUBDIRS=misc
XCOMM redefine TopLevelProject to build DtInfo with standard CDE config dir
#undef TopLevelProject
#define TopLevelProject DtInfo
IMAKE_DEFINES = -DTopLevelProject=TopLevelProject \
-DProjectTmplFile='<DtInfo.tmpl>' \
-DProjectRulesFile='<DtInfo.rules>'
IMAKE_DEF_DTINFO = -DTopLevelProject=TopLevelProject \
-DProjectTmplFile='<DtInfo.tmpl>' \
-DProjectRulesFile='<DtInfo.rules>'
MakeSubdirs($(SUBDIRS))
DependSubdirs($(SUBDIRS))

View File

@@ -40,7 +40,7 @@ char **argv;
{
case 'h':
{
sprintf(buffer, "%s.h", libname);
snprintf(buffer, sizeof(buffer), "%s.h", libname);
hfile = fopen(buffer, "w");
if (!hfile)
@@ -55,7 +55,7 @@ char **argv;
break;
case 'd':
{
sprintf(buffer, "%s.d", libname);
snprintf(buffer, sizeof(buffer), "%s.d", libname);
dfile = fopen(buffer, "w");
if (!dfile)