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