forked from stlink-org/stlink
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile.am
56 lines (41 loc) · 1.49 KB
/
Makefile.am
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
# Makefile.am -- Process this file with automake to produce Makefile.in
SUBDIRS = . $(STLINK_HAS_GUI)
AUTOMAKE_OPTIONS = subdir-objects
if MINGW
bin_PROGRAMS = st-flash st-util st-info
else
bin_PROGRAMS = st-flash st-util st-term st-info
endif
noinst_LIBRARIES = libstlink.a
st_flash_SOURCES = src/tools/flash.c
st_term_SOURCES = src/tools/term.c
st_info_SOURCES = src/tools/info.c
st_util_SOURCES = src/gdbserver/gdb-remote.c src/gdbserver/gdb-remote.h src/gdbserver/gdb-server.c src/mingw/mingw.c src/mingw/mingw.h
CFILES = \
src/chipid.c \
src/common.c \
src/usb.c \
src/sg.c \
src/logging.c
if !MINGW
CFILES += src/tools/term.c
endif
HFILES = \
include/stlink.h \
include/stlink/chipid.h \
include/stlink/usb.h \
include/stlink/sg.h \
include/stlink/logging.h \
include/stlink/mmap.h
libstlink_a_SOURCES = $(CFILES) $(HFILES)
libstlink_a_LIBADD = $(LIBOBJS)
libstlink_a_CPPFLAGS = -std=gnu99 -Wall -Wextra -O2 -I$(top_srcdir)/include
st_flash_LDADD = libstlink.a
st_flash_CPPFLAGS = -std=gnu99 -Wall -Wextra -O2 -I$(top_srcdir)/include -I$(top_srcdir)/src/mingw
st_util_LDADD = libstlink.a
st_util_CPPFLAGS = -std=gnu99 -Wall -Wextra -O2 -I$(top_srcdir)/include -I$(top_srcdir)/src/mingw
st_term_LDADD = libstlink.a
st_term_CPPFLAGS = -std=gnu99 -Wall -Wextra -O2 -I$(top_srcdir)/include -I$(top_srcdir)/src/mingw
st_info_LDADD = libstlink.a
st_info_CPPFLAGS = -std=gnu99 -Wall -Wextra -O2 -I$(top_srcdir)/include -I$(top_srcdir)/src/mingw
EXTRA_DIST = autogen.sh