Skip to content

Instantly share code, notes, and snippets.

@phelrine
Created May 9, 2011 12:17
Show Gist options
  • Save phelrine/962420 to your computer and use it in GitHub Desktop.
Save phelrine/962420 to your computer and use it in GitHub Desktop.
randlib
CC = g++
OBJS = linpack.o com.o randlib.o
.PHONY: all clean
all: librandlib.a
librandlib.a: $(OBJS)
ar cr librandlib.a $(OBJS)
ranlib librandlib.a
.c.o:
$(CC) -O2 -c $<
clean:
$(RM) librandlib.a *.o
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment