#
#
#

<Global>
Includes=-I../include -I../PiAPI -I../Pi2API -I../Pi3API
LibPath=../lib ../Pi3API ../Pi2API ../PiAPI
Local_CxxFlags=-D$(CONFIG_OS_FLAVOR)=1
Local_CFlags=-D$(CONFIG_OS_FLAVOR)=1
</Global>

<Target>
Name=APISyms.cpp
Build=$(CMD_PERL) ..$(S)Scripts$(S)apisyms.pl . APISyms.cpp __Plugins_functions
Depends=..$(S)Scripts$(S)apisyms.pl 
</Target>

<Target>
Name=$(CONFIG_LIBPREFIX)Plugins_S$(CONFIG_LIBSUFFIX)
Objs=APISyms$(CONFIG_OBJEXTN)
Source=.c *.c
Source=.cpp *.cpp
Depends=Plugins.def
StaticLibrary=Plugins_S
</Target>

<Target>
Name=$(CONFIG_DLLPREFIX)Plugins$(CONFIG_DLLSUFFIX)
Source=.c *.c
Source=.cpp *.cpp
Libraries=Pi3API Pi2API PiAPI
Depends=Plugins.def
SharedLibrary=Plugins
</Target>

<Target>
Name=Plugins.def
Build=$(CMD_PERL) ../Scripts/gendef.pl . Plugins.def Plugins *.c *.cpp
Depends=../Scripts/gendef.pl
</Target>

<Target>
Name=module_clean
Build=$(CMD_RM) APISyms.cpp
AddToClean
</Target>

<Target>
Name=foo.tmp
Build=$(CMD_CP) *$(CONFIG_DLLSUFFIX) ..$(S)..$(S)bin $(CMD_SEPERATOR) $(CMD_CP) *.cnf ..$(S)..$(S)Conf $(CMD_SEPERATOR) $(CMD_PERL) ..$(S)Scripts$(S)htmldoc.pl ..$(S)..$(S)Pi3Docs$(S)Objects$(S)Plugins.html ..$(S)..$(S)Pi3Docs$(S)Indexes$(S)Index.ind *.c $(CMD_SEPERATOR) $(CMD_PERL) ..$(S)Scripts$(S)genconf.pl ..$(S)..$(S)Conf$(S)Plugins.cnf *.c $(CMD_SEPERATOR) echo > foo.tmp
Depends=$(CONFIG_DLLPREFIX)Plugins$(CONFIG_DLLSUFFIX) $(CONFIG_LIBPREFIX)Plugins_S$(CONFIG_LIBSUFFIX)
AddToAll
</Target>

