File:  [Coherent Logic Development] / freem / src / Makefile.am
Revision 1.19: download - view: text, annotated - select for diffs
Sun May 18 18:15:38 2025 UTC (2 months, 2 weeks ago) by snw
Branches: MAIN
CVS tags: HEAD
Add ZEDIT command for editing routines

    1: #
    2: #   $Id: Makefile.am,v 1.19 2025/05/18 18:15:38 snw Exp $
    3: #    automake rules for main body of FreeM source code
    4: #
    5: #  
    6: #   Author: Serena Willis <jpw@coherent-logic.com>
    7: #    Copyright (C) 1998 MUG Deutschland
    8: #    Copyright (C) 2020, 2025 Coherent Logic Development LLC
    9: #
   10: #
   11: #   This file is part of FreeM.
   12: #
   13: #   FreeM is free software: you can redistribute it and/or modify
   14: #   it under the terms of the GNU Affero Public License as published by
   15: #   the Free Software Foundation, either version 3 of the License, or
   16: #   (at your option) any later version.
   17: #
   18: #   FreeM is distributed in the hope that it will be useful,
   19: #   but WITHOUT ANY WARRANTY; without even the implied warranty of
   20: #   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
   21: #   GNU Affero Public License for more details.
   22: #
   23: #   You should have received a copy of the GNU Affero Public License
   24: #   along with FreeM.  If not, see <https://www.gnu.org/licenses/>.
   25: #
   26: #   $Log: Makefile.am,v $
   27: #   Revision 1.19  2025/05/18 18:15:38  snw
   28: #   Add ZEDIT command for editing routines
   29: #
   30: #   Revision 1.18  2025/05/17 17:00:05  snw
   31: #   Make it possible to select the modernized global handler with the configure script and update documentation and README.md
   32: #
   33: #   Revision 1.17  2025/05/14 15:30:07  snw
   34: #   Return build configuration to default
   35: #
   36: #   Revision 1.16  2025/05/12 14:26:15  snw
   37: #   Revert bad change in shared memory manager
   38: #
   39: #   Revision 1.15  2025/04/13 04:33:35  snw
   40: #   Remove -Wall -Wextra -pedantic -D_FORTIFY_SOURCE=1
   41: #
   42: #   Revision 1.14  2025/04/13 04:22:43  snw
   43: #   Fix snprintf calls
   44: #
   45: #   Revision 1.13  2025/04/12 00:54:17  snw
   46: #   Set -fno-stack-protector and -fno-mudflap where available, and set _FORTIFY_SOURCE to 0 everywhere
   47: #
   48: #   Revision 1.12  2025/04/12 00:42:07  snw
   49: #   Remove -Wall and all supporting directives
   50: #
   51: #   Revision 1.11  2025/04/09 19:52:02  snw
   52: #   Eliminate as many warnings as possible while building with -Wall
   53: #
   54: #   Revision 1.10  2025/04/09 15:30:03  snw
   55: #   Check which platform builds fail with -Wall -pedantic
   56: #
   57: #   Revision 1.9  2025/04/08 14:45:33  snw
   58: #   Add global_bltin.h to src/Makefile.am
   59: #
   60: #   Revision 1.8  2025/04/02 02:22:49  snw
   61: #   Remove -Wformat-truncation
   62: #
   63: #   Revision 1.7  2025/03/31 16:33:56  snw
   64: #   Work on fmadm edit global
   65: #
   66: #   Revision 1.6  2025/03/30 01:36:58  snw
   67: #   Make it easier to bring back fma_gedit, fix double-free in global handler, limit $CHAR to 7-bit ASCII
   68: #
   69: #   Revision 1.5  2025/03/09 19:14:24  snw
   70: #   First phase of REUSE compliance and header reformat
   71: #
   72: #
   73: # SPDX-FileCopyrightText:  (C) 2025 Coherent Logic Development LLC
   74: # SPDX-License-Identifier: AGPL-3.0-or-later
   75: #
   76: 
   77: AM_CFLAGS = -fsigned-char
   78: AM_CPPFLAGS = -DHACK_NOXLATE -D_FORTIFY_SOURCE=0 -DSYSCONFDIR=\"${sysconfdir}\" -DPREFIX=\"${prefix}\" -DDATADIR=\"${datadir}\" -DLOCALSTATEDIR=\"${localstatedir}\" -DHOST=\"${host_triplet}\"
   79: 
   80: freem_headers = config.h errmsg.h events.h fmadm.h fma_globals.h fma_jobs.h \
   81:                 fma_journals.h fma_locks.h fma_routines.h freem.h iftab.h iniconf.h \
   82:                 init.h io_socket.h jnldefs.h journal.h libfill.h log.h mdebug.h \
   83:                 merge.h merr.h mpsdef0.h mpsdef.h mref.h mtok.h namespace.h sighnd.h ssvn_zrpi.h \
   84: 		transact.h version.h consttbl.h mwapi_window.h mwapi_event.h shmmgr.h locktab.h \
   85: 		jobtab.h tp_check.h datatypes.h objects.h mcommand.h routine.h fs.h global_bltin.h
   86: 
   87: freem_commands = cmd_map.c cmd_unmap.c cmd_then.c cmd_throw.c cmd_const.c cmd_kvalue.c \
   88: 		 cmd_ksubscripts.c cmd_tstart.c cmd_tcommit.c cmd_trollback.c cmd_if.c \
   89:                  cmd_using.c cmd_with.c cmd_write.c cmd_else.c cmd_read.c cmd_zedit.c
   90: 
   91: freem_common = iniconf.c sighnd.c init.c expr.c global_dispatch.c mlib.c namespace.c operator.c \
   92: 				  service.c ssvn.c ssvn_character.c ssvn_device.c ssvn_display.c \
   93: 				  ssvn_event.c ssvn_global.c ssvn_job.c ssvn_library.c ssvn_lock.c ssvn_routine.c \
   94: 				  ssvn_system.c ssvn_window.c ssvn_z.c ssvn_zos.c ssvn_zprocess.c \
   95: 				  ssvn_zfile.c ssvn_zfreem.c strings.c symtab_dispatch.c symtab_bltin.c views.c xecline.c \
   96: 				  transact.c iftab.c journal.c mref.c events.c \
   97: 				  mdebug.c log.c io_socket.c merr.c mtok.c \
   98: 				  ssvn_zrpi.c consttbl.c mwapi_window.c mwapi_event.c shmmgr.c \
   99: 				  locktab.c jobtab.c tp_check.c datatypes.c objects.c ssvn_object.c \
  100: 				  mcommand.c routine.c fs.c $(freem_commands) $(freem_headers)
  101: 
  102: fmadm_common = fmadm.c fma_locks.c fma_journals.c fma_routines.c fma_globals.c fma_jobs.c fma_gedit.c
  103: #fmadm_common = fmadm.c fma_locks.c fma_journals.c fma_routines.c fma_globals.c fma_jobs.c
  104: 
  105: if USE_NEWGLOBALS
  106: freem_common += newglobal_bltin.c
  107: else
  108: freem_common += global_bltin.c
  109: endif
  110: 
  111: bin_PROGRAMS = freem fmadm
  112: lib_LTLIBRARIES = libfreem.la
  113: 
  114: include_HEADERS = freem.h merr.h
  115: 
  116: libfreem_la_SOURCES = $(freem_common) frmgbl.c
  117: 
  118: libfreem_la_CFLAGS = $(AM_CFLAGS) $(FREEM_CFLAGS) -DLIBFREEM
  119: 
  120: freem_SOURCES = mumps.c $(freem_common) frmgbl.c
  121: 
  122: freem_CFLAGS = $(AM_CFLAGS) $(FREEM_CFLAGS) # @X_CFLAGS@
  123: 
  124: fmadm_SOURCES =  $(fmadm_common) $(freem_common) frmgbl.c
  125: 
  126: fmadm_CFLAGS = $(AM_CFLAGS) $(FREEM_CFLAGS)
  127: 
  128: # freem_LDFLAGS = @X_LIBS@
  129: 
  130: freem_LDADD = $(FREEM_LIBS)
  131: 
  132: #fmadm_LDADD = $(FREEM_LIBS) @CURSES_LIB@
  133: fmadm_LDADD = $(FREEM_LIBS)
  134: 
  135: 

FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>