# Makefile for compiling Cloudy on a gcc platform # Peter van Hoof, Royal Observatory of Belgium CC = gcc # use this on AMD64/EM64T platforms CFLAGS = -ansi -O3 -Wall LDFLAGS = # use this on other platforms (especially Sun Ultrasparc) #CFLAGS = -ansi -O3 -fno-math-errno -funsafe-math-optimizations -Wall #LDFLAGS = -funsafe-math-optimizations objects := $(patsubst %.c,%.o,$(wildcard *.c)) cloudy.exe : $(objects) $(CC) $(LDFLAGS) -o cloudy.exe $(objects) -lm clean : rm -f *.o rm -f cloudy.exe include Makefile.dep