KERNEL=/usr/src/mips/linux/src/kernel
INCLUDE=$(KERNEL)/include
CFLAGS=-O2 -DMODULE -D__KERNEL__ -DEXPORT_SYMTAB
CFLAGS += -fomit-frame-pointer -fno-strict-aliasing -fno-common -mlong-calls
CFLAGS += -G 0 -mno-abicalls -fno-pic -mcpu=sb1 -mips2 -Wa,--trap -pipe
all: ldt.o bcm-ldt.o

%.o: %.c
	mips-linux-gcc -I$(INCLUDE) $(CFLAGS) -c $< 

clean:
	rm -f ldt.o bcm-ldt.o

