Difference between revisions of "Building HPM Plugin for gcc"
From Hercules Wiki
Dastgirpojee (Talk | contribs) |
|||
Line 1: | Line 1: | ||
This is a guide on how to prepare your gcc environment for a new [[HPM]] plugin. | This is a guide on how to prepare your gcc environment for a new [[HPM]] plugin. | ||
= Guide = | = Guide = | ||
− | + | In your '''src/plugins/Makefile.in''' file you should find something like: | |
− | + | ################ PLUGIN CONFIGURATION ############################## | |
+ | # # | ||
+ | # When you add a plugin, add its name here: # | ||
+ | # Example: if you have a plugin named my_cool_plugin.c and another # | ||
+ | # one named my_second_plugin.c, add them to the list like this: # | ||
+ | # # | ||
+ | # MYPLUGINS = my_cool_plugin my_second_plugin # | ||
+ | # # | ||
+ | # Note: DO NOT include the .c extension!!! # | ||
− | + | MYPLUGINS = | |
− | + | add your plugin name (without the .c extension), after '''MYPLUGINS =''' save and close.<br/> | |
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
Lastly, re-run your '''./configure''' command at the root folder of Hercules, and you're good to go. | Lastly, re-run your '''./configure''' command at the root folder of Hercules, and you're good to go. | ||
[[HPM]] | [[HPM]] | ||
[[Category:Installation]] | [[Category:Installation]] |
Revision as of 19:49, 4 October 2013
This is a guide on how to prepare your gcc environment for a new HPM plugin.
Guide
In your src/plugins/Makefile.in file you should find something like:
################ PLUGIN CONFIGURATION ############################## # # # When you add a plugin, add its name here: # # Example: if you have a plugin named my_cool_plugin.c and another # # one named my_second_plugin.c, add them to the list like this: # # # # MYPLUGINS = my_cool_plugin my_second_plugin # # # # Note: DO NOT include the .c extension!!! # MYPLUGINS =
add your plugin name (without the .c extension), after MYPLUGINS = save and close.
Lastly, re-run your ./configure command at the root folder of Hercules, and you're good to go.
HPM