allow #include directives to use module name
[fw/openocd] / src / pld / Makefile.am
index 7fab855e0d19ce2ea7d67cde2810856308ea06f4..d99a89cdce662df6f6058eb5108f62c06812f2fe 100644 (file)
@@ -1,11 +1,12 @@
 AM_CPPFLAGS = \
+       -I$(top_srcdir)/src \
        -I$(top_srcdir)/src/server \
        -I$(top_srcdir)/src/helper \
        -I$(top_srcdir)/src/jtag
 
 METASOURCES = AUTO
-noinst_LIBRARIES = libpld.a
+noinst_LTLIBRARIES = libpld.la
 noinst_HEADERS = pld.h xilinx_bit.h virtex2.h
-libpld_a_SOURCES = pld.c xilinx_bit.c virtex2.c
+libpld_la_SOURCES = pld.c xilinx_bit.c virtex2.c
 
-MAINTAINERCLEANFILES = Makefile.in
+MAINTAINERCLEANFILES = $(srcdir)/Makefile.in