# # Description: # Makefile for FASTBUS Standard Routines Library for SFI # # #Check Operating system we are using ifndef OSTYPE OSTYPE := $(subst -,_,$(shell uname)) endif CC = gcc AR = ar RANLIB = ranlib DEFS = LIBDIR = $(CODA)/$(OSTYPE)/lib CFLAGS = -g -fPIC $(DEFS) INCS = -I. LIBS = libmc2coda.a OBJS = mc2coda.o FILES = mc2coda_modules.c all: libmc2coda.so libmc2coda.a test_mc2coda .c.o: rm -f $@ $(CC) -c $(CFLAGS) $< libmc2coda.a: $(OBJS) $(AR) ruv $(LIBS) $(OBJS) $(RANLIB) $(LIBS) libmc2coda.so: $(CC) -fpic -shared $(CFLAGS) $(INCS) -o $@ mc2coda.c test_mc2coda: test_mc2coda.c libmc2coda.so $(CC) $(CFLAGS) $(INCS) -o $@ test_mc2coda.c -L. -lmc2coda clean: rm -f *.o libmc2coda.so libmc2coda.a test_mc2coda