File: patch-Makefile

package info (click to toggle)
mtd 20050122-2
  • links: PTS
  • area: main
  • in suites: sarge
  • size: 6,244 kB
  • ctags: 9,869
  • sloc: ansic: 97,013; asm: 1,055; sh: 558; makefile: 356; cpp: 68
file content (18 lines) | stat: -rw-r--r-- 464 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
--- linux.org/lib/Makefile	Tue Sep 18 00:31:15 2001
+++ linux.rmk/lib/Makefile	Tue Nov 26 21:28:44 2002
@@ -19,4 +19,15 @@
   obj-y += dec_and_lock.o
 endif
 
+ifeq ($(CONFIG_JFFS2_FS),y)
+CONFIG_ZLIB_INFLATE := y
+CONFIG_ZLIB_DEFLATE := y
+endif
+
+subdir-$(CONFIG_ZLIB_INFLATE) += zlib_inflate
+subdir-$(CONFIG_ZLIB_DEFLATE) += zlib_deflate
+
+# Include the subdirs, if necessary.
+obj-y += $(join $(subdir-y),$(subdir-y:%=/%.o))
+
 include $(TOPDIR)/Rules.make