File: 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 (23 lines) | stat: -rw-r--r-- 497 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
ifdef TOPDIR

obj-m	:= zlib.o

zlib.o: zlib_inflate/zlib_inflate.o zlib_deflate/zlib_deflate.o
	$(LD) -r -o $@ $<

include $(TOPDIR)/Rules.make

else

LINUXDIR=/lib/modules/$(shell uname -r)/build

zlib.o:
	make -C $(LINUXDIR) EXTRA_CFLAGS="-I$(shell pwd)/../include" SUBDIRS=$(shell pwd)/zlib_inflate modules
	make -C $(LINUXDIR) EXTRA_CFLAGS="-I$(shell pwd)/../include" SUBDIRS=$(shell pwd)/zlib_deflate modules
	make -C $(LINUXDIR) SUBDIRS=$(shell pwd) modules

clean:
	rm -f *.o */*.o


endif