-PTVIEWER_SOURCES = viewer.c jpeg.c panolib.c
+PTVIEWER_SOURCES = viewer.c jpeg.c panolib.c utils_math.c utils_imgage.c
X11_INC_DIR=-I/usr/X11R6/include
X11_LIB_DIR=-L/usr/X11R6/lib
X11_LIB_NAME=-lX11
-CC=cc
+CC = gcc-4.2
+CFLAGS = -Wall -Werror -O0 -g
+#CFLAGS = -Wall -Werror -O0 -g `Wand-config --cflags`
+LDFLAGS = `Wand-config --ldflags`
# define BIGENDIAN=1 for Linuxppc
# CFLAGS= -DBIGENDIAN=1
-OBJS = viewer.o jpeg.o panolib.o
+OBJS = viewer.o jpeg.o panolib.o utils_math.o utils_image.c
-LIBS=$(X11_LIB_DIR) $(X11_LIB_NAME) -ljpeg -lm
+LIBS=$(X11_LIB_DIR) $(X11_LIB_NAME) -ljpeg -lm `Wand-config --libs`
.c.o: $(PTVIEWER_SOURCES)
$(CC) -O -c $(CFLAGS) $*.c
PTViewer: $(OBJS)
- $(CC) -o PTViewer $(CFLAGS) $(OBJS) $(LIBS)
+ $(CC) -o PTViewer $(CFLAGS) $(OBJS) $(LDFLAGS) $(LIBS)