-
Notifications
You must be signed in to change notification settings - Fork 1
/
Imakefile
68 lines (55 loc) · 2.55 KB
/
Imakefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
# Imakefile for building within the X11 source tree.
# This Imakefile was automatically generated from Makefile.std.
#
# If you have problems building, you should read the README file and
# consider using Makefile.std.
#
# If you use gcc, you should read the README file and consider using
# Makefile.std.
SYSPATHFILE = $(XAPPLOADDIR)/Xloadimage
DEFINES = -DSYSPATHFILE=\"$(SYSPATHFILE)\"
DEPLIBS = $(DEPXLIB)
LOCAL_LIBRARIES = $(XLIB)
SYS_LIBRARIES = -lm
#ifdef HPArchitecture
CCOPTIONS = -Aa -D_HPUX_SOURCE
#endif
# Comment out either of the next two lines if you don't have TIFF or JPEG libs
#define HAS_TIFF
#define HAS_JPEG
#ifdef HAS_TIFF
TIFF_DEFS = -DHAS_TIFF -I/usr/local/include
TIFF_LIB = -L/usr/local/lib/tiff -ltiff
TIFF_SRC = tiff.c
TIFF_OBJ = tiff.o
#endif
#ifdef HAS_JPEG
JPEG_DEFS = -DHAS_JPEG -I/usr/local/include/jpeg
JPEG_LIB = -L/usr/local/lib/jpeg -ljpeg
JPEG_SRC = jpeg.c
JPEG_OBJ = jpeg.o
#endif
EXTRA_DEFINES = $(TIFF_DEFS) $(JPEG_DEFS)
LOCAL_LIBRARIES = $(TIFF_LIB) $(JPEG_LIB) $(XLIB)
SRCS = new.c niff.c value.c zio.c cmuwmraster.c faces.c fbm.c gif.c imagetypes.c img.c mac.c mcidas.c mc_tables.c pbm.c pcx.c pdsuncomp.c rle.c rlelib.c sunraster.c vff.c vicar.c xbitmap.c xpixmap.c xwd.c bright.c clip.c compress.c dither.c fill.c halftone.c merge.c reduce.c rotate.c smooth.c undither.c zoom.c config.c misc.c options.c root.c send.c window.c xloadimage.c $(TIFF_SRC) $(JPEG_SRC)
OBJS = new.o niff.o value.o zio.o cmuwmraster.o faces.o fbm.o gif.o imagetypes.o img.o mac.o mcidas.o mc_tables.o pbm.o pcx.o pdsuncomp.o rle.o rlelib.o sunraster.o vff.o vicar.o xbitmap.o xpixmap.o xwd.o bright.o clip.o compress.o dither.o fill.o halftone.o merge.o reduce.o rotate.o smooth.o undither.o zoom.o config.o misc.o options.o root.o send.o window.o xloadimage.o $(TIFF_OBJ) $(JPEG_OBJ)
AllTarget(xloadimage uufilter)
ComplexProgramTarget(xloadimage)
NormalProgramTarget(uufilter,uufilter.o,,,)
InstallProgram(uufilter,$(BINDIR))
InstallManPage(uufilter,$(MANDIR))
install:: $(SYSPATHFILE)
$(RM) $(BINDIR)/xview $(BINDIR)/xsetbg
cd $(BINDIR); $(LN) xloadimage xview; $(LN) xloadimage xsetbg
clean::
/bin/rm -f build.c
build.c:
./build-info
$(SYSPATHFILE):
@echo "*** Creating default $(SYSPATHFILE) since you"
@echo "*** don't have one. This file is used to set up default places"
@echo "*** and names to look for images. You probably want to edit"
@echo "*** it for your site. See the xloadimage manual page for"
@echo "*** details on the contents of this file."
cp xloadimagerc $(SYSPATHFILE)
chmod a+r $(SYSPATHFILE)