1 # Makefile.am -- Process this file with automake to produce Makefile.in
3 SUBDIRS = . $(MAYBE_GUI)
5 AUTOMAKE_OPTIONS = subdir-objects
7 bin_PROGRAMS = st-flash st-util st-term
9 noinst_LIBRARIES = libstlink.a
11 st_flash_SOURCES = flash/main.c
12 st_term_SOURCES = src/st-term.c
13 st_util_SOURCES = gdbserver/gdb-remote.c gdbserver/gdb-remote.h gdbserver/gdb-server.c mingw/mingw.c mingw/mingw.h
29 libstlink_a_SOURCES = $(CFILES) $(HFILES)
31 libstlink_a_CPPFLAGS = -std=gnu99 -Wall -Wextra -O2
32 libstlink_a_LIBADD = $(LIBOBJS)
34 st_flash_LDADD = libstlink.a
35 st_flash_CPPFLAGS = -std=gnu99 -Wall -Wextra -O2 -I$(top_srcdir)/src -I$(top_srcdir)/mingw
37 st_util_LDADD = libstlink.a
38 st_util_CPPFLAGS = -std=gnu99 -Wall -Wextra -O2 -I$(top_srcdir)/src -I$(top_srcdir)/mingw
40 st_term_LDADD = libstlink.a
41 st_term_CPPFLAGS = -std=gnu99 -Wall -Wextra -O2 -I$(top_srcdir)/src -I$(top_srcdir)/mingw
44 EXTRA_DIST = autogen.sh