# # Name: Makehead.cygwin # # Purpose: This file is used to customize operating system and installation # dependent features of the MX Tcl makefiles. This version is # customized for Cygwin. # # You must install the Cygwin source package for Tcl/Tk as well # as the binary package, since the header files in the binary # package make reference to header files that are only found in # the source package. Arguably, this is a bug in the the tcltk # binary package. # # #========================================================================= # # Generally, you should not have to modify anything after this point. # CFLAGS += -DUSE_TCL_STUBS # tclInt.h includes 'time' as the formal argument of some declarations. CFLAGS += -Wno-shadow # #--- # MAKEDEPEND = $(CC) -MM $(CFLAGS_EPICS) $(MX_APPINIT_INCLUDES) \ mt_*.c > Makefile.depend MAKEDEPEND_CLEAN = rm Makefile.depend MX_TCL_LIBRARY_NAME = libMxTcl.dll MX_TCL_LIB_OBJS = $(MX_TCL_LIB_SRCS:.c=.o) #----------------------------------------------------------------- MX_TCL_LIBRARY_DELETE = rm $(MX_TCL_LIBRARY_NAME) $(MX_TCL_LIBRARY_NAME): $(MX_TCL_LIB_OBJS) dllwrap -o $(MX_TCL_LIBRARY_NAME) --export-all-symbols \ $(MX_TCL_LIB_DIRS) $(MX_TCL_LIB_OBJS) \ $(MX_TCL_LIBRARIES) -ltclstub$(TCL_VERSION) #----------------------------------------------------------------- INCLUDES = -I/usr/openwin/include -I$(LIBMXSRC) -I$(TCL_DIR)/include MX_TCL_LIB_DIRS = -L$(LIBMXSRC) -L$(TCL_DIR)/lib $(LIB_DIRS) MX_TCL_LIBRARIES = -lMx $(LIBRARIES) #--------------------------------------------------------------------- pkgIndex.tcl: $(MX_TCL_LIBRARY_NAME) mx.tcl ./make_LibMxTcl_index $(MX_ARCH) #----------------------------------------------------------------- mxtcl_install: -mkdir $(MX_INSTALL_DIR)/bin -mkdir $(MX_INSTALL_DIR)/etc -mkdir $(MX_INSTALL_DIR)/etc/mxgui -mkdir $(MX_INSTALL_DIR)/include -mkdir $(MX_INSTALL_DIR)/lib -mkdir $(MX_INSTALL_DIR)/lib/mxtcl -mkdir $(MX_INSTALL_DIR)/lib/mxgui install -m 644 mx_tcl.h $(MX_INSTALL_DIR)/include install -m 755 $(MX_TCL_LIBRARY_NAME) $(MX_INSTALL_DIR)/bin install -m 644 *.tcl $(MX_INSTALL_DIR)/lib/mxtcl install -m 644 ../mxgui/*.tcl $(MX_INSTALL_DIR)/lib/mxgui install -m 755 ../mxgui/mxgui $(MX_INSTALL_DIR)/bin install -m 755 ../mxtcl_script/mxtclsh_script $(MX_INSTALL_DIR)/bin ln -sf ./mxtclsh_script $(MX_INSTALL_DIR)/bin/mxwish_script