Constantin Kaplinsky | 47ed8d3 | 2004-10-08 09:43:57 +0000 | [diff] [blame^] | 1 | |
| 2 | VNCTOP = $(TOP)/.. |
| 3 | VNCLIBS = VncExtLibs |
| 4 | VNCINCLUDE = -I$(VNCTOP) -I$(VNCTOP)/vncconfig |
| 5 | |
| 6 | #define CplusplusSource |
| 7 | |
| 8 | #include <Server.tmpl> |
| 9 | |
| 10 | #ifdef XVendorString |
| 11 | VENDORSTRING = XVendorString |
| 12 | #else |
| 13 | VENDORSTRING = "unknown" |
| 14 | #endif |
| 15 | |
| 16 | #ifdef XVendorRelease |
| 17 | VENDORRELEASE = XVendorRelease |
| 18 | #else |
| 19 | VENDORRELEASE = 0 |
| 20 | #endif |
| 21 | |
| 22 | VENDOR_STRING = -DVENDOR_STRING=\"$(VENDORSTRING)\" |
| 23 | VENDOR_RELEASE = -DVENDOR_RELEASE="$(VENDORRELEASE)" |
| 24 | |
| 25 | #ifdef OS2Architecture |
| 26 | SRCS1 = os2_stubs.c |
| 27 | OBJS1 = os2_stubs.o |
| 28 | #endif |
| 29 | |
| 30 | SRCSA = xvnc.cc stubs.c $(SRCS1) miinitext.c $(SRCS2) |
| 31 | |
| 32 | OBJSA = xvnc.o stubs.o $(OBJS1) miinitext.o $(OBJS2) |
| 33 | |
| 34 | INCLUDES = -I. -I.. -I$(XBUILDINCDIR) -I$(FONTINCSRC) \ |
| 35 | -I../../cfb -I../../mfb -I../../mi -I../../include -I../../os \ |
| 36 | -I$(EXTINCSRC) -I$(XINCLUDESRC) -I$(SERVERSRC)/render $(VNCINCLUDE) |
| 37 | |
| 38 | DEFINES = $(OS_DEFINES) $(SHMDEF) $(MMAPDEF) \ |
| 39 | $(VENDOR_STRING) $(VENDOR_RELEASE) $(STD_DEFINES) ServerOSDefines \ |
| 40 | -UXFree86LOADER |
| 41 | |
| 42 | #ifdef XFree86Version |
| 43 | /* |
| 44 | * Make sure XINPUT, XF86VidTune, etc arent defined for the miinitext.o |
| 45 | * used by Xvnc |
| 46 | */ |
| 47 | EXT_DEFINES = ExtensionDefines -UXINPUT -UXF86VIDMODE -UXFreeXDGA -UXF86MISC |
| 48 | #endif |
| 49 | |
| 50 | |
| 51 | SRCS = $(SRCSA) $(SRCSB) $(SRCSC) |
| 52 | OBJS = $(OBJSA) $(OBJSB) $(OBJSC) |
| 53 | |
| 54 | NormalLibraryObjectRule() |
| 55 | NormalLibraryTarget(xvnc,$(OBJS) buildtime.o) |
| 56 | |
| 57 | #ifdef OS2Architecture |
| 58 | LinkSourceFile(os2_stubs.c,../xfree86/os-support/os2) |
| 59 | SpecialCObjectRule(os2_stubs,$(ICONFIGFILES),-DOS2NULLSELECT) |
| 60 | #endif |
| 61 | |
| 62 | #ifdef HasGcc |
| 63 | NO_OPERATOR_NAMES = -fno-operator-names |
| 64 | #endif |
| 65 | LinkSourceFile(stubs.c,../../Xi) |
| 66 | SpecialCplusplusObjectRule(xvnc,$(ICONFIGFILES) xvnc,$(EXT_DEFINES) $(NO_OPERATOR_NAMES)) |
| 67 | |
| 68 | LinkSourceFile(miinitext.c,$(SERVERSRC)/mi) |
| 69 | SpecialCObjectRule(miinitext,$(ICONFIGFILES),$(EXT_DEFINES) $(PAN_DEFINES) -DNO_HW_ONLY_EXTS -DNO_MODULE_EXTS $(EXT_MODULE_DEFINES) -UXFree86LOADER) |
| 70 | |
| 71 | /* InstallManPage(Xvfb,$(MANDIR)) */ |
| 72 | DependTarget() |
| 73 | |
| 74 | buildtime.o: $(OBJS) ../LibraryTargetName(vnc) $(VNCLIBS) |