diff --git a/bacnet-stack/demo/readfile/makefile.b32 b/bacnet-stack/demo/readfile/makefile.b32 index 01b5e43a..5510c344 100644 --- a/bacnet-stack/demo/readfile/makefile.b32 +++ b/bacnet-stack/demo/readfile/makefile.b32 @@ -29,6 +29,7 @@ SRCS = readfile.c \ ..\..\bacstr.c \ ..\..\bactext.c \ ..\..\indtext.c \ + ..\..\filename.c \ ..\..\bigend.c \ ..\..\whois.c \ ..\..\iam.c \ diff --git a/bacnet-stack/demo/writefile/Makefile b/bacnet-stack/demo/writefile/Makefile index e0c3616c..03bec878 100644 --- a/bacnet-stack/demo/writefile/Makefile +++ b/bacnet-stack/demo/writefile/Makefile @@ -34,6 +34,7 @@ SRCS = writefile.c \ $(BACNET_ROOT)/bacstr.c \ $(BACNET_ROOT)/bactext.c \ $(BACNET_ROOT)/indtext.c \ + $(BACNET_ROOT)/filename.c \ $(BACNET_ROOT)/bigend.c \ $(BACNET_ROOT)/whois.c \ $(BACNET_ROOT)/iam.c \ diff --git a/bacnet-stack/demo/writefile/makefile.b32 b/bacnet-stack/demo/writefile/makefile.b32 index dd8420de..2f029b15 100644 --- a/bacnet-stack/demo/writefile/makefile.b32 +++ b/bacnet-stack/demo/writefile/makefile.b32 @@ -29,6 +29,7 @@ SRCS = writefile.c \ ..\..\bacstr.c \ ..\..\bactext.c \ ..\..\indtext.c \ + ..\..\filename.c \ ..\..\bigend.c \ ..\..\whois.c \ ..\..\iam.c \ @@ -36,6 +37,7 @@ SRCS = writefile.c \ ..\..\wp.c \ ..\..\arf.c \ ..\..\awf.c \ + ..\..\dcc.c \ ..\..\demo\object\bacfile.c \ ..\..\demo\object\device.c \ ..\..\demo\object\ai.c \ diff --git a/bacnet-stack/demo/writefile/writefile.c b/bacnet-stack/demo/writefile/writefile.c index b662958e..67f4c156 100644 --- a/bacnet-stack/demo/writefile/writefile.c +++ b/bacnet-stack/demo/writefile/writefile.c @@ -44,6 +44,7 @@ #include "datalink.h" #include "whois.h" /* some demo stuff needed */ +#include "filename.h" #include "handlers.h" #include "txbuf.h" @@ -293,7 +294,8 @@ int main(int argc, char *argv[]) if (argc < 4) { /* FIXME: what about access method - record or stream? */ - printf("%s device-instance file-instance local-name\r\n",argv[0]); + printf("%s device-instance file-instance local-name\r\n", + filename_remove_path(argv[0])); return 0; } /* decode the command line parameters */