To enable your application to reference desktop libraries, add:
-L/usr/dt/lib -l<libname1> -l<libname2>...
to each makefile's link line, where libname1, libname2 are the names of libraries your application needs to reference. You can include as many desktop library names in this line as you want. For example:
-L/usr/dt/lib -lDtSvc -ltt -lXm
enables your application to reference the Desktop Services, ToolTalk Messaging System, and Motif 1.2 libraries.