#
# Kernel includes.  Please avoid
# using '/usr/include' unless all
# other options exhausted.
#
KINCLUDES=/usr/src/linux/include
#KINCLUDES=/spare/cvs/linux_2_3/include

#
# uncomment line below if you have SMP
#
#SMPFLAGS=	-D__SMP__ -DCONFIG_SMP=1

#
# Unless you have a 386/486, you shouldn't need
# to change anything below here...
#

CPUFLAGS=	-DCPU=586 -march=i586

MODULE=		PL2302

CC=		gcc

KERNFLAGS=	\
	-D__KERNEL__ -I$(KINCLUDES) $(CPUFLAGS) $(SMPFLAGS) \
	-Wall -Wstrict-prototypes \
	-O2 -fomit-frame-pointer -fno-strict-aliasing -pipe \
	-DMODULE

CFLAGS=		-O2 -fomit-frame-pointer $(KERNFLAGS)

default::	all

all::		$(MODULE).o

$(MODULE).o:	$(MODULE).c
	$(CC) $(CFLAGS) -c $<

clean:
	rm -f *.o