! UIMX ascii 2.0 key: 779 *Helper.class: Project *Helper.PjName: Helper *Helper.PjDoMain: 1 *Helper.PjDoMake: 1 *Helper.PjWriteAll: 0 *Helper.PjRunMake: 1 *Helper.PjWriteCDir: /midas/test/gui/XDo/src *Helper.PjMode: 0 *Helper.PjAppClassName: Tempdo *ApplicWindow_PJinterface.class: PJinterface *ApplicWindow_PJinterface.PjName: ApplicWindow_PJinterface *ApplicWindow_PJinterface.PjSwName: ApplicWindow *ApplicWindow_PJinterface.PjParent: Helper *ApplicWindow_PJinterface.PjFileName: ApplicWindow.i *ApplicWindow_PJinterface.PjShowFlag: 2 *ApplicWindow_PJinterface.PjDate: 811165727 *ApplicWindow_PJinterface.PjMode: 0 *ApplicWindow_PJinterface.PjCFileName: ApplicWindow.c *transientShell3_PJinterface.class: PJinterface *transientShell3_PJinterface.PjName: transientShell3_PJinterface *transientShell3_PJinterface.PjSwName: transientShell3 *transientShell3_PJinterface.PjParent: Helper *transientShell3_PJinterface.PjFileName: transientShell3.i *transientShell3_PJinterface.PjShowFlag: 2 *transientShell3_PJinterface.PjDate: 823525686 *transientShell3_PJinterface.PjMode: 0 *transientShell3_PJinterface.PjCFileName: transientShell3.c *transientShell8_PJinterface.class: PJinterface *transientShell8_PJinterface.PjName: transientShell8_PJinterface *transientShell8_PJinterface.PjSwName: transientShell8 *transientShell8_PJinterface.PjParent: Helper *transientShell8_PJinterface.PjFileName: transientShell8.i *transientShell8_PJinterface.PjShowFlag: 0 *transientShell8_PJinterface.PjDate: 811165728 *transientShell8_PJinterface.PjMode: 0 *transientShell8_PJinterface.PjCFileName: transientShell8.c *transientShell1_PJinterface.class: PJinterface *transientShell1_PJinterface.PjName: transientShell1_PJinterface *transientShell1_PJinterface.PjSwName: transientShell1 *transientShell1_PJinterface.PjParent: Helper *transientShell1_PJinterface.PjFileName: transientShell1.i *transientShell1_PJinterface.PjShowFlag: 0 *transientShell1_PJinterface.PjDate: 811165729 *transientShell1_PJinterface.PjMode: 0 *transientShell1_PJinterface.PjCFileName: transientShell1.c *SelectFrame_PJinterface.class: PJinterface *SelectFrame_PJinterface.PjName: SelectFrame_PJinterface *SelectFrame_PJinterface.PjSwName: SelectFrame *SelectFrame_PJinterface.PjParent: Helper *SelectFrame_PJinterface.PjFileName: SelectFrame.i *SelectFrame_PJinterface.PjShowFlag: 0 *SelectFrame_PJinterface.PjDate: 811165729 *SelectFrame_PJinterface.PjMode: 0 *SelectFrame_PJinterface.PjCFileName: SelectFrame.c *SelectDescrTable_PJinterface.class: PJinterface *SelectDescrTable_PJinterface.PjName: SelectDescrTable_PJinterface *SelectDescrTable_PJinterface.PjSwName: SelectDescrTable *SelectDescrTable_PJinterface.PjParent: Helper *SelectDescrTable_PJinterface.PjFileName: SelectDescrTable.i *SelectDescrTable_PJinterface.PjShowFlag: 0 *SelectDescrTable_PJinterface.PjDate: 811165729 *SelectDescrTable_PJinterface.PjMode: 0 *SelectDescrTable_PJinterface.PjCFileName: SelectDescrTable.c *SelectInstrument_PJinterface.class: PJinterface *SelectInstrument_PJinterface.PjName: SelectInstrument_PJinterface *SelectInstrument_PJinterface.PjSwName: SelectInstrument *SelectInstrument_PJinterface.PjParent: Helper *SelectInstrument_PJinterface.PjFileName: SelectInstrument.i *SelectInstrument_PJinterface.PjShowFlag: 0 *SelectInstrument_PJinterface.PjDate: 811165730 *SelectInstrument_PJinterface.PjMode: 0 *SelectInstrument_PJinterface.PjCFileName: SelectInstrument.c *applicationClas_PJinterface.class: PJinterface *applicationClas_PJinterface.PjName: applicationClas_PJinterface *applicationClas_PJinterface.PjSwName: applicationClas *applicationClas_PJinterface.PjParent: Helper *applicationClas_PJinterface.PjFileName: applicationShell1.i *applicationClas_PJinterface.PjShowFlag: 2 *applicationClas_PJinterface.PjDate: 811165730 *applicationClas_PJinterface.PjMode: 0 *applicationClas_PJinterface.PjCFileName: applicationShell1.c *Classify_PJinterface.class: PJinterface *Classify_PJinterface.PjName: Classify_PJinterface *Classify_PJinterface.PjSwName: Classify *Classify_PJinterface.PjParent: Helper *Classify_PJinterface.PjFileName: applicationShell2.i *Classify_PJinterface.PjShowFlag: 2 *Classify_PJinterface.PjDate: 823540147 *Classify_PJinterface.PjMode: 0 *Classify_PJinterface.PjCFileName: Classify.c *Associate_PJinterface.class: PJinterface *Associate_PJinterface.PjName: Associate_PJinterface *Associate_PJinterface.PjSwName: Associate *Associate_PJinterface.PjParent: Helper *Associate_PJinterface.PjFileName: Associate.i *Associate_PJinterface.PjShowFlag: 0 *Associate_PJinterface.PjDate: 811165732 *Associate_PJinterface.PjMode: 0 *Associate_PJinterface.PjCFileName: Associate.c *errorDialog1_PJinterface.class: PJinterface *errorDialog1_PJinterface.PjName: errorDialog1_PJinterface *errorDialog1_PJinterface.PjSwName: errorDialog1 *errorDialog1_PJinterface.PjParent: Helper *errorDialog1_PJinterface.PjFileName: errorDialog1.i *errorDialog1_PJinterface.PjShowFlag: 0 *errorDialog1_PJinterface.PjDate: 811165732 *errorDialog1_PJinterface.PjMode: 0 *errorDialog1_PJinterface.PjCFileName: errorDialog1.c *Association_PJinterface.class: PJinterface *Association_PJinterface.PjName: Association_PJinterface *Association_PJinterface.PjSwName: Association *Association_PJinterface.PjParent: Helper *Association_PJinterface.PjFileName: transientShell2.i *Association_PJinterface.PjShowFlag: 0 *Association_PJinterface.PjDate: 811165732 *Association_PJinterface.PjMode: 0 *Association_PJinterface.PjCFileName: Association.c *Warning_PJinterface.class: PJinterface *Warning_PJinterface.PjName: Warning_PJinterface *Warning_PJinterface.PjSwName: Warning *Warning_PJinterface.PjParent: Helper *Warning_PJinterface.PjFileName: Warning.i *Warning_PJinterface.PjShowFlag: 0 *Warning_PJinterface.PjDate: 811165733 *Warning_PJinterface.PjMode: 0 *Warning_PJinterface.PjCFileName: Warning.c *HelpDo_PJinterface.class: PJinterface *HelpDo_PJinterface.PjName: HelpDo_PJinterface *HelpDo_PJinterface.PjSwName: HelpDo *HelpDo_PJinterface.PjParent: Helper *HelpDo_PJinterface.PjFileName: topLevelShell1.i *HelpDo_PJinterface.PjShowFlag: 0 *HelpDo_PJinterface.PjDate: 811165733 *HelpDo_PJinterface.PjMode: 0 *HelpDo_PJinterface.PjCFileName: HelpDo.c *ColAttribute_PJinterface.class: PJinterface *ColAttribute_PJinterface.PjName: ColAttribute_PJinterface *ColAttribute_PJinterface.PjSwName: ColAttribute *ColAttribute_PJinterface.PjParent: Helper *ColAttribute_PJinterface.PjFileName: ColAttribute.i *ColAttribute_PJinterface.PjShowFlag: 0 *ColAttribute_PJinterface.PjDate: 811165733 *ColAttribute_PJinterface.PjMode: 0 *ColAttribute_PJinterface.PjCFileName: ColAttribute.c *uxmain.class: PJuxmain *uxmain.PjName: uxmain *uxmain.PjParent: Helper *uxmain.PjFileName: XDo.c *uxmain.PjDate: 823540147 *uxmain.PjMode: 0 *uxmain.PjBody: /*------------------------------------------------------------\ * This is the project main program file for Ux generated \ * code. You may add application dependent source code\ * at the appropriate places. \ * \ * Do not modify the statements preceded by the dollar\ * sign ($), these statements will be replaced with\ * the appropriate source code when the main program is\ * automatically generated. \ * \ * $Date: 2003-06-04 14:49:21 $ $Revision: 1.1.1.1 $ \ *-----------------------------------------------------------*/\ \ #ifdef XOPEN_CATALOG\ #include \ #endif\ \ #include \ #include \ #include \ #include \ \ \ \ \ \ \ /*----------------------------------------------\ * Insert application global declarations here\ *---------------------------------------------*/\ \ #include \ char *osmmget();\ static void reread();\ char session[3];\ char ostchoice[60],claschoice[60],assochoice[60],*colchoice,*coltemp,*rowtext[256];\ char commerr[180];\ int tidost,tidclas,tidasso,colno,itemsize,do8,doI,rowno,arowno,MonitorPid;\ int msgvalue,coltempno,collabchan;\ int tidcomm;\ Widget row1[40],row2[40],row3[40],rowrule[256][2];\ Widget arow1[20],arow2[20],arow3[20],arow4[20];\ Widget FileListWidget,sb;\ swidget pb, save, crea, ctx, hist, srch, klist,clist,flist,olist,dlist,ilist;\ swidget classi,clashaupt,assohaupt,asso,myerror,mymsg,help,attri;\ extern swidget create_transientShell3(), \ create_transientShell8(),\ create_transientShell1(),\ create_applicationClas(),\ create_Classify(), \ create_SelectFrame(),\ create_SelectDescrTable(),\ create_SelectInstrument(),\ create_Association(),\ create_Associate(),\ create_Warning(),\ create_errorDialog1(), \ create_HelpDo(),\ create_ColAttribute(); \ main(argc,argv)\ int argc;\ char *argv[];\ {\ /*-----------------------------------------------------------\ * Declarations.\ * The default identifier - mainIface will only be declared \ * if the interface function is global and of type swidget. \ * To change the identifier to a different name, modify the\ * string mainIface in the file "main.dat". If "mainIface"\ * is declared, it will be used below where the return value \ * of PJ_INTERFACE_FUNCTION_CALL will be assigned to it.\ *-----------------------------------------------------------*/ \ \ $PJ_INTERFACE_RETVAL_TYPE\ int i_cnt,nbytes,i,InterPid;\ char mycomm[128]; \ \ \ /*--------------------------------\ * Interface function declaration\ *-------------------------------*/ \ \ $PJ_INTERFACE_FUNCTION_DECL\ $PJ_INTERFACE_FUNCTION_ARG_DECL\ \ /*---------------------\ * Initialize Program\ *--------------------*/\ \ #ifdef XOPEN_CATALOG\ setlocale(LC_ALL, "");\ #endif\ \ UxTopLevel = UxInitialize("$PJ_APP_CLASS_NAME", &argc, argv);\ \ /*------------------------------------------------------\ * Insert initialization code for your application here\ *-----------------------------------------------------*/\ /*\ \ */ \ \ MonitorPid = atoi(argv[1]);\ strcpy(session, argv[2]);\ session[2] = '\0'; \ \ \ \ /* printf("Version: %s, Mail: %s, Print: %s\nContext: %s\nMidwork: %s\nContexts: %s\n",\ midvers, mid_mail, print_com, mid_ctx, mid_work, contxt); */\ \ SCSPRO("-1"); \ osscatch(SIGUSR1,reread); \ nbytes = (TBL_LABLEN+1) * 256;\ colchoice = osmmget(nbytes);\ /* strcpy(colchoice,"IDENT");\ \ colno = 1;*/\ oscfill(colchoice,'\0',nbytes);\ for (i=0; i<60; i++) ostchoice[i] = '\0'; \ \ msgvalue = 1; \ nbytes = (TBL_LABLEN+1) * 20;\ coltemp = osmmget(nbytes);\ \ crea = create_transientShell3(); \ \ klist = create_transientShell8(); \ clist = create_transientShell1(); \ flist = create_SelectFrame();\ dlist = create_SelectDescrTable();\ ilist = create_SelectInstrument();\ classi = create_applicationClas();\ clashaupt = create_Classify();\ assohaupt = create_Association(); \ myerror = create_errorDialog1(); \ asso = create_Associate(); \ mymsg = create_Warning();\ help = create_HelpDo();\ attri = create_ColAttribute();\ for (i=0; i<256; i++) {\ rowrule[i][0] = (Widget )0;\ rowrule[i][1] = (Widget )0; \ } \ for (i=0; i<40; i++) {\ row1[i] = (Widget )0;\ row2[i] = (Widget )0;\ row3[i] = (Widget )0;\ }\ for (i=0; i<20; i++) {\ arow1[i] = (Widget )0;\ arow2[i] = (Widget )0;\ arow3[i] = (Widget )0;\ arow4[i] = (Widget )0;\ }\ tidclas = -1;\ tidost = -1;\ tidasso = -1; \ tidcomm = -1;\ initmytable();\ \ \ \ /*----------------------------------------------------------------\ * Create and popup the first window of the interface. The \ * return value can be used in the popdown or destroy functions.\ * The swidget return value of PJ_INTERFACE_FUNCTION_CALL will\ * be assigned to "mainIface" from PJ_INTERFACE_RETVAL_TYPE. \ *---------------------------------------------------------------*/\ \ $PJ_INTERFACE_FUNCTION_CALL\ $PJ_POPUP_CALL\ \ /*-------------------------\ * Enter the event loop \ *------------------------*/\ \ $PJ_EVENT_LOOP\ \ }\ \ static void reread()\ {\ extern int tidost,tidcomm ;\ extern char ostchoice[60];\ int openflag,null;\ char command[60];\ osscatch(SIGUSR1,reread);\ if (tidost != -1 ) { \ TCTCLO(tidost);\ tidost = -1 ;\ }\ TCTOPN("TAB_COMM.tbl",F_I_MODE,&tidcomm);\ TCERDI(tidcomm,1,4,&openflag,&null);\ \ if (openflag == 1) {\ TCTOPN(ostchoice,F_I_MODE,&tidost);\ \ add_ident_table(UxGetWidget(UxFindSwidget("identlist"))); \ add_col_table(UxGetWidget(UxFindSwidget("readtable")));\ } \ else { \ strcpy(ostchoice,"ost.tbl"); \ if (read_ost_table()) display_ident_table(UxGetWidget(UxFindSwidget("identlist")));\ }\ TCTCLO(tidcomm);\ }\ \ \ \ *uxmain.PjExplicitEventLoop: {\ \ XEvent event;\ \ for (;;)\ {\ UxNextEvent(&event);\ \ switch (event.type)\ {\ \ /*----------------------------------------------------\ * Insert code here to handle any events that you do\ * not wish to be handled by the interface.\ *----------------------------------------------------*/\ \ default:\ UxDispatchEvent(&event);\ break;\ }\ }\ } *uxmain.PjEdited: 1 *uxmain.PjHasImplicitLoop: 1 *uxmain.PjHasExplicitLoop: 0 *xtmain.class: PJxtmain *xtmain.PjName: xtmain *xtmain.PjParent: Helper *xtmain.PjFileName: XHelp.c *xtmain.PjDate: 717121044 *xtmain.PjMode: 1 *xtmain.PjBody: /*-----------------------------------------------------------\ * This is the project main program file for Xt generated \ * code. You may add application dependent source code \ * at the appropriate places. \ * \ * Do not modify the statements preceded by the dollar\ * sign ($), these statements will be replaced with\ * the appropriate source code when the main program is \ * generated. \ *\ * $Date: 2003-06-04 14:49:21 $ $Revision: 1.1.1.1 $ \ *-----------------------------------------------------------*/ \ \ #ifdef XOPEN_CATALOG\ #include \ #endif\ \ #include \ #include \ \ /*---------------------------------------------------- \ * UxXt.h needs to be included only when compiling a \ * stand-alone application. \ *---------------------------------------------------*/\ #ifndef DESIGN_TIME\ #include "UxXt.h"\ #endif /* DESIGN_TIME */\ \ XtAppContext UxAppContext;\ Widget UxTopLevel;\ Display *UxDisplay;\ int UxScreen;\ \ /*----------------------------------------------\ * Insert application global declarations here\ *---------------------------------------------*/\ \ char contxt[100];\ \ main(argc,argv)\ int argc;\ char *argv[];\ {\ /*-----------------------------------------------------------\ * Declarations.\ * The default identifier - mainIface will only be declared \ * if the interface function is global and of type swidget.\ * To change the identifier to a different name, modify the\ * string mainIface in the file "xtmain.dat". If "mainIface"\ * is declared, it will be used below where the return value\ * of PJ_INTERFACE_FUNCTION_CALL will be assigned to it.\ *----------------------------------------------------------*/ \ \ $PJ_INTERFACE_RETVAL_TYPE\ int i_cnt;\ \ /*---------------------------------\ * Interface function declaration\ *--------------------------------*/ \ \ $PJ_INTERFACE_FUNCTION_DECL\ $PJ_INTERFACE_FUNCTION_ARG_DECL\ \ /*---------------------\ * Initialize program\ *--------------------*/\ \ #ifdef XOPEN_CATALOG\ setlocale(LC_ALL, "");\ #endif\ \ UxTopLevel = XtAppInitialize(&UxAppContext, "$PJ_APP_CLASS_NAME",\ NULL, 0, &argc, argv, NULL, NULL, 0);\ \ UxDisplay = XtDisplay(UxTopLevel);\ UxScreen = XDefaultScreen(UxDisplay);\ \ /* We set the geometry of UxTopLevel so that dialogShells\ that are parented on it will get centered on the screen\ (if defaultPosition is true). */\ \ XtVaSetValues(UxTopLevel,\ XtNx, 0,\ XtNy, 0,\ XtNwidth, DisplayWidth(UxDisplay, UxScreen),\ XtNheight, DisplayHeight(UxDisplay, UxScreen),\ NULL);\ \ /*-------------------------------------------------------\ * Insert initialization code for your application here \ *------------------------------------------------------*/\ \ strcpy(contxt,"");\ if (argc > 1) {\ for (i_cnt=2; i_cnt<=argc; i_cnt++) {\ strcat(contxt,argv[i_cnt-1]);\ strcat(contxt," ");\ contxt[(i_cnt-1)*8] = '\0';\ }\ }\ \ strcat(contxt," ");\ \ /*----------------------------------------------------------------\ * Create and popup the first window of the interface. The \ * return value can be used in the popdown or destroy functions.\ * The Widget return value of PJ_INTERFACE_FUNCTION_CALL will \ * be assigned to "mainIface" from PJ_INTERFACE_RETVAL_TYPE. \ *---------------------------------------------------------------*/\ \ $PJ_INTERFACE_FUNCTION_CALL\ $PJ_POPUP_CALL\ \ /*-----------------------\ * Enter the event loop \ *----------------------*/\ \ $PJ_EVENT_LOOP\ \ }\ *xtmain.PjExplicitEventLoop: {\ \ XEvent event;\ \ for (;;)\ {\ XtAppNextEvent(UxAppContext, &event);\ \ switch (event.type)\ {\ \ /*---------------------------------------------------\ * Insert code here to handle any events that you do\ * not wish to be handled by the interface.\ *---------------------------------------------------*/\ \ default:\ XtDispatchEvent(&event);\ break;\ }\ }\ } *xtmain.PjEdited: 1 *xtmain.PjHasImplicitLoop: 1 *xtmain.PjHasExplicitLoop: 0 *uxmake.class: PJuxmake *uxmake.PjName: uxmake *uxmake.PjParent: Helper *uxmake.PjFileName: makefile *uxmake.PjDate: 823540148 *uxmake.PjMode: 0 *uxmake.PjBody: ########################################################################\ # \ # MAKEFILE FOR STAND-ALONE UX CODE APPLICATION.\ #\ # EXECUTABLE is the name of the executable to be created \ # MAIN is the .c file containing your main() function\ # INTERFACES is a list of the generated C code files \ # APP_OBJS is a (possibly empty) list of the object code\ # files that form the non-interface portion of\ # your application \ #\ # In the first three statements, the variables on the right \ # of the equal sign will be replaced with their corresponding \ # values when the makefile is automatically generated. \ #\ # $Date: 2003-06-04 14:49:21 $ $Revision: 1.1.1.1 $\ #########################################################################\ \ \ include ../../../local/default.mk\ \ CMAIN = $PJ_MAIN_SRC\ CINTERFACES = $PJ_INTERFACES_SRC\ EXEC = do\ EXECUTABLE = ../../exec/$(EXEC).exe\ \ MAIN = $(CMAIN:.c=.o)\ INTERFACES = $(CINTERFACES:.c=.o)\ \ APPL_OBJS = alloc.o applic.o splib.o\ UX_DIR = ../../GraphLib/libsrc/$(UIMX)\ LINC = ../../incl\ \ UX_LIBPATH = -L../../lib\ ST_LIBPATH = ../../../stdred/lib\ \ X_CFLAGS =\ MOTIF_CFLAGS =\ \ CFLAGS = $(C_OPT) $(DEBUG) $(GUI_OPT) \\ -I$(LINC) -I$(INC) -I$(UX_DIR)/include \\ $(X_CFLAGS) $(MOTIF_CFLAGS) -DXOPEN_CATALOG \\ $(XMINC) $(X11INC)\ \ # The following object files are provided to work around a motif bug.\ # They are not necessarily needed to compile your application.\ LIBPATH = $(X11_LIBPATH) $(MOTIF_LIBPATH)\ XLIB = $(LIBPATH) $(X_LIBS) $(XOPEN_LIBS)\ \ LLIB = $(UX_LIBPATH) -luimx -lcom -L$(ST_LIBPATH) -ldo -L$(LIBDIR) -lxcon -lctab -ltw -ltc3 -lmidas\ LIBS = $(LIBDIR)/libxcon.a \\ $(ST_LIBPATH)/libdo.a \\ $(LIBDIR)/libmidas.a\ \ OBJS = $(MAIN) $(INTERFACES) $(APPL_OBJS) \ \ all: tmp_makefile $(EXECUTABLE) \ \ $(EXECUTABLE): $(OBJS) $(LIBS)\ $(LDCC) $(OBJS) $(LLIB) $(XLIB) $(MLIB) $(SLIB) -o $(EXECUTABLE)\ $(STRIP) $(EXECUTABLE)\ @echo "done"\ \ clean:\ $(RM) $(OBJS)\ \ clean_exec:\ $(RM) $(EXECUTABLE)\ \ \ tmp_makefile: makefile\ sed -e 's/^MAIN.*//' \\ -e 's/^INTERFACES.*//' \\ -e 's/^CMAIN/MAIN/' \\ -e 's/^CINTERFACES/INTERFACES/' \\ -e 's/\([^^]\)\.c/\1\.o/g' \\ -e 's/^all: tmp_makefile/all:/' makefile > tmp_makefile\ rm -f makefile\ mv tmp_makefile makefile\ \ \ \ \ \ \ \ \ *uxmake.PjEdited: 1 *xtmake.class: PJxtmake *xtmake.PjName: xtmake *xtmake.PjParent: Helper *xtmake.PjFileName: makefile *xtmake.PjDate: 717121044 *xtmake.PjMode: 1 *xtmake.PjBody: #########################################################################\ #\ # MAKEFILE FOR STAND-ALONE XT CODE APPLICATION. \ #\ # EXECUTABLE is the name of the executable to be created \ # MAIN is the .c file containing your main() function \ # INTERFACES is a list of the generated C code files\ # APP_OBJS is a (possibly empty) list of the object code\ # files that form the non-interface portion of\ # your application\ #\ # In the first three statements, the variables on the right \ # of the equal sign will be replaced with their corresponding\ # values when the makefile is automatically generated.\ #\ # This template is used for makefiles which do not reference \ # the Ux runtime library.\ #\ # $Date: 2003-06-04 14:49:21 $ $Revision: 1.1.1.1 $\ #########################################################################\ \ CC = cc\ EXECUTABLE = ../../exec/Xhelp.exe\ # before : $PJ_EXECUTABLE\ MAIN = $PJ_MAIN_SRC\ INTERFACES = $PJ_INTERFACES_SRC\ APPL_OBJS = UxXt.o\ UX_DIR = ../..\ UX_LIBPATH = $(UX_DIR)/lib\ X_LIBS = -lXm -lXt -lX11\ LINC = ../../incl\ MINC = ../../../incl\ \ #DEBUG = -g\ STRIP = strip\ DEBUG = \ REPAIR = ../utils/lex.yy\ \ X_LIBPATH = $(MIDASHOME)/$(MIDVERS)/gui/libX11\ MOTIF_LIBPATH = $(MIDASHOME)/$(MIDVERS)/gui/libXm\ X_CFLAGS = \ MOTIF_CFLAGS = \ \ CFLAGS = -D_NO_PROTO -I$(LINC) -I$(MINC) -I$(UX_DIR)/include \\ $(X_CFLAGS) $(MOTIF_CFLAGS)\ \ LIBPATH = -L$(X_LIBPATH) -L$(MOTIF_LIBPATH)\ \ # The following object files are provided to work around a motif bug.\\ # They are not necessarily needed to compile your application.\\ #LIBS = $(UX_LIBPATH)/Destroy.o $(UX_LIBPATH)/Desktop.o \\ # $(X_LIBS)\ \ LIBS = $(X_LIBS)\ \ MIDASMON = ../../../monit\ MIDASLIB = ../../../lib\ MIDASLB = $(MIDASMON)/dspout.o $(MIDASMON)/helpme.o \\ $(MIDASLIB)/midaslib.a -lm\ INTERFACE_SRC = $PJ_INTERFACES_SRC\ INTERFACE_OBJ = $(INTERFACES:.c=.o)\ OBJS = $(MAIN:.c=.o) $(INTERFACES:.c=.o) $(APPL_OBJS)\ \ .SUFFIXES: .o .c\ \ .c.o:\ $(CC) -c $(DEBUG) $(CFLAGS) $< -o $@\ \ $(EXECUTABLE): $(OBJS)\ $(CC) $(OBJS) $(LIBPATH) $(LIBS) $(MIDASLB) -o $(EXECUTABLE)\ $(STRIP) $(EXECUTABLE)\ @echo "done"\ \ $(INTERFACE_OBJ):\ $(REPAIR) <$(INTERFACE_SRC) > .tmp\ mv .tmp $(INTERFACE_SRC)\ $(CC) -c $(DEBUG) $(CFLAGS) $(INTERFACE_SRC) -o $@\ \ \ clean:\ rm -f $(OBJS)\ \ clean_exec:\ rm -f $(EXECUTABLE)\ *xtmake.PjEdited: 1