1# Makefile file for mxp - Mandelbrot Explorer 2 3# Compiler - uncomment for gcc 4# CC = gcc 5 6# Since this is a compute intensive program, be sure to use 7# compiler optimization. It makes a big difference. 8# For gcc on linux "-O2 -m486" works well. 9# OPT = -O2 -m486 10 11# If X is not installed in the standard places you will need to set the 12# following 2 defines. 13XLIBS = -L/usr/openwin/lib 14XINC = -I/usr/openwin/include 15 16# Specify where your Xpm installation directories are 17# If you have the XPM libraries uncomment and adjust the following lines 18# to use color icons. 19#XPM_DEF = -DXPM 20#XPM_INCLUDE = -I/usr/local/include 21#XPM_LIB = -L$(LIBDIR)/xpm -lXpm 22 23# If you are using FVWM 2.0 then the following must be set to 2 24SIZE_INC = 1 25 26# Specify install directory 27BINDIR = /usr/local/bin 28 29INCLUDES = $(XPM_INCLUDE) $(CPPFLAGS) -Ilug 30 31M_OBJS = mxp.o mandel.o colors.o menu.o file.o draw.o anim.o 32L_OBJS = lug/bitmap.o lug/encodgif.o lug/error.o lug/general.o lug/gif.o \ 33 lug/in_out.o lug/memory.o 34OBJS = $(M_OBJS) $(L_OBJS) 35 36mxp: $(OBJS) 37 $(CC) -o $@ $(OBJS) $(XPM_LIB) $(LDFLAGS) -lm -lXaw -lXt -lXmu -lX11 -lXdmcp -lXext 38 39$(OBJS): mxp.h 40 41.c.o: 42 $(CC) -c $(OPT) $(CFLAGS) $(XPM_DEF) -DRESIZE_INC=$(SIZE_INC) \ 43 $(INCLUDES) $*.c -o $*.o 44 45clean: 46 rm -f mxp 47 rm -f $(OBJS) 48 49install: mxp 50 cpset mxp $BINDIR 51