Makefile
上传用户:sy_wanhua
上传日期:2013-07-25
资源大小:3048k
文件大小:2k
- # Makefile for Quicknet Linux Drivers
- # Version 0.3.4 12/20/99
- #
- # This program is free software; you can redistribute it and/or
- # modify it under the terms of the GNU General Public License
- # as published by the Free Software Foundation; either version
- # 2 of the License, or (at your option) any later version.
- #
- # Authors: Greg Herlein <gherlein@quicknet.net>
- # Ed Okerson <eokerson@quicknet.net>
- #
- VER:=$(shell uname -r)
- #
- # Comment/uncomment the following line to enable/disable debugging
- #DEBUG = y
- #
- # Change it here or specify it on the "make" commandline
- INCLUDEDIR = /usr/include
- #
- ifeq ($(DEBUG),y)
- DEBFLAGS = -O -g -DIXJ_DEBUG
- else
- DEBFLAGS = -O2
- endif
- #
- CFLAGS = -D__KERNEL__ -DMODULE -Wall $(DEBFLAGS) -I$(INCLUDEDIR)
- #
- all: ixj-pnp
- # @echo -e "nnChoose either "make ixj-pnp" (for isapnp support) nor "make ixj-manual (manual card configuration required)neither will install the modules after they are builtnn"
- headers-install:
- install -c telephony.h /usr/src/linux/include/linux/
- install -c ixjuser.h /usr/src/linux/include/linux/
- # ixj-pnp: headers-install phonedev.o isapnp ixj-w-isapnp isapnp install
- ixj-pnp: phonedev.o isapnp ixj-w-isapnp isapnp install
- ixj-manual: headers-install phonedev.o ixj-wo-isapnp install
- ixj-w-isapnp : ixj.c ixj.h ixjuser.h
- ${CC} ${CFLAGS} -o ixj.o -c ixj.c -DCONFIG_ISAPNP
- ixj-wo-isapnp : ixj.c ixj.h ixjuser.h
- ${CC} ${CFLAGS} -o ixj.o -c ixj.c
- phonedev.o: phonedev.c phonedev.h
- ${CC} ${CFLAGS} -DEXPORT_SYMTAB -o $@ -c phonedev.c
- isapnp : isapnp/isapnp.o
- ( cd isapnp ; ${MAKE} ; ${MAKE} install )
- install:
- (./phone_dev_create)
- mkdir -p /lib/modules/$(VER)/misc /lib/modules/misc
- install -c ixj.o /lib/modules/$(VER)/misc
- install -c phonedev.o /lib/modules/$(VER)/misc
- depmod -av
- clean:
- rm -f *.o *~ core