1# makefile for gcc 2 3# Uncomment the following if you need a specific compiler. 4#CC=gcc 5 6CFLAGS:=-O2 -Wall 7LDFLAGS:=-s 8LIBS:=-lm 9 10all: model lmodel corr 11 12corr: corr.c 13 $(CC) $(CFLAGS) $(LDFLAGS) -o $@ $< $(LIBS) 14 15model: model.c 16 $(CC) $(CFLAGS) $(LDFLAGS) -o $@ $< $(LIBS) 17 18lmodel: model.c 19 $(CC) $(CFLAGS) -DLSAMPL $(LDFLAGS) -o $@ $< $(LIBS) 20 21clean: 22 rm -f model lmodel corr *~ A B 23