# # Copyright (C) 1998 David A. Hinds -- dahinds@users.sourceforge.net # # Makefile 1.7 2000/06/12 21:32:03 # # Include site dependent options and kernel configuration include ../config.mk # Don't remove "-O3" or bad things will happen! CFLAGS = -O3 -Wall -Wstrict-prototypes -pipe CPPFLAGS += $(PCDEBUG) -D__KERNEL__ -DMODULE CC += $(AFLAGS) $(KFLAGS) XFLAGS = $(CFLAGS) $(CPPFLAGS) $(MFLAG) MODULES = netwave_cs.o wavelan_cs.o ray_cs.o wvlan_cs.o airo_cs.o airo.o SRCS = netwave_cs.c wavelan_cs.c ray_cs.c airo_cs.c airo.c \ wvlan_cs.c wvlan_hcf.c wvlan_hcfio.c \ all: $(MODULES) wvlan_hcf.o wvlan_hcfio.o: %.o: %.c $(CC) -MD -c $(XFLAGS) $< @mkdir -p .depfiles ; mv $*.d .depfiles wvlan_cs.o: wvlan_cs.c wvlan_hcf.o wvlan_hcfio.o $(CC) -c -MD $(CFLAGS) $(CPPFLAGS) $< -o .$@ @mkdir -p .depfiles ; mv $*.d .depfiles $(LD) -r -o $@ .$@ wvlan_hcf.o wvlan_hcfio.o rm -f .$@ ; chmod -x $@ clean: rm -f core core.* *.o .*.o *.s *.a *~ .depend .depfiles/*.d install: $(MODULES) @mkdir -p $(PREFIX)$(MODDIR)/pcmcia cp $(MODULES) $(PREFIX)$(MODDIR)/pcmcia include ../rules.mk