# Makefile.os2: compile zimg under DOS by DJGPP # Prepared for zimg 4.2.4, 20 November 2000 by Levente Novák using # Makefile.os2 by Petr Mikulik # # ****** Begin of configuration section ****** # GD_DIR = ../gd1.83 # directory with gd header files and (lib)gd.a EDF = -DENABLE_EDF=1 # include support for ESRF data format? # # ****** End of configuration section ****** # PROGRAMS = zimg.exe SOURCES = cmdln.c color.c contours.c getcolor.c getopt.c \ getopt1.c img.c misc.c read.c smooth.c statistics.c zimg.c \ zimg.h getopt.h OBJECTS = cmdln.o color.o contours.o getcolor.o getopt.o getopt1.o \ img.o misc.o read.o smooth.o statistics.o zimg.o CC = gcc # CFLAGS = -g CFLAGS = -s -O2 DEFS = -DHAVE_CONFIG_H $(EDF) -I. INCLUDES = -I$(GD_DIR) LDFLAGS = gd_lib = -L$(GD_DIR) -L../lpng108 -L../zlib -L../jpeg-6b -lgd png_libs = -lpng -lz jpeg_lib = -ljpeg LIBS = $(gd_lib) $(jpeg_lib) $(png_libs) -lm COMPILE = $(CC) $(CFLAGS) $(DEFS) $(INCLUDES) LINK = $(CC) $(CFLAGS) $(LDFLAGS) -o $@ .SUFFIXES: .SUFFIXES: .c .o ### all: zimg.exe .c.o: $(COMPILE) -c $< zimg.exe: $(OBJECTS) $(LINK) $(OBJECTS) $(LIBS) clean: rm *.o zimg.exe config.h: config.dj2 copy config.dj2 config.h cmdln.o: cmdln.c zimg.h config.h version.h getopt.h color.o: color.c zimg.h config.h version.h getopt.h contours.o: contours.c zimg.h config.h version.h getopt.h getcolor.o: getcolor.c config.h zimg.h version.h getopt.h getopt.o: getopt.c config.h getopt1.o: getopt1.c config.h getopt.h img.o: img.c zimg.h config.h version.h getopt.h misc.o: misc.c zimg.h config.h version.h getopt.h read.o: read.c zimg.h config.h version.h getopt.h smooth.o: smooth.c zimg.h config.h version.h getopt.h statistics.o: statistics.c zimg.h config.h version.h getopt.h zimg.o: zimg.c zimg.h config.h version.h getopt.h