IFLAGS= -I../include
CFLAGS= $(IFLAGS) -X20 -X29 -X35 -X93 -X167 -X133 -Z14 -Z136 -Dextern=
FOBJS = fcctrl.obj fio.obj fmath.obj frecio.obj fstr.obj
#This are the same object files, ordered for a library (see order)
#and with commas (so oasys stuff will accept them)
FFOBJS =fio,fmath,frecio,fcctrl,fstr

order:
	gcc -c $(IFLAGS) *.c >outs ; lorder *.o |tsort >order ; rm *.o
.SUFFIXES: .olb .obj .c
libf.olb: $(FOBJS)
	/usr/gww/oasys/oasys/lib68.t libf=$(FFOBJS)
	rm $(FOBJS) *.asm
	mv libf.olb ..
.c.obj:
	gcc -S $(CFLAGS) $*.c
	/usr/gww/oasys/oasys/a20.t $*=$*
