Use autotools, move altos to src subdir
[fw/altos] / aoview / Makefile.am
1 VERSION=$(shell git describe)
2 AM_CFLAGS=$(AOVIEW_CFLAGS) -I$(top_srcdir)/src -DAOVIEW_VERSION=\"$(VERSION)\"
3
4 bin_PROGRAMS=aoview
5
6 aoview_LDADD=$(AOVIEW_LIBS)
7
8 aoview_SOURCES = \
9         aoview_main.c \
10         aoview_dev.c \
11         aoview_dev_dialog.c \
12         aoview_serial.c \
13         aoview_monitor.c \
14         aoview_state.c \
15         aoview_convert.c \
16         aoview_log.c \
17         aoview_table.c \
18         aoview_util.c \
19         aoview_file.c \
20         aoview_eeprom.c \
21         aoview.h
22
23 BUILT_SOURCES = aoview_glade.h
24
25 CLEANFILES = aoview_glade.h
26
27 aoview_glade.h: aoview.glade
28         sed -e 's/"/\\"/g' -e 's/^/"/' -e 's/$$/"/' $< > $@