#---------------------------------------------------------------------------- # VTT Electronics Configuration description # Embedded Software "make" file # AMES / InName project # Kari Laitinen # # # # File: inname_sohsun1.make # # # # # File history: # # 6.3.95 v0.0 Copied from dspsun2 Kari Laitinen # 30.3.95 v0.1 Last modification Kari Laitinen # # --------------------------------------------------------------------------- # # # Usage: make -f inname.make target_name # # NOTES: # # Tabulator characters indicate continuation in make commands. # # The new qpc version is able to overwrite *.pro files if the output # is not explicitly specified with the -o option. # #----------------------------------------------------------------------- # # M A C R O S # #----------------------------------------------------------------------- QOF_FILES_OF_GRAPHIC_INNAME = inname_reserved_words_of_c.facts.qof \ inname_dictionary_words.facts.qof \ inname_usual_abbreviations.facts.qof \ inname_first_pass.pro.qof \ inname_second_pass.pro.qof \ inname_third_pass.pro.qof \ inname_utilities.pro.qof \ inname_dictionary.pro.qof \ inname_statistics.pro.qof \ inname_comments.pro.qof \ inname_graphic_ui.pro.qof # # Comments on 13.3.1995 # -------------------- # # The problem is that I can link the application successfully, but # it does not run properly. It seems to fail when windows should be # opened. For this reason I can suspect that linking fails because # of somehow incorrect windows-related files. # # - I can link libXt.so and libX11.so instead of the .a versions, but # when I try to run the executable file it reports that it cannot # access the shared object files. # # Possible reasons for the linking problem can be the following: # # - The non-quintus-supplied files like libXt.a and libX11.a do not # co-operate with quintus files # # - Some of the switches -C -d -S etc. for qld etc. are incorrect. # # - Something has gone wrong when the QP 3.2 has been installed on # the sohsun1 machine. This is unlikely because I can interpret # the application with the new Prolog. # # - There is a problem in the new version of Quintus Prolog # runtime generator. # # - There is a problem with new versions of Quintus for Solaris. # # # Comments on 30.3.1995: # --------------------- # # A new version of proxl.qof has been received from Quintus Corporation. # It seems that now runtime generation is possible with both inname and # inname2. # # The executable is not fully independent. There are some dependencies # with /usr/lib/ shared object files (.so). # QLIBS= /opt/quintus/generic/qplib3.2/library/sun4-5/libpl.a \ /opt/quintus/generic/qplib3.2/library/sun4-5/libplm.a \ /opt/quintus/generic/qplib3.2/IPC/TCP/sun4-5/tcp_p.a \ /opt/quintus/generic/qplib3.2/structs/library/sun4-5/structs.a \ /opt/quintus/proxl3.2/library/sun4-5/proxl.a \ /opt/quintus/proxl3.2/library/sun4-5/proxllib.a \ /opt/quintus/bin3.2/sun4-5/libqp.a \ /opt/quintus/bin3.2/sun4-5/libXm.a \ /usr/openwin/lib/libXt.a \ /usr/openwin/lib/libX11.a \ /usr/lib/libnsl.a #------------------------------------------------------------------------- # # D E P E N D E N C Y R U L E S # #------------------------------------------------------------------------- .SUFFIXES: .facts.qof .facts .pro.qof .pro .facts.facts.qof: qpc -c -o $*.facts.qof $*.facts .pro.pro.qof: qpc -c -o $*.pro.qof $*.pro # # To generate an InName with graphic user interface command: # make -f inname_sohsun1.make inname # # Comments on 9.3.95: # =================== # # The new prolog 3.2 manual says that either cc or ld.sh # should be used to generate completely independent applications. # # The library -ldl should be needed, but the file libdl.a is # missing in sohsun1, though libdl.so is there. # # Entry point seems to be the problem now. # inname2: inname.o sh /opt/quintus/bin3.2/sun4-5/ld.sh -o inname2 \ -L/opt/quintus/bin3.2/sun4-5 inname.o $(QLIBS) -lc -ldl -lm -lsocket \ -lw -lintl inname: inname.o cc inname.o $(QLIBS) -lc -ldl -lm -lsocket -lw -lintl -o $@ inname.o: $(QOF_FILES_OF_GRAPHIC_INNAME) qld -C -S -d $(QOF_FILES_OF_GRAPHIC_INNAME) -o $@ tmp: $(QOF_FILES_OF_GRAPHIC_INNAME) qld -c -S -d $(QOF_FILES_OF_GRAPHIC_INNAME) -o $@ # # To compile all .pro files to .pro.qof files command: # make -f inname_sohsun1.make compile # compile: $(QOF_FILES_OF_GRAPHIC_INNAME)