Skip to content

Generated .st.d file doesn't mention included header file #5

@anjohnson

Description

@anjohnson

An IOC application using Sequencer version 2.2.9 and built with GNU Make 4.2.1 contains a sequence program mpsFaultDiscovery.st that includes the preprocessor directive

#include "mpsFaultDiscovery.h"

That include file defines and assigns a number of variables which are used by this and other SNL programs. The result builds and runs as expected, but the generated O.linux-x86_64/mpsFaultDiscovery.st.d file contains only

# DO NOT EDIT: This file created by mkmf.pl

Thus editing the include file doesn't cause the SNL program to get rebuilt. To achieve that, I had to add this rule to the Makefile:

--- a/mpsApp/src/Makefile
+++ b/mpsApp/src/Makefile
@@ -72,3 +72,4 @@ include $(TOP)/configure/RULES
 #----------------------------------------
 #  ADD RULES AFTER THIS LINE
 
+mpsFaultDiscovery.i: ../mpsFaultDiscovery.h

Since the rules do generate a %.st$(DEP) file they should have seen this dependency and included it automatically.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions