X-Git-Url: https://review.openocd.org/gitweb?p=openocd.git;a=blobdiff_plain;f=src%2FMakefile.am;h=77ae5ae2e771e0975950ddae0942bd913e94aeca;hp=c7c9e5ed2c3527910ff94d79f15bcdc1d0a734fa;hb=6e95f16d0a7d2b07caa1340b3bc3c2309ea12043;hpb=dd86b54e6e03a0682eb8ed41006ffdfd837ffae0 diff --git a/src/Makefile.am b/src/Makefile.am index c7c9e5ed2c..77ae5ae2e7 100644 --- a/src/Makefile.am +++ b/src/Makefile.am @@ -9,10 +9,16 @@ else MAINFILE = main.c endif -openocd_SOURCES = $(MAINFILE) +openocd_SOURCES = $(MAINFILE) openocd_LDADD = libopenocd.la -libopenocd_la_SOURCES = openocd.c +libopenocd_la_SOURCES = \ + hello.c \ + openocd.c + +noinst_HEADERS = \ + openocd.h + # set the include path found by configure AM_CPPFLAGS = \ @@ -28,20 +34,22 @@ AM_CPPFLAGS = \ libopenocd_la_CPPFLAGS = -DPKGBLDDATE=\"`date +%F-%R`\" +# banner output includes RELSTR appended to $VERSION from the configure script +# guess-rev.sh returns either a repository version ID or "-snapshot" if RELEASE -libopenocd_la_CPPFLAGS += -DRELSTR=\"Release\" -DPKGBLDREV=\"\" +libopenocd_la_CPPFLAGS += -DRELSTR=\"\" else -libopenocd_la_CPPFLAGS += -DRELSTR=\"svn:\" -DPKGBLDREV=\"`$(top_srcdir)/guess-rev.sh $(top_srcdir)`\" +libopenocd_la_CPPFLAGS += -DRELSTR=\"`$(top_srcdir)/guess-rev.sh $(top_srcdir)`\" endif # add default CPPFLAGS libopenocd_la_CPPFLAGS += $(AM_CPPFLAGS) $(CPPFLAGS) # the library search path. -libopenocd_la_LDFLAGS = $(all_libraries) +libopenocd_la_LDFLAGS = $(all_libraries) if IS_MINGW -MINGWLDADD = -lwsock32 +MINGWLDADD = -lws2_32 else MINGWLDADD = endif @@ -89,4 +97,14 @@ if HTTPD libopenocd_la_LIBADD += -lmicrohttpd endif -MAINTAINERCLEANFILES = Makefile.in +MAINTAINERCLEANFILES = $(srcdir)/Makefile.in + +# The "quick" target builds executables & reinstalls the executables +# Primary use: developer types to quicken the edit/compile/debug +# cycle. by not requiring a "full build and full install". Note the +# assumption is: You are only rebuilding the EXE.... and everything +# else is/was previously installed. +# +# use at your own risk +quick: all install-binPROGRAMS +