recipes

packages recipes for the <noname> package manager
Log | Files | Refs

standard_definitions.mk (2128B)


      1 
      2 CC= cc
      3 
      4 CFLAGs= -I${libtinyx11}/include -I${libz}/include
      5 COMPFLAGS= -pipe -fPIC -Os -Wall \
      6 -D_BSD_SOURCE -D_GNU_SOURCE -D__KERNEL_STRICT_NAMES \
      7 -fno-strength-reduce -nodefaultlibs -fno-strict-aliasing \
      8 -ffunction-sections -fdata-sections -I. \
      9 $(CFLAGs)
     10 
     11 ####extensions####
     12 DPMS=-DDPMSExtension
     13 SCREENSAVER=-DSCREENSAVER
     14 MIT-SHM=-DMITSHM
     15 RENDER=-DRENDER
     16 #FIXME:if not defined dont define PANORAMIX=-DPANORAMIX
     17 SHAPE=-DSHAPE
     18 SYNC=-DXSYNC
     19 TOG-CUP=-DTOGCUP
     20 XCMISC=-DXCMISC
     21 XTEST=-DXTEST
     22 XTRAP=-DXTRAP
     23 XV=-DXV
     24 RANDR=-DRANDR
     25 XRECORD=-DXRECORD
     26 FONTCACHE=-DNOFONTSERVERACCESS	# -DFONTCACHE or -DNOFONTSERVERACCESS
     27 
     28 ####not working####
     29 #XINPUT=-DXINPUT	#NOT WORKING!
     30 #XKB=-DXKB/XKB_IN_SERVER=-DXKB	#NOT WORKING!
     31 
     32 ####others####
     33 #SERVER_LOCK=-DSERVER_LOCK
     34 #SMART_SCHEDULE=-DSMART_SCHEDULE
     35 USE_RGB_TXT=-DUSE_RGB_TXT
     36 #XDMCP=-DXDMCP
     37 PANORAMIX=-DPANORAMIX
     38 
     39 ####where to look for fonts/colors####
     40 # Puppy:
     41 #FONTPATH=/usr/X11R7/lib/X11/fonts/misc/
     42 #RGB=/usr/X11R7/lib/X11/rgb
     43 # Debian:
     44 FONTPATH=/usr/share/fonts/X11/misc/
     45 RGB=/usr/share/X11/rgb
     46 
     47 #Lazyux
     48 #FONTPATH="/usr/share/fonts/misc/,/usr/share/fonts/truetype/,/usr/share/fonts/X11/100dpi/,/usr/share/fonts/X11/75dpi/\" 
     49 #-DRGB_DB=\"/usr/share/X11/rgb.txt\" \
     50 
     51 #all deactivated creates 543K Xvesa
     52 #all activated creates 728K Xvesa
     53 COMMONDEFS=$(COMPFLAGS) \
     54 -DNOERROR \
     55 -Dlinux \
     56 -D_POSIX_SOURCE \
     57 -D_BSD_SOURCE \
     58 -DTOSHIBA_SMM \
     59 -D_SVID_SOURCE \
     60 -D_GNU_SOURCE \
     61 -DX_LOCALE \
     62 -DKDRIVESERVER \
     63 -DGCCUSESGAS \
     64 -DDDXOSINIT \
     65 $(FONTCACHE) \
     66 -DNDEBUG \
     67 -DNARROWPROTO \
     68 -DPIXPRIV \
     69 $(XTEST) \
     70 -DFUNCPROTO=15 \
     71 -DCOMPILEDDEFAULTFONTPATH=\"${FONTPATH}\" \
     72 -DRGB_DB=\"${RGB}\" \
     73 -D_POSIX_C_SOURCE=2 \
     74 $(DPMS) \
     75 $(SYNC) \
     76 $(PANORAMIX) \
     77 $(SHAPE) \
     78 $(TOG-CUP) \
     79 $(MIT-SHM) \
     80 $(RENDER) \
     81 $(SCREENSAVER) \
     82 $(SERVER_LOCK) \
     83 $(SMART_SCHEDULE) \
     84 $(XCMISC) \
     85 $(XDMCP) \
     86 $(XTRAP) \
     87 $(XV) \
     88 $(XINPUT) \
     89 $(XKB) \
     90 $(XKB_IN_SERVER) \
     91 $(RANDR) \
     92 $(XRECORD) \
     93 $(USE_RGB_TXT) \
     94 $(PIXPRIV) \
     95 $(X_LOCALE) \
     96 $(XF86BIGFONT) \
     97 $(BIGREQS) \
     98 -D__KERNEL_STRICT_NAMES
     99 
    100 LINKDIR=-L${libtinyx11}/lib -L${libz}/lib
    101 LDFLAGS=-static -Wl,--gc-sections,--sort-common,-s $(LINKDIR)
    102 
    103 PREDIR=
    104 LIBDIR=lib
    105 INCDIR=include
    106 BINDIR=bin