X-Git-Url: http://sigrok.org/gitweb/?a=blobdiff_plain;f=Makefile.am;h=ab93285778034ffc6bbd0616d6d1087366863aac;hb=655b116cc102a2ada89e95fd3daa728aa78f10eb;hp=06832cae32d5703134f88ebfeb805d0584c5892e;hpb=127c9cec824721bf52e8951f330d1d5a16c1a9b0;p=libsigrok.git diff --git a/Makefile.am b/Makefile.am index 06832cae..ab932857 100644 --- a/Makefile.am +++ b/Makefile.am @@ -28,8 +28,14 @@ local_includes = -Iinclude -I$(srcdir)/include -I$(srcdir)/src -I. if BINDINGS_CXX local_includes += -Ibindings/cxx/include -I$(srcdir)/bindings/cxx/include -Ibindings/cxx endif +# Do not hard-code the firmware location on Windows. +if WIN32 +global_defs = +else +global_defs = -DFIRMWARE_DIR='"$(FIRMWARE_DIR)"' +endif # Ensure that local include directories are always searched first. -AM_CPPFLAGS = $(local_includes) -DFIRMWARE_DIR='"$(FIRMWARE_DIR)"' +AM_CPPFLAGS = $(local_includes) $(global_defs) # The tests CFLAGS are a superset of the libsigrok CFLAGS, and the # python bindings CFLAGS are a superset of the C++ bindings CFLAGS.