projects
/
fw
/
stlink
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Changes for compiling with mingw32
[fw/stlink]
/
Makefile.am
diff --git
a/Makefile.am
b/Makefile.am
index 9aeec4a00f609895d748bd0a4fa063bf785ae14c..28e11d5e59a6e1589aad4b7c4bf75b194331c75a 100644
(file)
--- a/
Makefile.am
+++ b/
Makefile.am
@@
-1,20
+1,37
@@
# Makefile.am -- Process this file with automake to produce Makefile.in
# Makefile.am -- Process this file with automake to produce Makefile.in
+
+AUTOMAKE_OPTIONS = subdir-objects
+
bin_PROGRAMS = st-flash st-util
bin_PROGRAMS = st-flash st-util
-noinst_L
TLIBRARIES = libstlink.l
a
+noinst_L
IBRARIES = libstlink.
a
st_flash_SOURCES = flash/main.c
st_util_SOURCES = gdbserver/gdb-remote.c gdbserver/gdb-remote.h gdbserver/gdb-server.c
st_flash_SOURCES = flash/main.c
st_util_SOURCES = gdbserver/gdb-remote.c gdbserver/gdb-remote.h gdbserver/gdb-server.c
-libstlink_la_SOURCES = src/stlink-common.c src/stlink-usb.c src/stlink-sg.c src/uglylogging.c \
- src/stlink-common.h src/stlink-usb.h src/stlink-sg.h src/uglylogging.h
+CFILES = \
+ src/stlink-common.c \
+ src/stlink-usb.c \
+ src/stlink-sg.c \
+ src/uglylogging.c
+
+HFILES = \
+ src/stlink-common.h \
+ src/stlink-usb.h \
+ src/stlink-sg.h \
+ src/uglylogging.h \
+ src/mmap.h
-libstlink_
la_CPPFLAGS = -std=gnu99 -Wall -Wextra -O2
+libstlink_
a_SOURCES = $(CFILES) $(HFILES)
-st_flash_LDADD = libstlink.la
+libstlink_a_CPPFLAGS = -std=gnu99 -Wall -Wextra -O2
+libstlink_a_LIBADD = $(LIBOBJS)
+
+st_flash_LDADD = libstlink.a
st_flash_CPPFLAGS = -std=gnu99 -Wall -Wextra -O2 -I$(top_srcdir)/src
st_flash_CPPFLAGS = -std=gnu99 -Wall -Wextra -O2 -I$(top_srcdir)/src
-st_util_LDADD = libstlink.
l
a
+st_util_LDADD = libstlink.a
st_util_CPPFLAGS = -std=gnu99 -Wall -Wextra -O2 -I$(top_srcdir)/src
EXTRA_DIST = autogen.sh
st_util_CPPFLAGS = -std=gnu99 -Wall -Wextra -O2 -I$(top_srcdir)/src
EXTRA_DIST = autogen.sh
+