| 1 |
! UIMX ascii 2.0 key: 7758 |
| 2 |
|
| 3 |
*XEchelle.class: Project |
| 4 |
*XEchelle.PjName: XEchelle |
| 5 |
*XEchelle.PjDoMain: 1 |
| 6 |
*XEchelle.PjDoMake: 1 |
| 7 |
*XEchelle.PjWriteAll: 0 |
| 8 |
*XEchelle.PjRunMake: 1 |
| 9 |
*XEchelle.PjWriteCDir: /diskb/midas/test/gui/XEchelle/src |
| 10 |
*XEchelle.PjMode: 0 |
| 11 |
*XEchelle.PjAppClassName: XEchelle |
| 12 |
|
| 13 |
*ApplicWindow_PJinterface.class: PJinterface |
| 14 |
*ApplicWindow_PJinterface.PjName: ApplicWindow_PJinterface |
| 15 |
*ApplicWindow_PJinterface.PjSwName: ApplicWindow |
| 16 |
*ApplicWindow_PJinterface.PjParent: XEchelle |
| 17 |
*ApplicWindow_PJinterface.PjFileName: ApplicWindow.i |
| 18 |
*ApplicWindow_PJinterface.PjShowFlag: 2 |
| 19 |
*ApplicWindow_PJinterface.PjDate: 804947443 |
| 20 |
*ApplicWindow_PJinterface.PjMode: 0 |
| 21 |
*ApplicWindow_PJinterface.PjCFileName: MainShell.c |
| 22 |
|
| 23 |
*SearchShell_PJinterface.class: PJinterface |
| 24 |
*SearchShell_PJinterface.PjName: SearchShell_PJinterface |
| 25 |
*SearchShell_PJinterface.PjSwName: SearchShell |
| 26 |
*SearchShell_PJinterface.PjParent: XEchelle |
| 27 |
*SearchShell_PJinterface.PjFileName: SearchShell.i |
| 28 |
*SearchShell_PJinterface.PjShowFlag: 0 |
| 29 |
*SearchShell_PJinterface.PjDate: 809774654 |
| 30 |
*SearchShell_PJinterface.PjMode: 0 |
| 31 |
*SearchShell_PJinterface.PjCFileName: SearchShell.c |
| 32 |
|
| 33 |
*CalibShell_PJinterface.class: PJinterface |
| 34 |
*CalibShell_PJinterface.PjName: CalibShell_PJinterface |
| 35 |
*CalibShell_PJinterface.PjSwName: CalibShell |
| 36 |
*CalibShell_PJinterface.PjParent: XEchelle |
| 37 |
*CalibShell_PJinterface.PjFileName: CalibShell.i |
| 38 |
*CalibShell_PJinterface.PjShowFlag: 2 |
| 39 |
*CalibShell_PJinterface.PjDate: 809794476 |
| 40 |
*CalibShell_PJinterface.PjMode: 0 |
| 41 |
*CalibShell_PJinterface.PjCFileName: CalibShell.c |
| 42 |
|
| 43 |
*file_list_PJinterface.class: PJinterface |
| 44 |
*file_list_PJinterface.PjName: file_list_PJinterface |
| 45 |
*file_list_PJinterface.PjSwName: file_list |
| 46 |
*file_list_PJinterface.PjParent: XEchelle |
| 47 |
*file_list_PJinterface.PjFileName: file_list.i |
| 48 |
*file_list_PJinterface.PjShowFlag: 0 |
| 49 |
*file_list_PJinterface.PjDate: 809794476 |
| 50 |
*file_list_PJinterface.PjMode: 0 |
| 51 |
*file_list_PJinterface.PjCFileName: file_list.c |
| 52 |
|
| 53 |
*file_selection_PJinterface.class: PJinterface |
| 54 |
*file_selection_PJinterface.PjName: file_selection_PJinterface |
| 55 |
*file_selection_PJinterface.PjSwName: file_selection |
| 56 |
*file_selection_PJinterface.PjParent: XEchelle |
| 57 |
*file_selection_PJinterface.PjFileName: file_selection.i |
| 58 |
*file_selection_PJinterface.PjShowFlag: 0 |
| 59 |
*file_selection_PJinterface.PjDate: 804504111 |
| 60 |
*file_selection_PJinterface.PjMode: 0 |
| 61 |
*file_selection_PJinterface.PjCFileName: file_selection.c |
| 62 |
|
| 63 |
*RebinShell_PJinterface.class: PJinterface |
| 64 |
*RebinShell_PJinterface.PjName: RebinShell_PJinterface |
| 65 |
*RebinShell_PJinterface.PjSwName: RebinShell |
| 66 |
*RebinShell_PJinterface.PjParent: XEchelle |
| 67 |
*RebinShell_PJinterface.PjFileName: RebinShell.i |
| 68 |
*RebinShell_PJinterface.PjShowFlag: 0 |
| 69 |
*RebinShell_PJinterface.PjDate: 809776501 |
| 70 |
*RebinShell_PJinterface.PjMode: 0 |
| 71 |
*RebinShell_PJinterface.PjCFileName: RebinShell.c |
| 72 |
|
| 73 |
*lincat_list_PJinterface.class: PJinterface |
| 74 |
*lincat_list_PJinterface.PjName: lincat_list_PJinterface |
| 75 |
*lincat_list_PJinterface.PjSwName: lincat_list |
| 76 |
*lincat_list_PJinterface.PjParent: XEchelle |
| 77 |
*lincat_list_PJinterface.PjFileName: lincat_list.i |
| 78 |
*lincat_list_PJinterface.PjShowFlag: 0 |
| 79 |
*lincat_list_PJinterface.PjDate: 804504112 |
| 80 |
*lincat_list_PJinterface.PjMode: 0 |
| 81 |
*lincat_list_PJinterface.PjCFileName: lincat_list.c |
| 82 |
|
| 83 |
*file_dialog_PJinterface.class: PJinterface |
| 84 |
*file_dialog_PJinterface.PjName: file_dialog_PJinterface |
| 85 |
*file_dialog_PJinterface.PjSwName: file_dialog |
| 86 |
*file_dialog_PJinterface.PjParent: XEchelle |
| 87 |
*file_dialog_PJinterface.PjFileName: file_dialog.i |
| 88 |
*file_dialog_PJinterface.PjShowFlag: 0 |
| 89 |
*file_dialog_PJinterface.PjDate: 804504112 |
| 90 |
*file_dialog_PJinterface.PjMode: 0 |
| 91 |
*file_dialog_PJinterface.PjCFileName: SessionShell.c |
| 92 |
|
| 93 |
*extin_dialog_PJinterface.class: PJinterface |
| 94 |
*extin_dialog_PJinterface.PjName: extin_dialog_PJinterface |
| 95 |
*extin_dialog_PJinterface.PjSwName: extin_dialog |
| 96 |
*extin_dialog_PJinterface.PjParent: XEchelle |
| 97 |
*extin_dialog_PJinterface.PjFileName: extin_dialog.i |
| 98 |
*extin_dialog_PJinterface.PjShowFlag: 0 |
| 99 |
*extin_dialog_PJinterface.PjDate: 804504112 |
| 100 |
*extin_dialog_PJinterface.PjMode: 0 |
| 101 |
*extin_dialog_PJinterface.PjCFileName: extin_dialog.c |
| 102 |
|
| 103 |
*resid_dialog_PJinterface.class: PJinterface |
| 104 |
*resid_dialog_PJinterface.PjName: resid_dialog_PJinterface |
| 105 |
*resid_dialog_PJinterface.PjSwName: resid_dialog |
| 106 |
*resid_dialog_PJinterface.PjParent: XEchelle |
| 107 |
*resid_dialog_PJinterface.PjFileName: resid_dialog.i |
| 108 |
*resid_dialog_PJinterface.PjShowFlag: 0 |
| 109 |
*resid_dialog_PJinterface.PjDate: 804504113 |
| 110 |
*resid_dialog_PJinterface.PjMode: 0 |
| 111 |
*resid_dialog_PJinterface.PjCFileName: resid_dialog.c |
| 112 |
|
| 113 |
*HelpShell_PJinterface.class: PJinterface |
| 114 |
*HelpShell_PJinterface.PjName: HelpShell_PJinterface |
| 115 |
*HelpShell_PJinterface.PjSwName: HelpShell |
| 116 |
*HelpShell_PJinterface.PjParent: XEchelle |
| 117 |
*HelpShell_PJinterface.PjFileName: HelpShell.i |
| 118 |
*HelpShell_PJinterface.PjShowFlag: 0 |
| 119 |
*HelpShell_PJinterface.PjDate: 804504113 |
| 120 |
*HelpShell_PJinterface.PjMode: 0 |
| 121 |
*HelpShell_PJinterface.PjCFileName: HelpShell.c |
| 122 |
|
| 123 |
*RotateShell_PJinterface.class: PJinterface |
| 124 |
*RotateShell_PJinterface.PjName: RotateShell_PJinterface |
| 125 |
*RotateShell_PJinterface.PjSwName: RotateShell |
| 126 |
*RotateShell_PJinterface.PjParent: XEchelle |
| 127 |
*RotateShell_PJinterface.PjFileName: RotateShell.i |
| 128 |
*RotateShell_PJinterface.PjShowFlag: 2 |
| 129 |
*RotateShell_PJinterface.PjDate: 809712576 |
| 130 |
*RotateShell_PJinterface.PjMode: 0 |
| 131 |
*RotateShell_PJinterface.PjCFileName: RotateShell.c |
| 132 |
|
| 133 |
*OrderShell_PJinterface.class: PJinterface |
| 134 |
*OrderShell_PJinterface.PjName: OrderShell_PJinterface |
| 135 |
*OrderShell_PJinterface.PjSwName: OrderShell |
| 136 |
*OrderShell_PJinterface.PjParent: XEchelle |
| 137 |
*OrderShell_PJinterface.PjFileName: OrderShell.i |
| 138 |
*OrderShell_PJinterface.PjShowFlag: 0 |
| 139 |
*OrderShell_PJinterface.PjDate: 809774656 |
| 140 |
*OrderShell_PJinterface.PjMode: 0 |
| 141 |
*OrderShell_PJinterface.PjCFileName: OrderShell.c |
| 142 |
|
| 143 |
*BackgroundShell_PJinterface.class: PJinterface |
| 144 |
*BackgroundShell_PJinterface.PjName: BackgroundShell_PJinterface |
| 145 |
*BackgroundShell_PJinterface.PjSwName: BackgroundShell |
| 146 |
*BackgroundShell_PJinterface.PjParent: XEchelle |
| 147 |
*BackgroundShell_PJinterface.PjFileName: BackgroundShell.i |
| 148 |
*BackgroundShell_PJinterface.PjShowFlag: 0 |
| 149 |
*BackgroundShell_PJinterface.PjDate: 809774657 |
| 150 |
*BackgroundShell_PJinterface.PjMode: 0 |
| 151 |
*BackgroundShell_PJinterface.PjCFileName: BackgroundShell.c |
| 152 |
|
| 153 |
*ExtractionShell_PJinterface.class: PJinterface |
| 154 |
*ExtractionShell_PJinterface.PjName: ExtractionShell_PJinterface |
| 155 |
*ExtractionShell_PJinterface.PjSwName: ExtractionShell |
| 156 |
*ExtractionShell_PJinterface.PjParent: XEchelle |
| 157 |
*ExtractionShell_PJinterface.PjFileName: ExtractionShell.i |
| 158 |
*ExtractionShell_PJinterface.PjShowFlag: 0 |
| 159 |
*ExtractionShell_PJinterface.PjDate: 809774658 |
| 160 |
*ExtractionShell_PJinterface.PjMode: 0 |
| 161 |
*ExtractionShell_PJinterface.PjCFileName: ExtractionShell.c |
| 162 |
|
| 163 |
*SkyShell_PJinterface.class: PJinterface |
| 164 |
*SkyShell_PJinterface.PjName: SkyShell_PJinterface |
| 165 |
*SkyShell_PJinterface.PjSwName: SkyShell |
| 166 |
*SkyShell_PJinterface.PjParent: XEchelle |
| 167 |
*SkyShell_PJinterface.PjFileName: SkyShell.i |
| 168 |
*SkyShell_PJinterface.PjShowFlag: 0 |
| 169 |
*SkyShell_PJinterface.PjDate: 809774659 |
| 170 |
*SkyShell_PJinterface.PjMode: 0 |
| 171 |
*SkyShell_PJinterface.PjCFileName: SkyShell.c |
| 172 |
|
| 173 |
*FlatShell_PJinterface.class: PJinterface |
| 174 |
*FlatShell_PJinterface.PjName: FlatShell_PJinterface |
| 175 |
*FlatShell_PJinterface.PjSwName: FlatShell |
| 176 |
*FlatShell_PJinterface.PjParent: XEchelle |
| 177 |
*FlatShell_PJinterface.PjFileName: FlatShell.i |
| 178 |
*FlatShell_PJinterface.PjShowFlag: 0 |
| 179 |
*FlatShell_PJinterface.PjDate: 809774660 |
| 180 |
*FlatShell_PJinterface.PjMode: 0 |
| 181 |
*FlatShell_PJinterface.PjCFileName: FlatShell.c |
| 182 |
|
| 183 |
*RespShell_PJinterface.class: PJinterface |
| 184 |
*RespShell_PJinterface.PjName: RespShell_PJinterface |
| 185 |
*RespShell_PJinterface.PjSwName: RespShell |
| 186 |
*RespShell_PJinterface.PjParent: XEchelle |
| 187 |
*RespShell_PJinterface.PjFileName: RespShell.i |
| 188 |
*RespShell_PJinterface.PjShowFlag: 0 |
| 189 |
*RespShell_PJinterface.PjDate: 809774661 |
| 190 |
*RespShell_PJinterface.PjMode: 0 |
| 191 |
*RespShell_PJinterface.PjCFileName: RespShell.c |
| 192 |
|
| 193 |
*MergeShell_PJinterface.class: PJinterface |
| 194 |
*MergeShell_PJinterface.PjName: MergeShell_PJinterface |
| 195 |
*MergeShell_PJinterface.PjSwName: MergeShell |
| 196 |
*MergeShell_PJinterface.PjParent: XEchelle |
| 197 |
*MergeShell_PJinterface.PjFileName: MergeShell.i |
| 198 |
*MergeShell_PJinterface.PjShowFlag: 0 |
| 199 |
*MergeShell_PJinterface.PjDate: 809782217 |
| 200 |
*MergeShell_PJinterface.PjMode: 0 |
| 201 |
*MergeShell_PJinterface.PjCFileName: MergeShell.c |
| 202 |
|
| 203 |
*uxmain.class: PJuxmain |
| 204 |
*uxmain.PjName: uxmain |
| 205 |
*uxmain.PjParent: XEchelle |
| 206 |
*uxmain.PjFileName: XEchelle.c |
| 207 |
*uxmain.PjDate: 809794617 |
| 208 |
*uxmain.PjMode: 0 |
| 209 |
*uxmain.PjBody: /*------------------------------------------------------------\ |
| 210 |
* This is the project main program file for Ux generated \ |
| 211 |
* code. You may add application dependent source code\ |
| 212 |
* at the appropriate places. \ |
| 213 |
* \ |
| 214 |
* Do not modify the statements preceded by the dollar\ |
| 215 |
* sign ($), these statements will be replaced with\ |
| 216 |
* the appropriate source code when the main program is\ |
| 217 |
* automatically generated. \ |
| 218 |
* \ |
| 219 |
* $Date: 2003-06-04 14:49:22 $ $Revision: 1.1.1.1 $ \ |
| 220 |
*-----------------------------------------------------------*/\ |
| 221 |
\ |
| 222 |
#ifdef XOPEN_CATALOG\ |
| 223 |
#include <locale.h>\ |
| 224 |
#endif\ |
| 225 |
\ |
| 226 |
#include <UxLib.h>\ |
| 227 |
\ |
| 228 |
\ |
| 229 |
/*----------------------------------------------\ |
| 230 |
* Insert application global declarations here\ |
| 231 |
*---------------------------------------------*/\ |
| 232 |
#include <gl_defs.h>\ |
| 233 |
#include <spec_defs.h>\ |
| 234 |
#include <main_defs.h>\ |
| 235 |
#include <main_decl.h>\ |
| 236 |
\ |
| 237 |
#include <signal.h>\ |
| 238 |
#include <StdResources.h>\ |
| 239 |
#include <osyparms.h>\ |
| 240 |
\ |
| 241 |
/* variables for file list management */\ |
| 242 |
swidget FileListInterface, TextFieldSwidget;\ |
| 243 |
Widget FileListWidget;\ |
| 244 |
int FillTextField;\ |
| 245 |
char DirSpecs[MAXLINE];\ |
| 246 |
\ |
| 247 |
extern swidget create_file_selection();\ |
| 248 |
extern swidget create_file_list();\ |
| 249 |
extern swidget create_lincat_list();\ |
| 250 |
\ |
| 251 |
\ |
| 252 |
main(argc,argv)\ |
| 253 |
int argc;\ |
| 254 |
char *argv[];\ |
| 255 |
{\ |
| 256 |
/*-----------------------------------------------------------\ |
| 257 |
* Declarations.\ |
| 258 |
* The default identifier - mainIface will only be declared \ |
| 259 |
* if the interface function is global and of type swidget. \ |
| 260 |
* To change the identifier to a different name, modify the\ |
| 261 |
* string mainIface in the file "main.dat". If "mainIface"\ |
| 262 |
* is declared, it will be used below where the return value \ |
| 263 |
* of PJ_INTERFACE_FUNCTION_CALL will be assigned to it.\ |
| 264 |
*-----------------------------------------------------------*/ \ |
| 265 |
\ |
| 266 |
int narg, fsmode = 0;\ |
| 267 |
int cntflag = 1, logflag = 2, dispflag = 1;\ |
| 268 |
\ |
| 269 |
$PJ_INTERFACE_RETVAL_TYPE\ |
| 270 |
\ |
| 271 |
/*--------------------------------\ |
| 272 |
* Interface function declaration\ |
| 273 |
*-------------------------------*/ \ |
| 274 |
\ |
| 275 |
$PJ_INTERFACE_FUNCTION_DECL\ |
| 276 |
$PJ_INTERFACE_FUNCTION_ARG_DECL\ |
| 277 |
\ |
| 278 |
/*---------------------\ |
| 279 |
* Initialize Program\ |
| 280 |
*--------------------*/\ |
| 281 |
\ |
| 282 |
#ifdef XOPEN_CATALOG\ |
| 283 |
setlocale(LC_ALL, "");\ |
| 284 |
#endif\ |
| 285 |
\ |
| 286 |
UxTopLevel = UxInitialize("$PJ_APP_CLASS_NAME", &argc, argv);\ |
| 287 |
\ |
| 288 |
/*------------------------------------------------------\ |
| 289 |
* Insert initialization code for your application here\ |
| 290 |
*-----------------------------------------------------*/\ |
| 291 |
\ |
| 292 |
SetResources(argc, argv);\ |
| 293 |
SCSPRO("XEchelle");\ |
| 294 |
osscatch(SIGINT,SIG_IGN); /* Ignore INT signals (Ctrl-C) */\ |
| 295 |
SCECNT("PUT", &cntflag, &logflag, &dispflag); \ |
| 296 |
MonitorPid = atoi(argv[1]);\ |
| 297 |
\ |
| 298 |
for (narg = 1; narg < argc; narg++)\ |
| 299 |
if ( (argv[narg][0] == '-') && strcmp(argv[narg], "-fs") == 0 ) \ |
| 300 |
fsmode = 1; /* MOTIF File Sel. */\ |
| 301 |
\ |
| 302 |
if (fsmode == 0)\ |
| 303 |
FileListInterface = create_file_list();\ |
| 304 |
else\ |
| 305 |
FileListInterface = create_file_selection();\ |
| 306 |
\ |
| 307 |
create_lincat_list();\ |
| 308 |
\ |
| 309 |
/*----------------------------------------------------------------\ |
| 310 |
* Create and popup the first window of the interface. The \ |
| 311 |
* return value can be used in the popdown or destroy functions.\ |
| 312 |
* The swidget return value of PJ_INTERFACE_FUNCTION_CALL will\ |
| 313 |
* be assigned to "mainIface" from PJ_INTERFACE_RETVAL_TYPE. \ |
| 314 |
*---------------------------------------------------------------*/\ |
| 315 |
\ |
| 316 |
$PJ_INTERFACE_FUNCTION_CALL\ |
| 317 |
$PJ_POPUP_CALL\ |
| 318 |
\ |
| 319 |
/* Initializes content of file list */\ |
| 320 |
WInit_widgets(\ |
| 321 |
UxGetWidget(UxFindSwidget("tf_session1")),\ |
| 322 |
UxGetWidget(UxFindSwidget("tf_session")),\ |
| 323 |
UxGetWidget(UxFindSwidget("scrolledList1")),\ |
| 324 |
UxGetWidget(UxFindSwidget("scrolledList4"))\ |
| 325 |
);\ |
| 326 |
\ |
| 327 |
FilterFiles(".");\ |
| 328 |
InitAllFields();\ |
| 329 |
\ |
| 330 |
/*-------------------------\ |
| 331 |
* Enter the event loop \ |
| 332 |
*------------------------*/\ |
| 333 |
\ |
| 334 |
$PJ_EVENT_LOOP\ |
| 335 |
\ |
| 336 |
}\ |
| 337 |
|
| 338 |
*uxmain.PjExplicitEventLoop: {\ |
| 339 |
\ |
| 340 |
XEvent event;\ |
| 341 |
\ |
| 342 |
for (;;)\ |
| 343 |
{\ |
| 344 |
UxNextEvent(&event);\ |
| 345 |
\ |
| 346 |
switch (event.type)\ |
| 347 |
{\ |
| 348 |
\ |
| 349 |
/*----------------------------------------------------\ |
| 350 |
* Insert code here to handle any events that you do\ |
| 351 |
* not wish to be handled by the interface.\ |
| 352 |
*----------------------------------------------------*/\ |
| 353 |
\ |
| 354 |
default:\ |
| 355 |
UxDispatchEvent(&event);\ |
| 356 |
break;\ |
| 357 |
}\ |
| 358 |
}\ |
| 359 |
} |
| 360 |
*uxmain.PjEdited: 1 |
| 361 |
*uxmain.PjHasImplicitLoop: 1 |
| 362 |
*uxmain.PjHasExplicitLoop: 0 |
| 363 |
|
| 364 |
*xtmain.class: PJxtmain |
| 365 |
*xtmain.PjName: xtmain |
| 366 |
*xtmain.PjParent: XEchelle |
| 367 |
*xtmain.PjFileName: XEchelle.c |
| 368 |
*xtmain.PjDate: 0 |
| 369 |
*xtmain.PjMode: -1 |
| 370 |
|
| 371 |
*uxmake.class: PJuxmake |
| 372 |
*uxmake.PjName: uxmake |
| 373 |
*uxmake.PjParent: XEchelle |
| 374 |
*uxmake.PjFileName: makefile |
| 375 |
*uxmake.PjDate: 809794618 |
| 376 |
*uxmake.PjMode: 0 |
| 377 |
*uxmake.PjBody: ########################################################################\ |
| 378 |
# \ |
| 379 |
# MAKEFILE FOR STAND-ALONE UX CODE APPLICATION.\ |
| 380 |
#\ |
| 381 |
# EXECUTABLE is the name of the executable to be created \ |
| 382 |
# MAIN is the .c file containing your main() function\ |
| 383 |
# INTERFACES is a list of the generated C code files \ |
| 384 |
# APP_OBJS is a (possibly empty) list of the object code\ |
| 385 |
# files that form the non-interface portion of\ |
| 386 |
# your application \ |
| 387 |
#\ |
| 388 |
# In the first three statements, the variables on the right \ |
| 389 |
# of the equal sign will be replaced with their corresponding \ |
| 390 |
# values when the makefile is automatically generated. \ |
| 391 |
#\ |
| 392 |
# $Date: 2003-06-04 14:49:22 $ $Revision: 1.1.1.1 $\ |
| 393 |
#########################################################################\ |
| 394 |
\ |
| 395 |
\ |
| 396 |
include ../../../local/default.mk\ |
| 397 |
\ |
| 398 |
\ |
| 399 |
CMAIN = $PJ_MAIN_SRC\ |
| 400 |
CINTERFACES = $PJ_INTERFACES_SRC\ |
| 401 |
EXEC = echelle\ |
| 402 |
EXECUTABLE = ../../exec/$(EXEC).exe\ |
| 403 |
\ |
| 404 |
MAIN = $(CMAIN:.c=.o)\ |
| 405 |
INTERFACES = $(CINTERFACES:.c=.o) \ |
| 406 |
\ |
| 407 |
APPL_OBJS = midasutil.o alloc.o cb_list.o misc.o splib.o\ |
| 408 |
UX_DIR = ../../GraphLib/libsrc/$(UIMX)\ |
| 409 |
\ |
| 410 |
LINC = -I../incl -I../../incl\ |
| 411 |
\ |
| 412 |
UX_LIBPATH = -L../../lib\ |
| 413 |
LOCALIB = -L../lib\ |
| 414 |
\ |
| 415 |
X_CFLAGS =\ |
| 416 |
MOTIF_CFLAGS =\ |
| 417 |
\ |
| 418 |
CFLAGS = $(C_OPT) $(DEBUG) $(GUI_OPT) \\ |
| 419 |
$(LINC) -I$(INC) -I$(UX_DIR)/include \\ |
| 420 |
$(X_CFLAGS) $(MOTIF_CFLAGS) -DXOPEN_CATALOG \\ |
| 421 |
$(XMINC) $(X11INC)\ |
| 422 |
\ |
| 423 |
XOPEN_LIBS = \ |
| 424 |
\ |
| 425 |
# The following object files are provided to work around a motif bug.\ |
| 426 |
# They are not necessarily needed to compile your application.\ |
| 427 |
LIBPATH = $(X11_LIBPATH) $(MOTIF_LIBPATH)\ |
| 428 |
XLIB = $(LIBPATH) $(X_LIBS) $(XOPEN_LIBS)\ |
| 429 |
\ |
| 430 |
LLIB = $(LOCALIB) -lxech $(UX_LIBPATH) -luimx -lcom -L$(LIBDIR) -ltw -lxcon -lmidas \ |
| 431 |
LIBS = $(LIBDIR)/libmidas.a\ |
| 432 |
\ |
| 433 |
OBJS = $(MAIN) $(INTERFACES) $(APPL_OBJS) \ |
| 434 |
\ |
| 435 |
all: tmp_makefile $(EXECUTABLE) \ |
| 436 |
\ |
| 437 |
$(EXECUTABLE): $(OBJS) $(LIBS)\ |
| 438 |
$(LDCC) $(OBJS) $(LLIB) $(XLIB) $(MLIB) -o $(EXECUTABLE)\ |
| 439 |
$(STRIP) $(EXECUTABLE)\ |
| 440 |
@echo "done"\ |
| 441 |
\ |
| 442 |
clean:\ |
| 443 |
$(RM) *.o\ |
| 444 |
\ |
| 445 |
clean_exec:\ |
| 446 |
$(RM) $(EXECUTABLE)\ |
| 447 |
\ |
| 448 |
\ |
| 449 |
tmp_makefile: makefile\ |
| 450 |
sed -e 's/^MAIN.*//' \\ |
| 451 |
-e 's/^INTERFACES.*//' \\ |
| 452 |
-e 's/^CMAIN/MAIN/' \\ |
| 453 |
-e 's/^CINTERFACES/INTERFACES/' \\ |
| 454 |
-e 's/\([^^]\)\.c/\1\.o/g' \\ |
| 455 |
-e 's/^all: tmp_makefile/all:/' makefile > tmp_makefile\ |
| 456 |
rm -f makefile\ |
| 457 |
mv tmp_makefile makefile\ |
| 458 |
\ |
| 459 |
\ |
| 460 |
\ |
| 461 |
\ |
| 462 |
\ |
| 463 |
\ |
| 464 |
|
| 465 |
*uxmake.PjEdited: 1 |
| 466 |
|
| 467 |
*xtmake.class: PJxtmake |
| 468 |
*xtmake.PjName: xtmake |
| 469 |
*xtmake.PjParent: XEchelle |
| 470 |
*xtmake.PjFileName: XEchelle.mk |
| 471 |
*xtmake.PjDate: 0 |
| 472 |
*xtmake.PjMode: -1 |