Browse Source

Fix building from a separate build directory.

Nick Mathewson 14 years ago
parent
commit
69c0147ea6
1 changed files with 2 additions and 3 deletions
  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