5. Solaris SDK
# Makefile to build the stfp driver and the bc63xPCIcfg program
#
DRVFLAGS = -I. -m64 -xarch=sparc -xcode=abs32 -xregs=no%appl -xO3
APPFLAGS = -I. -m32 -xO3
DRIVER
= stfp
PCIDEMO
= bc63xPCIcfg
OBJS
= stfp.o bc635pci.o
.PHONY: all
all: $(DRIVER) $(PCIDEMO)
.PHONY: clean
clean:
@rm -f $(OBJS)
@rm -f $(DRIVER)
@rm -f $(PCIDEMO)
$(DRIVER): stfp.o
ld -r -o $@ $+
$(PCIDEMO): bc635pci.o
$(CC) -o $@ $+
stfp.o: stfp.c
$(CC) -D_KERNEL -c $(DRVFLAGS) -o $@ $<
bc635pci.o: bc635pci.c
$(CC) -c $(APPFLAGS) -o $@ $<
- 198 -
Artisan Technology Group - Quality Instrumentation ... Guaranteed | (888) 88-SOURCE | www.artisantg.com