File: Imakefile

package info (click to toggle)
pixmap 2.6pl4-4
  • links: PTS
  • area: main
  • in suites: hamm
  • size: 784 kB
  • ctags: 1,560
  • sloc: ansic: 12,701; makefile: 862
file content (102 lines) | stat: -rw-r--r-- 2,678 bytes parent folder | download | duplicates (3)
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
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
#ifdef BandAidCompiler
#include BandAidCompiler
#endif

XCOMM
XCOMM  Author:    Lionel Mallet, Simulog 
XCOMM  Created:   April 20, 1991.
XCOMM

XCOMM CDEBUGFLAGS=-g

XCOMM def/undef USE_MOTIF there if you want Pixmap to use Motif or not.
#undef USE_MOTIF
#ifdef HPArchitecture
CCOPTIONS = -Aa -D_HPUX_SOURCE -DNO_EDITRES
#if ProjectX > 4
MOTIFVER = Motif1.2
R5EXT    =
#else
MOTIFVER = Motif1.1
R5EXT    = -I.
#endif
#endif

XCOMM Where you have rgb.txt
RGBTXT = $(LIBDIR)/rgb.txt

XCOMM LUCS extra variable for where bitmaps go
PIXMAPDIR = $(LIBDIR)/Pixmap

XCOMM Specify here your Xpm installation directories
        XPM_INCLUDEDIR = /usr/X11R6/include/X11
        XPM_LIBDIR = /usr/X11R6/lib
        EXTRA_INCLUDES = $(R5EXT) -I. -I.. -I$(XPM_INCLUDEDIR) -I/usr/include/$(MOTIFVER)

#ifdef USE_MOTIF
XCOMM Motif configuration
  LOCAL_DEFINES = $(IEEE_DEFS) $(SIGNAL_DEFINES) -D_NO_PROTO
LOCAL_LIBRARIES = -L$(XPM_LIBDIR) -lXpm -L/usr/lib/$(MOTIFVER) -lXm $(XMULIB) $(XTOOLLIB) $(XLIB)
        BITMAPS = MDown MFlipHoriz MFlipVert MFold  MLeft MRight MRotateLeft \
                  MRotateRight Stipple MUp
#else
XCOMM Athena configuration
  LOCAL_DEFINES = $(IEEE_DEFS) $(SIGNAL_DEFINES) -DUSE_ATHENA
        DEPLIBS = XawClientDepLibs
LOCAL_LIBRARIES =  -L$(XPM_LIBDIR) -lXpm -LSelFile -lXgnu XawClientLibs
        BITMAPS = Down FlipHoriz FlipVert Fold  Left Right RotateLeft \
                  RotateRight Stipple Up Term Excl

#define IHaveSubdirs
#define PassCDebugFlags 'CC=$(CC)' 'CFLAGS=$(CFLAGS)' 

        SUBDIRS = SelFile
        DEPLIBS = Xgnu

#endif

  SYS_LIBRARIES = -lm
           SRCS = PixEdit.c Pixmap.c Dialog.c 
           OBJS = PixEdit.o Pixmap.o Dialog.o 

#if ProjectX < 5
        DEFINES = $(LOCAL_DEFINES) -DXPointer="char *" \
			-DAPPDEFDIR=\"$(XAPPLOADDIR)\" \
			-DRGBF=\"$(RGBTXT)\" -DNO_EDITRES
#else
        DEFINES = $(LOCAL_DEFINES) -DAPPDEFDIR=\"$(XAPPLOADDIR)\" \
			-DRGBF=\"$(RGBTXT)\"
#endif

ComplexProgramTarget(pixmap)
InstallAppDefaults(Pixmap)
MakeDirectories(install, $(PIXMAPDIR))
InstallMultipleFlags($(BITMAPS), $(PIXMAPDIR), $(INSTDATFLAGS))

AllTarget(dotpixmap)

all:: Pixmap.ad

clean:: Pixmap.ad
	$(RM) Pixmap.ad

#ifdef USE_MOTIF
Pixmap.ad: MPixmap.ad
	@echo Pixmap compiled with Motif.
	@sed -e "s#@PIXMAPDIR@#$(PIXMAPDIR)/#g" <MPixmap.ad >Pixmap.ad
#else
NamedMakeSubdirs(Xgnu, SelFile)

Pixmap.ad: APixmap.ad
	@echo Pixmap compiled with Athena.
	@sed -e "s#@PIXMAPDIR@#$(PIXMAPDIR)/#g" <APixmap.ad >Pixmap.ad
#endif

dotpixmap: $(RGBTXT)
	awk 'NF == 4 && $$4 !~ /[Gg]rey/ && $$4 !~ /[0-9]/ {print $$4}' $(RGBTXT) > dotpixmap

doc:	Pixmap.tex
	latex Pixmap.tex
	latex Pixmap.tex
	dvips -o Pixmap.ps Pixmap.dvi