Merge pull request #180 from nekromant/info
[fw/stlink] / Makefile.am
1 # Makefile.am -- Process this file with automake to produce Makefile.in
2
3 SUBDIRS = . $(MAYBE_GUI)
4
5 AUTOMAKE_OPTIONS = subdir-objects
6
7 bin_PROGRAMS = st-flash st-util st-term st-info
8
9 noinst_LIBRARIES      = libstlink.a
10
11 st_flash_SOURCES = flash/main.c
12 st_term_SOURCES = src/st-term.c
13 st_info_SOURCES = src/st-info.c
14 st_util_SOURCES = gdbserver/gdb-remote.c gdbserver/gdb-remote.h gdbserver/gdb-server.c mingw/mingw.c mingw/mingw.h
15
16 CFILES = \
17         src/stlink-common.c \
18         src/stlink-usb.c \
19         src/stlink-sg.c \
20         src/uglylogging.c \
21         src/st-term.c \
22         src/st-info.c
23
24 HFILES  = \
25         src/stlink-common.h \
26         src/stlink-usb.h \
27         src/stlink-sg.h \
28         src/uglylogging.h \
29         src/mmap.h
30
31 libstlink_a_SOURCES     =       $(CFILES) $(HFILES)
32
33 libstlink_a_CPPFLAGS    = -std=gnu99 -Wall -Wextra -O2
34 libstlink_a_LIBADD = $(LIBOBJS)
35
36 st_flash_LDADD  =       libstlink.a
37 st_flash_CPPFLAGS       = -std=gnu99 -Wall -Wextra -O2 -I$(top_srcdir)/src -I$(top_srcdir)/mingw
38
39 st_util_LDADD   =       libstlink.a
40 st_util_CPPFLAGS        = -std=gnu99 -Wall -Wextra -O2 -I$(top_srcdir)/src -I$(top_srcdir)/mingw
41
42 st_term_LDADD   =       libstlink.a
43 st_term_CPPFLAGS        = -std=gnu99 -Wall -Wextra -O2 -I$(top_srcdir)/src -I$(top_srcdir)/mingw
44
45 st_info_LDADD   =       libstlink.a
46 st_info_CPPFLAGS        = -std=gnu99 -Wall -Wextra -O2 -I$(top_srcdir)/src -I$(top_srcdir)/mingw
47
48
49 EXTRA_DIST = autogen.sh
50