Fengli,

Look for each instance of "EMCSHSRCS" for example. You will want to create a
variable for your gui, and then add an entry corresponding to each existing
instance of EMCSHSRC. For example, you will want to add something like the
following:

MYGUISRCS := emc/usr_intf/mydir/mygui.cc \
             emc/usr_intf/shcom.cc \
             [any other files for your GUI needing to be compiled]

USERSRCS += $(EMCSHSRCS) $(EMCRSHSRCS) $(EMCLCDSRCS) $(IOSHSRCS)
$(USRMOTSRCS) $(HALUISRCS) $(KEYSTICKSRCS)$(MYGUISRCS)

../bin/mygui: $(call TOOBJS, $(MYGUISRCS)) ../lib/libemc.a ../lib/libemcini.
so.0 ../lib/libnml.so.0
        $(ECHO) Linking $(notdir $@)
        $(CXX) $(LDFLAGS) -o $@ $(ULFLAGS) $(TCL_CFLAGS) $^ $(TCL_LIBS)
TARGETS += ../bin/mygui

Obviously substituting the actual name and path if necessary of your GUI.
Also you will need to add the qt libraries and any other libraries or object
files used by and unique to your application. If all compiles and links
correctly, your executable will be written to the bin directory.

Regards,
Eric

> Having make my own gui by qt, I was told that I should modify 
> the Submakefile located in emc2\src\emc\usr_intf directory 
> after adding my own gui source code into emc2. I have placed 
> my own gui source coed in emc2\src\emc\usr_intf directory, 
> named zflgui(it's a folder in fact, in which a few source 
> file is located, such as mygui.h, mygui.cc ect.). 
> But I know nothing about modifying the Submakefile. Could 
> anyone provide some relevant referance?


-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
Emc-developers mailing list
Emc-developers@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/emc-developers

Reply via email to