File: Imakefile.xxx

package info (click to toggle)
libforms1 1.0-7
  • links: PTS
  • area: main
  • in suites: etch, etch-m68k
  • size: 6,648 kB
  • ctags: 14,351
  • sloc: ansic: 90,441; makefile: 9,902; sh: 8
file content (207 lines) | stat: -rw-r--r-- 3,973 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
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
#ifndef FormsLibDir
#define FormsLibDir $(USRLIBDIR)
#endif
#ifndef FormsBinDir
#define FormsBinDir $(BINDIR)
#endif
#ifndef FormsManDir
#define FormsManDir $(MANDIR)
#endif
#ifndef FormsIncDir
#define FormsIncDir $(BUILDINCTOP)
#endif

FORMSLIBDIR	= FormsLibDir
FORMSBINDIR	= FormsBinDir
FORMSMANDIR	= FormsManDir
FORMSINCDIR	= FormsIncDir

FORMSLIB	= -lforms
INCLUDES	= -I$(BUILDINCDIR) -I$(FORMSINCDIR)
DEPLIBS		= $(DEPXTOOLLIB) $(DEPXLIB)

#ifdef Win32Architecture
LOCAL_LIBRARIES = ../lib/forms.lib $(XTOOLLIB) $(XLIB)
#else
LOCAL_LIBRARIES = -L../lib -L$(FORMSLIBDIR) $(FORMSLIB) $(XTOOLLIB) $(XLIB)
#endif

XCOMM try hard to set things so we'll find the shared lib once installed
LD_RUN_PATH	= $(USRLIBDIR):$(FORMSLIBDIR)
USRLIBDIRPATH	= $(USRLIBDIR):$(FORMSLIBDIR)

#if ProjectX < 603
# ifdef HPArchitecture
EXTRA_LOAD_FLAGS = -Wl,+s,+b,$(USRLIBDIRPATH)
# endif
# if defined(SunArchitecture) && defined(SVR4Architecture)
EXTRA_LOAD_FLAGS = -R$(USRLIBDIRPATH)
# endif
# if defined(AlphaArchitecture) || defined (SGIArchitecture)
EXTRA_LOAD_FLAGS = -Wl,-rpath,$(USRLIBDIRPATH)
# endif
#endif

#ifdef OsNameDefines
OS_NAME_DEFINES = OsNameDefines
#endif

SRCS	= \
	  fd_attribs.c \
	  fd_control.c \
	  fd_fake.c \
	  fd_file.c \
	  fd_forms.c \
	  fd_groups.c \
	  fd_help.c \
	  fd_initforms.c \
	  fd_main.c \
	  fd_names.c \
	  fd_objects.c \
	  fd_pallette.c \
	  fd_printC.c \
	  fd_rubber.c \
	  fd_select.c \
	  fd_spec.c \
	  fd_super.c \
	  fd_util.c \
	  sp_browser.c \
	  sp_button.c \
	  sp_choice.c \
	  sp_counter.c \
	  sp_dial.c \
	  sp_freeobj.c \
	  sp_menu.c \
	  sp_pixmap.c \
	  sp_positioner.c \
	  sp_scrollbar.c \
	  sp_slider.c \
	  sp_twheel.c \
	  sp_xyplot.c \
	  /* do not delete this line */

#	No user servicable parts below here.
#	Consult a trained technician.

OBJS	= $(SRCS:.c=.o)

#if (ProjectX < 6)
AllTarget(sxpm)
#else
AllTarget(ProgramTargetName(sxpm))
#endif
NormalProgramTarget(sxpm,$(OBJS),$(DEPLIB),$(LOCAL_LIBRARIES),)
InstallProgram(sxpm,$(XPMBINDIR))
InstallManPage(sxpm,$(XPMMANDIR))
DependTarget()
LintTarget()

clean:: 
        $(RM) sxpmout.xpm
#if 0
SRCS	= \
	  fd_attribs.c \
	  fd_control.c \
	  fd_fake.c \
	  fd_file.c \
	  fd_forms.c \
	  fd_groups.c \
	  fd_help.c \
	  fd_initforms.c \
	  fd_main.c \
	  fd_names.c \
	  fd_objects.c \
	  fd_pallette.c \
	  fd_printC.c \
	  fd_rubber.c \
	  fd_select.c \
	  fd_spec.c \
	  fd_super.c \
	  fd_util.c \
	  sp_browser.c \
	  sp_button.c \
	  sp_choice.c \
	  sp_counter.c \
	  sp_dial.c \
	  sp_freeobj.c \
	  sp_menu.c \
	  sp_pixmap.c \
	  sp_positioner.c \
	  sp_scrollbar.c \
	  sp_slider.c \
	  sp_twheel.c \
	  sp_xyplot.c \
	  /* do not delete this line */

#	No user servicable parts below here.
#	Consult a trained technician.

OBJS	= $(SRCS:.c=.o)

#if Solaris64Bit
LDPRELIB	= -L/usr/openwin/lib/sparcv9
CCENVSETUP	= LD_RUN_PATH=/usr/openwin/lib/sparcv9
#endif

#if StaticLink
STATIC		= -Xlinker -Bstatic
UNSTATIC	= -Xlinker -Bdynamic
#endif

FORMSLIBDIR     = $(TOP)/lib
FORMSINCDIR     = $(FORMSLIBDIR)       
FORMSLIB        = -L$(FORMSLIBDIR) -lforms
DEPFORMSLIB     = $(FORMSLIBDIR)/libforms.a

XPMLIB		= -lXpm

#if !HaveSnprintf
SNPLIBDIR	= $(TOP)/snp
SNPINCDIR	= $(SNPLIBDIR)       
SNPINC		= -I$(SNPINCDIR)
SNPLIB		= -L$(SNPLIBDIR) -lformssnp
DEPSNPLIB	= $(SNPLIBDIR)/libformssnp.a
#endif

SHLIBDIR	= XFormsInstallDir/lib
USRLIBDIR	= XFormsInstallDir/lib
INCDIR		= XFormsInstallDir/include
BINDIR		= XFormsInstallDir/bin

EXTRA_INCLUDES  = \
		  $(SNPINC) \
		  -I$(BUILDINCDIR) \
		  -I$(FORMSINCDIR) \
		  -I$(FORMSINCDIR)/private \
		  -Ifd \
		  -Ispec \
		  -Ixpm \
		  -I. \
		  -I/usr/local/include


EXTRA_LIBRARIES	= \
		  -lm

EXTRA_DEFINES	= \
		  -DMAKING_FORMS=1

DEPLIBS		= \
		  $(DEPSNPLIB) \
		  $(DEPFORMSLIB) \
		  $(DEPXPMLIB)

SYS_LIBRARIES	= \
		  $(STATIC) \
		  $(FORMSLIB) \
		  $(XPMLIB) \
		  $(SNPLIB) \
		  $(UNSTATIC) \
		  $(XLIB)

ComplexProgramTarget(TargetName)

distclean::
	make clean
	$(RM) Makefile
#endif