# ----------------------------------- # # This is the Makefile for EZ-Scroll. # # ----------------------------------- # # NX, NY, NZ defined? # ------------------- # If you wish to specify NX, NY, NZ (the number of grid points in each # direction) at compile time, then uncomment the following and set the values # to what you want. They need not all be set. Those that are set will be # ignored in task.dat. # NOPTION = -DNX=61 -DNY=61 -DNZ=61 # ------------------- # Choose the compiler # ------------------- # EZ-Scroll conforms to the ANSI C standard and *should* compile with any C # compiler. Use at least the -O2 compiler option, the others are optional # options. If you use warning options such as -Wall (which you should use if # you modify the code), then you may get some warnings. These are probably OK. # Compiler flags appropriate for the GNU C compiler # ------------------------------------------------- # CC = cc # CFLAGS = -O2 -Wall -ansi # CC = gcc #CFLAGS = -O2 -Wall -ansi -I/usr/X11R6/include #CFLAGS = -O2 -Wall -I/usr/X11R6/include # my gl.h uses // comments CFLAGS = -O0 -g -Wall -I/usr/X11R6/include -arch i386 # my gl.h uses // comments # ------------------------ # Set the linked libraries # ------------------------ # OpenGL with X. You may need to change the line below depending on # where libraries are found on your system. # ----------------------------------------------------------------- #LDFLAGS = -L/usr/X11R6/lib -lGL -lX11 -lXext -lm -ltiff #LOADLIBES = -lGL -lX11 -lXext -lm -ltiff # As advised by http://wiki.finkproject.org/index.php/Fink:Packaging:Preparing_for_10.5#OpenGL_Bug: LDFLAGS = -arch i386 -L/usr/X11R6/lib -lGL -lX11 -lXext -lm -Wl,-dylib_file,/System/Library/Frameworks/OpenGL.framework/Versions/A/Libraries/libGL.dylib:/System/Library/Frameworks/OpenGL.framework/Versions/A/Libraries/libGL.dylib -ltiff -L/usr/lib -lreadline # otherwise for no graphics # ------------------------- #LDFLAGS = -lm # ----------------------------------------------- # Probably you wont need to change anything below. # ------------------------------------------------ OBJ=bbxview.o ezgraph3d.o ezmarching.o .c.o : $(CC) -c $(CFLAGS) $(NOPTION) $*.c %.i: %.c $(CC) -E $(CFLAGS) $(NOPTION) $< | grep '[^ ]' | tee $@ | less bbxview: $(OBJ) $(CC) $(LDFLAGS) $(OBJ) -o $@ # Dependencies # ------------ bbxview.o : ezscroll.h ezpar.h ezbody.h Makefile ezgraph3d.o : ezscroll.h ezgraph3d.h ezmarching.h ezpar.h ezbody.h Makefile ezmarching.o : ezscroll.h ezgraph3d.h ezmarching.h Makefile clean: tidy rm -f core *~ .*~ rm -f *.log *.dvi *.aux tidy: rm -f ezscroll *.o