Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
U
uniset2
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
1
Issues
1
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
UniSet project repositories
uniset2
Commits
46cbf5e7
Commit
46cbf5e7
authored
Jul 30, 2009
by
Vitaly Lipatov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
libUniSet.include: add extensions support
parent
c10cc4f3
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
52 additions
and
2 deletions
+52
-2
libUniSet.include
libUniSet.include
+52
-2
No files found.
libUniSet.include
View file @
46cbf5e7
...
...
@@ -23,7 +23,57 @@ eval $(head -n1 $PCFILE)
test
-d
"
$prefix
"
||
exit
1
export
UNISET_CFLAGS
=
"
$(
pkg-config
--cflags
$PCFILE
|
sed
-e
"s|-I
$prefix
/include/uniset|-I
$EXPORTPATH
/include|g"
)
"
export
PKG_CONFIG_PATH
=
$EXPORTPATH
:
$EXPORTPATH
/extensions:
$EXPORTPATH
/extensions/SharedMemory:
$PKG_CONFIG_PATH
export
UNISET_LIBS
=
"-L
$EXPORTPATH
/lib
$(
pkg-config
--libs
$PCFILE
|
sed
-e
"s|-L
$prefix
||g"
)
"
cflags
()
{
pkg-config
--cflags
$1
|
sed
-e
"s|-I
$prefix
/include/uniset|-I
$EXPORTPATH
/include|g"
}
libs
()
{
echo
-n
"-L
$EXPORTPATH
/lib "
pkg-config
--libs
$1
|
sed
-e
"s|-L
$prefix
||g"
}
export
UNISET_CFLAGS
=
"
$(
cflags
$PCFILE
)
"
export
UNISET_LIBS
=
"
$(
libs
$PCFILE
)
"
ext_cflags
()
{
# FIXME: really use extensions/
echo
-n
"-I
$1
"
cflags
$1
/
$2
}
ext_libs
()
{
echo
-n
"-L
$1
"
libs
$1
/
$2
}
EXFILE
=
"
$EXPORTPATH
/extensions libUniSetExtensions.pc"
export
UNISET_EXT_CFLAGS
=
"-I
$EXPORTPATH
/extensions/include
$(
ext_cflags
$EXFILE
)
"
export
UNISET_EXT_LIBS
=
"
$(
ext_libs
$EXFILE
)
"
EXFILE
=
"
$EXPORTPATH
/extensions/IOControl libUniSetIOControl.pc"
export
UNISET_EXT_IO_CFLAGS
=
"
$(
ext_cflags
$EXFILE
)
"
export
UNISET_EXT_IO_LIBS
=
"
$(
ext_libs
$EXFILE
)
"
EXFILE
=
"
$EXPORTPATH
/extensions/SharedMemory libUniSetSharedMemory.pc"
export
UNISET_EXT_SM_CFLAGS
=
"
$(
ext_cflags
$EXFILE
)
"
export
UNISET_EXT_SM_LIBS
=
"
$(
ext_libs
$EXFILE
)
"
EXFILE
=
"
$EXPORTPATH
/extensions/ModbusSlave libUniSetMBSlave.pc"
export
UNISET_EXT_MBS_CFLAGS
=
"
$(
ext_cflags
$EXFILE
)
"
export
UNISET_EXT_MBS_LIBS
=
"
$(
ext_libs
$EXFILE
)
"
EXFILE
=
"
$EXPORTPATH
/extensions/MBTCPMaster libUniSetMBTCPMaster.pc"
export
UNISET_EXT_MBM_CFLAGS
=
"
$(
ext_cflags
$EXFILE
)
"
export
UNISET_EXT_MBM_LIBS
=
"
$(
ext_libs
$EXFILE
)
"
EXFILE
=
"
$EXPORTPATH
/extensions/RTUExchange libUniSetRTU.pc"
export
UNISET_EXT_RTU_CFLAGS
=
"
$(
ext_cflags
$EXFILE
)
"
export
UNISET_EXT_RTU_LIBS
=
"
$(
ext_libs
$EXFILE
)
"
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment