You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

Imakefile 1.7KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061
  1. VNCUNIXDIR = VncUnixDir
  2. VNCCOMMONDIR = VncCommonDir
  3. VNCLIBS = VncExtLibs
  4. VNCINCLUDE = -I$(VNCCOMMONDIR) -I$(VNCUNIXDIR)/vncconfig
  5. #define CplusplusSource
  6. #define IHaveModules
  7. #include <Server.tmpl>
  8. SRCS = vncExtInit.cc vncHooks.cc xf86vncModule.cc XserverDesktop.cc
  9. OBJS = vncExtInit.o vncHooks.o xf86vncModule.o XserverDesktop.o
  10. INCLUDES = -I.. -I../../include -I$(EXTINCSRC) -I$(XINCLUDESRC) \
  11. -I$(FONTINCSRC) -I$(XF86COMSRC) \
  12. -I../../render $(VNCINCLUDE)
  13. DEFINES = $(STD_DEFINES) -DGC_HAS_COMPOSITE_CLIP -DXFree86LOADER
  14. LinkSourceFile(vncExtInit.cc,..)
  15. LinkSourceFile(vncHooks.cc,..)
  16. LinkSourceFile(xf86vncModule.cc,..)
  17. LinkSourceFile(XserverDesktop.cc,..)
  18. ModuleObjectRule()
  19. /*
  20. LibraryModuleTarget(vnc,$(OBJS) $(VNCLIBS))
  21. InstallLibraryModule(vnc,$(MODULEDIR),extensions)
  22. */
  23. /* *** The imake rules don't define a ModuleCplusplusObjectRule so
  24. for now we just assume that NormalCplusplusObjectRule will
  25. do the job.
  26. NB: If we don't do this then make will assume CC is the C++ compiler!
  27. */
  28. NormalCplusplusObjectRule()
  29. /*
  30. * CplusplusDynamicModuleTarget - build a module to be dynamically loaded
  31. */
  32. #ifndef CplusplusDynamicModuleTarget
  33. #define CplusplusDynamicModuleTarget(module,modlist) @@\
  34. AllTarget(module) @@\
  35. @@\
  36. module: modlist @@\
  37. RemoveFile($@) @@\
  38. $(CXX) -o $@ $(SHLIBLDFLAGS) modlist @@\
  39. @@\
  40. clean:: @@\
  41. RemoveFile(module)
  42. #endif /* CplusplusDynamicModuleTarget */
  43. CplusplusDynamicModuleTarget(vnc.so,$(OBJS) $(VNCLIBS))
  44. InstallDynamicModule(vnc.so,$(MODULEDIR),extensions)
  45. DependTarget()
  46. /*
  47. InstallDriverSDKLibraryModule(vnc,$(DRIVERSDKMODULEDIR),extensions)
  48. */