Skip to content

Commit

Permalink
triggers: merge trig and ptrig directories
Browse files Browse the repository at this point in the history
This is in preparation for the rework to share the triggering logic.

Signed-off-by: Markus Klotzbuecher <mk@mkio.de>
  • Loading branch information
kmarkus committed Dec 27, 2019
1 parent a37aac4 commit 7004e4e
Show file tree
Hide file tree
Showing 6 changed files with 22 additions and 36 deletions.
1 change: 0 additions & 1 deletion std_blocks/Makefile.am
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@ SUBDIRS = cppdemo \
logging \
luablock \
mqueue \
ptrig \
trig \
random \
const \
Expand Down
29 changes: 0 additions & 29 deletions std_blocks/ptrig/Makefile.am

This file was deleted.

28 changes: 22 additions & 6 deletions std_blocks/trig/Makefile.am
Original file line number Diff line number Diff line change
Expand Up @@ -4,23 +4,39 @@ AM_CFLAGS = -I$(top_srcdir)/libubx \
-I$(top_srcdir)/std_types/stattypes/ $(UBX_CFLAGS)
ubxmoddir = $(UBX_MODDIR)

ubxmod_LTLIBRARIES = trig.la
ubxmod_LTLIBRARIES = trig.la ptrig.la

pkginclude_HEADERS = types/trig_config.h \
types/trig_config.h.hexarr \
types/trig_period.h \
types/trig_period.h.hexarr
pkginclude_HEADERS = $(top_srcdir)/libubx/ubx.h $(top_srcdir)/libubx/ubx_types.h

pkginclude_HEADERS =

BUILT_SOURCES = types/trig_config.h.hexarr \
types/trig_period.h.hexarr \
types/ptrig_config.h.hexarr \
types/ptrig_period.h.hexarr \
$(top_srcdir)/std_types/stattypes/types/tstat.h.hexarr

CLEANFILES = $(BUILT_SOURCES)

%.h.hexarr: %.h
$(top_srcdir)/tools/ubx_tocarr -s $< -d $<.hexarr

trig_la_includes = $(top_srcdir)/libubx/ubx.h $(top_srcdir)/libubx/ubx_types.h
# trig
trig_la_includes = types/trig_config.h \
types/trig_config.h.hexarr \
types/trig_period.h \
types/trig_period.h.hexarr

trig_la_SOURCES = $(trig_la_includes) trig.c
trig_la_LDFLAGS = -module -avoid-version -shared -export-dynamic
trig_la_LIBADD = $(top_builddir)/libubx/libubx.la

# ptrig
ptrig_la_includes = types/ptrig_config.h \
types/ptrig_config.h.hexarr \
types/ptrig_period.h \
types/ptrig_period.h.hexarr

ptrig_la_SOURCES = $(ptrig_la_includes) ptrig.c
ptrig_la_LDFLAGS = -module -avoid-version -shared -export-dynamic
ptrig_la_LIBADD = $(top_builddir)/libubx/libubx.la
File renamed without changes.
File renamed without changes.
File renamed without changes.

0 comments on commit 7004e4e

Please sign in to comment.