diff --git a/.gitignore b/.gitignore
index 33dd7cc55e0fe72a694e5f03f71f91f3f92942b1..881e30629c3df1de78a1046c89b5475df41a8f3d 100644
--- a/.gitignore
+++ b/.gitignore
@@ -18,6 +18,8 @@
 *.moduleinfo
 *.makeopts
 *.makedeps
+aclocal.m4
+autom4te.cache
 makeopts
 .lastclean
 config.log
diff --git a/channels/h323/.gitignore b/channels/h323/.gitignore
new file mode 100644
index 0000000000000000000000000000000000000000..f3c7a7c5da68804a1bdf391127ba34aed33c3cca
--- /dev/null
+++ b/channels/h323/.gitignore
@@ -0,0 +1 @@
+Makefile
diff --git a/res/pjproject/.gitignore b/res/pjproject/.gitignore
new file mode 100644
index 0000000000000000000000000000000000000000..7c42f88d0635c94ac70a4b07c9918ce47dc52c13
--- /dev/null
+++ b/res/pjproject/.gitignore
@@ -0,0 +1,14 @@
+build.mak
+build/cc-auto.mak
+build/os-auto.mak
+pjlib-util/build/os-auto.mak
+pjlib/build/os-auto.mak
+pjlib/include/pj/compat/m_auto.h
+pjlib/include/pj/compat/os_auto.h
+pjmedia/build/os-auto.mak
+pjmedia/include/pjmedia-codec/config_auto.h
+pjmedia/include/pjmedia/config_auto.h
+pjsip/build/os-auto.mak
+pjsip/include/pjsip/sip_autoconf.h
+third_party/build/os-auto.mak
+third_party/build/portaudio/os-auto.mak