瀏覽代碼

Fix building from a separate build directory.

Nick Mathewson 16 年之前
父節點
當前提交
69c0147ea6
共有 1 個文件被更改,包括 2 次插入3 次删除
  1. 2 3
      src/test/Makefile.am

+ 2 - 3
src/test/Makefile.am

@@ -4,9 +4,8 @@ noinst_PROGRAMS = test
 
 AM_CPPFLAGS = -DSHARE_DATADIR="\"$(datadir)\"" \
         -DLOCALSTATEDIR="\"$(localstatedir)\"" \
-        -DBINDIR="\"$(bindir)\""
-
-AM_CFLAGS = -I../or
+        -DBINDIR="\"$(bindir)\""	       \
+	-I"$(top_srcdir)/src/or"
 
 # -L flags need to go in LDFLAGS. -l flags need to go in LDADD.
 # This seems to matter nowhere but on windows, but I assure you that it