include ../../Makeincl
LIBS = -l stdc++

all: testgyro.hex

ppwa.o: ppwa.s
gyro.o: gyro.cc gyro.h
testgyro.o: testgyro.cc

clean:
	-$(RM)  *.o *.hex *.elf core

testgyro.hex: testgyro.o gyro.o ppwa.o
	$(CC68) $(CFLAGS) -o $@ testgyro.o gyro.o ppwa.o $(LIBS)

%.hex:	%.c
	$(CC68) $(CFLAGS) -o $@ $< $(LIBS)

%.hex:	%.cc
	$(CC68) $(CFLAGS) -o $@ $< $(LIBS)

%.o:	%.cc
	$(CC68) -c $(CFLAGS) -o $@ $<

%.hex:  %.s
	$(AS68) $(AFLAGS) -o $@ $< $(LIBS)

%.o:	%.s
	$(AS68) -c $(AFLAGS) -o $@ $<

