1ITOOLSDIR = .. 2 3ALL: lib workers 4CFLAGS = $(OPT) -I$(ITOOLSDIR)/include -I$(ITOOLSDIR) 5SOURCEC = error.c pprint.c getopts.c nreg.c 6SOURCEF = 7WSOURCEC = 8SOURCEH = 9OBJSC = error.o pprint.o getopts.o nreg.o 10WOBJS = 11OBJSF = 12LOCAL_INCLUDE = $(SOURCEH) 13LIBBASE = libpetscsystem 14DIRS = time 15 16example_progs: 17run_examples: 18test_progs: 19run_tests: 20 21# This is because I got sick of different examples and 22# changing makefiles for parallel and sequential code 23workers: fmain.c cmain.c 24 $(CC) -c $(CFLAGS) $(BASEOPT) fmain.c cmain.c 25 mv fmain.o $(LDIR)/fmain.o 26 mv cmain.o $(LDIR)/cmain.o 27 28example: example.c lib 29 $(CC) $(CFLAGS) $(BASEOPT) -o example example.c $(LIBNAME) 30 rm example.o 31 32tsort: tsort.c 33 $(CC) $(CFLAGS) $(BASEOPT) -o tsort tsort.c $(LIBNAME) 34 35maltest: maltest.c 36 $(CC) $(CFLAGS) $(BASEOPT) -o maltest maltest.c $(LIBNAME) 37 38sbtest: sbtest.c 39 $(CC) $(CFLAGS) $(BASEOPT) -o sbtest sbtest.c $(LIBNAME) 40 41farg: farg.f 42 $(FC) $(CFLAGS) $(BASEOPT) -o farg farg.f $(FLIB) $(LIBNAME) 43 44# IRIX requires -lfpe 45sn: sn.c lib 46 $(CC) $(CFLAGS) $(BASEOPT) -o sn sn.c $(LIBNAME) $(LDIR)tools.a -lm 47sn860: sn.c fsr860.s lib 48 $(CC) $(CFLAGS) $(BASEOPT) -o sn860 sn.c fsr860.s $(LIBNAME) $(LDIR)tools.a -lm 49 50 51 52