# # adapted from Makefile for Meschach # # Copyright (C) David Stewart & Zbigniew Leyk 1993 # Drew Parsons 2021 CC ?= gcc LIBS = -lm -lmeschach CFLAGS = -std=gnu17 -O3 -I/usr/include/meschach .c.o: $(CC) -c $(CFLAGS) $< clean: /bin/rm -f *.o core asx5213a.mat iotort.dat /bin/rm -f torture sptort ztorture memtort itertort mfuntort iotort alltorture: torture sptort ztorture memtort itertort mfuntort iotort torture:torture.o $(CC) $(CFLAGS) $(DEFS) -o torture torture.o $(LIBS) sptort:sptort.o $(CC) $(CFLAGS) $(DEFS) -o sptort sptort.o $(LIBS) memtort: memtort.o $(CC) $(CFLAGS) $(DEFS) -o memtort memtort.o $(LIBS) ztorture:ztorture.o $(CC) $(CFLAGS) $(DEFS) -o ztorture ztorture.o $(LIBS) itertort: itertort.o $(CC) $(CFLAGS) $(DEFS) -o itertort itertort.o $(LIBS) iotort: iotort.o $(CC) $(CFLAGS) $(DEFS) -o iotort iotort.o $(LIBS) mfuntort: mfuntort.o $(CC) $(CFLAGS) $(DEFS) -o mfuntort mfuntort.o $(LIBS) tstmove: tstmove.o $(CC) $(CFLAGS) $(DEFS) -o tstmove tstmove.o $(LIBS) tstpxvec: tstpxvec.o $(CC) $(CFLAGS) $(DEFS) -o tstpxvec tstpxvec.o $(LIBS)