Skip to content
Snippets Groups Projects
Commit 1ca1c3fd authored by Tony Farrell's avatar Tony Farrell Committed by afarrell
Browse files

Add Makefile.am

   Add Makefile.am - used by 2dFdr to autoconfigure DramaDits.
parent 0a37af4d
Branches
Tags 3.40
No related merge requests found
# M a k e f i le . a m
#+
# File:
# Makefile.am
#
# Function:
# Gnu automake source file for DTCL.
#
# Description:
# This file is an experimental GNU automake source for the DTCL library.
# It is currently set up for use with 2dfdr.
#
# Builds the dtcl library and the dtcl_err include files.
#
# Author: Tony Farrell
#
# Copyright (c) Anglo-Australian Telescope Board, 2009.
# Not to be used for commercial purposes without AATB permission.
#
# @(#) $Id$
#
# History:
# 19-Aug-2009 - TJF - Original version.
#
#-
#
# Get rules for processing .msg files.
#
include $(top_srcdir)/Makefile.drama_rules
# All of these are generated from dtcl_err.msg and dcpp_err.msg
BUILT_SOURCES = Dtcl_Err.h Dtcl_Err.tcl Dtcl_Err_msgt.h
# Have to do this one by hand.
Dtcl_Err_msgt.h : Dtcl_Err.msg
$(MESSGEN) -o -t -x $@ $<
#
# ### What is the correct autoconfigure way of doing this? ###
#
DTCL_VERSION=$(shell cat $(srcdir)/.mid)
#
# Reference the include files we need.
#
AM_CPPFLAGS = $(DRAMA_INCLUDES) $(DRAMA_DEFINES) '-DDTCL_VERSION="$(DTCL_VERSION)"' \
-I$(abs_top_srcdir)/tcl/Tcl/generic \
-I$(abs_top_srcdir)/tcl/Tk/generic
#
# Build the dtcl library - but don't install it (not for 2dFdr anyway, might
# want to install it for DRAMA)
#
noinst_LIBRARIES=libdtcl.a
#
# Indicate that we don't want this header installed (not for 2dFdr anyway, will
# wait to install it for DRAMA)
#
#noinst_HEADERS=
#
# Build the dtcl library - but don't install it (not for 2dFdr anyway, might
# want to install it for DRAMA)
#
#
# Sources for the library.
#
libdtcl_a_SOURCES = dtclcommand.c dtclload.c dtcldits.c dtclrunning.c \
dtclcmderror.c dtcltkinit.c dtcltk.c dtclsdsimg.c dtclbackgnd.c \
dtclreqnot.c dtclersrep.c dtclact.c dtclshareinit.c dtclfileproc.c \
dtclstdin.c dtclsds.c dtcltkscreeninfo.c
# Clean up the built files
clean-local :
- $(RM) $(BUILT_SOURCES)
......@@ -57,7 +57,7 @@
#if HasTcl
#BeginConfig
#DramaSystem /* Indicates we are part of drama itself */
ACMM_RELEASE=3_39$(ACMMBUILDVER)
ACMM_RELEASE=3_40$(ACMMBUILDVER)
RELEASE=r$(ACMM_RELEASE)
SYSTEM=dtcl /* System name (for release */
INCLUDES=DramaIncl $(TCLTK_INCL)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment