2001-02-24 06:58:54 +00:00
|
|
|
## Process this file with automake to produce Makefile.in
|
|
|
|
#
|
|
|
|
# Makefile.am
|
|
|
|
#
|
|
|
|
# Automake-using build system for QuakeForge
|
|
|
|
#
|
|
|
|
# Copyright (C) 2000 Jeff Teunissen <deek@quakeforge.net>
|
|
|
|
#
|
|
|
|
# This Makefile is free software; you can redistribute it and/or
|
|
|
|
# modify it under the terms of the GNU General Public License
|
|
|
|
# as published by the Free Software Foundation; either version 2
|
|
|
|
# of the License, or (at your option) any later version.
|
|
|
|
#
|
|
|
|
# This program is distributed in the hope that it will be useful,
|
|
|
|
# but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
|
|
|
|
#
|
|
|
|
# See the GNU General Public License for more details.
|
|
|
|
#
|
|
|
|
# You should have received a copy of the GNU General Public License
|
|
|
|
# along with this program; if not, write to:
|
|
|
|
#
|
|
|
|
# Free Software Foundation, Inc.
|
|
|
|
# 59 Temple Place - Suite 330
|
|
|
|
# Boston, MA 02111-1307, USA
|
|
|
|
#
|
|
|
|
# $Id$
|
|
|
|
#
|
|
|
|
AUTOMAKE_OPTIONS= foreign
|
|
|
|
|
2002-01-22 05:48:03 +00:00
|
|
|
QFCC_LIBS=@QFCC_LIBS@
|
|
|
|
QFCC_DEPS=@QFCC_DEPS@
|
|
|
|
QFCC_INCS=@QFCC_INCS@
|
|
|
|
|
|
|
|
INCLUDES= -I$(top_srcdir)/include $(QFCC_INCS)
|
2004-11-02 05:19:00 +00:00
|
|
|
YFLAGS = -v -d
|
2001-02-24 06:58:54 +00:00
|
|
|
|
2002-09-17 22:19:14 +00:00
|
|
|
if BUILD_QFCC
|
|
|
|
qfcc=qfcc
|
2011-01-06 07:32:53 +00:00
|
|
|
qfpc=qfpc
|
2004-01-28 05:34:23 +00:00
|
|
|
qfpreqcc=qfpreqcc
|
2004-01-28 05:23:43 +00:00
|
|
|
qfprogs=qfprogs
|
2002-09-17 22:19:14 +00:00
|
|
|
else
|
|
|
|
qfcc=
|
2011-01-06 07:32:53 +00:00
|
|
|
qfpc=
|
2004-01-28 05:34:23 +00:00
|
|
|
qfpreqcc=
|
2004-01-28 05:23:43 +00:00
|
|
|
qfprogs=
|
2002-09-17 22:19:14 +00:00
|
|
|
endif
|
|
|
|
|
2011-01-06 07:32:53 +00:00
|
|
|
bin_PROGRAMS= $(qfcc) $(qfpc) $(qfprogs)
|
2004-01-28 05:34:23 +00:00
|
|
|
bin_SCRIPTS= $(qfpreqcc)
|
2011-01-06 07:32:53 +00:00
|
|
|
EXTRA_PROGRAMS= qfcc qfpc qfprogs
|
2001-02-24 06:58:54 +00:00
|
|
|
|
2011-01-06 07:30:25 +00:00
|
|
|
common_src=\
|
2011-01-21 11:31:40 +00:00
|
|
|
class.c codespace.c constfold.c cpp.c debug.c def.c defspace.c dot_expr.c \
|
2011-01-22 02:39:05 +00:00
|
|
|
dot_flow.c emit.c \
|
2011-01-17 13:33:33 +00:00
|
|
|
expr.c function.c grab.c idstuff.c immediate.c linker.c method.c \
|
2011-01-24 06:41:43 +00:00
|
|
|
obj_stub.c opcodes.c options.c qfcc.c reloc.c statements.c strpool.c \
|
2011-01-19 06:47:45 +00:00
|
|
|
struct.c switch.c symtab.c type.c
|
2002-06-01 05:37:18 +00:00
|
|
|
|
2011-01-06 07:30:25 +00:00
|
|
|
qfcc_SOURCES= qc-lex.l qc-parse.y $(common_src)
|
2002-01-22 05:48:03 +00:00
|
|
|
qfcc_LDADD= $(QFCC_LIBS)
|
|
|
|
qfcc_DEPENDENCIES= $(QFCC_DEPS)
|
2002-06-03 03:45:24 +00:00
|
|
|
|
2011-01-06 07:32:53 +00:00
|
|
|
qfpc_SOURCES= qp-lex.l qp-parse.y $(common_src)
|
|
|
|
qfpc_LDADD= $(QFCC_LIBS)
|
|
|
|
qfpc_DEPENDENCIES= $(QFCC_DEPS)
|
|
|
|
|
2004-01-28 05:23:43 +00:00
|
|
|
qfprogs_SOURCES= \
|
2011-01-24 06:41:43 +00:00
|
|
|
disassemble.c globals.c lines.c modules.c obj_stub.c stub.c qfprogs.c strings.c
|
2004-01-28 05:23:43 +00:00
|
|
|
qfprogs_LDADD= $(QFCC_LIBS)
|
|
|
|
qfprogs_DEPENDENCIES= $(QFCC_DEPS)
|
2002-07-12 06:19:02 +00:00
|
|
|
|
2011-01-06 07:32:53 +00:00
|
|
|
BUILT_SOURCES=qc-parse.c qc-parse.h qc-lex.c qp-parse.c qp-parse.h qp-lex.c
|
2003-08-12 18:22:11 +00:00
|
|
|
|
2011-01-06 07:32:53 +00:00
|
|
|
EXTRA_DIST=qc-lex.c qc-parse.c qc-parse.h qfpreqcc \
|
|
|
|
qp-parse.c qp-parse.h qp-lex.c
|