Enabled VPATH feature: changed nearly all Makefiles (149 files).
[fw/sdcc] / packihx / Makefile.in
index a0a15e24781837bce81c3c9b79b685dd3e869b2f..137a7d634211de8ad30d1e74fe56f3d8331bcb7a 100644 (file)
@@ -1,6 +1,9 @@
 PRJDIR          = ..
+VPATH           = @srcdir@
+srcdir          = @srcdir@
+top_builddir    = @top_builddir@
 
-include $(PRJDIR)/Makefile.common
+include $(PRJDIR)/$(top_builddir)Makefile.common
 
 CFLAGS          += -Wall
 
@@ -8,7 +11,7 @@ OBJECTS        = packihx.o
 
 SOURCES                = $(patsubst %.o,%.c,$(OBJECTS))
 
-TARGET         = $(PRJDIR)/bin/packihx$(EXEEXT)
+TARGET         = $(PRJDIR)/$(top_builddir)bin/packihx$(EXEEXT)
 
 all: $(TARGET)
 
@@ -50,4 +53,4 @@ $(TARGET): $(OBJECTS)
 
 checkconf:
 
-include clean.mk
+include $(srcdir)/clean.mk