1# 2# RTEMS Protean Makefile definitions 3# 4 5# TO BUILD THE TK GUI VERSION OF MDP EDIT THE FOLLOWING NUMBERED 6# ITEMS AS NEEDED FOR YOUR SYSTEM 7# (This has only been tested with TCL/TK 8.0 but it probably 8# will work with Tcl7.x/Tk4.x with a little tweaking to 9# the list of TCL_SCRIPTS (library scripts) given below) 10 11# 1) Where to find the Tcl standard library scripts 12# (e.g. init.tcl, ...) 13# TCL_SCRIPT_PATH = /usr/local/lib/tcl8.0 14 15# 2) Where to find the Tk standard library scripts 16# (e.g. button.tcl, entry.tcl, ...) 17# TK_SCRIPT_PATH = /usr/local/lib/tk8.0 18 19# 3) Where to find Tcl/Tk header files 20# (e.g. tcl.h, tk.h, ...) 21# TCL_INCL_PATH = -I/usr/local/include 22 23# 4) Point to specific libtcl.a and libtk.a to use 24# TCL_LIB = /usr/local/lib/libtcl8.0.a 25# TK_LIB = /usr/local/lib/libtk8.0.a 26 27 28# 5) System specific additional libraries, include paths, etc 29# (Where to find X11 libraries, etc) 30# 31#SYSTEM_INCLUDES = -I/usr/X11R6/include 32#SYSTEM_LDFLAGS = -L/usr/X11R6/lib 33#SYSTEM_LIBS = -ldl 34SYSTEM_INCLUDES = 35SYSTEM_LDFLAGS = 36SYSTEM_LIBS = 37 38# 6) System specific capabilities 39# Must choose appropriate for the following: 40# 41# A) -DHAVE_CUSERID (preferred) or -DHAVE_GETLOGIN for cuserid() or getlogin() 42# functions to obtain user's login name (We may change this to getpwd() 43# if that is better across different platforms and login environments) 44# 45# B) -DHAVE_LOCKF (preferred) or -DHAVE_FLOCK for lockf() or flock() file locking 46# functions to attempt exclusive lock on writing to files 47# 48# C) Specify -DHAVE_DIRFD if your system provides the "dirfd()" function 49# (Most don't have it defined ... but some do) 50# 51# D) Optionally specify -DHAVE_ASSERT if your system has a built-in ASSERT() 52# routine. 53# 54# E) The MDP code's use of offset pointers requires special treatment 55# for some different compilers. Set -DUSE_INHERITANCE for some 56# to keep some compilers (gcc 2.7.2) happy. 57# 58# F) Some systems (SOLARIS/SUNOS) have a few gotchas which require 59# some #ifdefs to avoid compiler warnings ... so you might need 60# to specify -DSOLARIS or -DSUNOS depending on your OS. 61# 62# G) Uncomment this if you have the NRL IPv6+IPsec software 63#DNETSEC = -DNETSEC -I/usr/inet6/include 64# 65# (We export these for other Makefiles as needed) 66# 67 68export SYSTEM_HAVES = -DHAVE_GETLOGIN -DHAVE_ASSERT $(NETSEC) 69 70export CC = $(shell make --no-print-directory -f Makefile.rtems-sub print_cc) 71export SYSTEM_CFLAGS = -Wall -Wcast-align -pedantic -fPIC 72export SYSTEM_SOFLAGS = -shared 73export AR = $(shell make --no-print-directory -f Makefile.rtems-sub print_ar) 74export RANLIB = $(shell make --no-print-directory -f Makefile.rtems-sub print_ranlib) 75 76TARGET_MAKEFILE=Makefile.rtems 77include Makefile.common 78