1### @configure_input@
2
3## Copyright 1985, 1986, 1987 by the Massachusetts Institute of Technology
4
5## Permission to use, copy, modify, and distribute this
6## software and its documentation for any purpose and without
7## fee is hereby granted, provided that the above copyright
8## notice appear in all copies and that both that copyright
9## notice and this permission notice appear in supporting
10## documentation, and that the name of M.I.T. not be used in
11## advertising or publicity pertaining to distribution of the
12## software without specific, written prior permission.
13## M.I.T. makes no representations about the suitability of
14## this software for any purpose.  It is provided "as is"
15## without express or implied warranty.
16
17
18## Copyright (C) 2001-2021 Free Software Foundation, Inc.
19
20## This program is free software: you can redistribute it and/or modify
21## it under the terms of the GNU General Public License as published by
22## the Free Software Foundation, either version 3 of the License, or
23## (at your option) any later version.
24
25## This program is distributed in the hope that it will be useful,
26## but WITHOUT ANY WARRANTY; without even the implied warranty of
27## MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
28## GNU General Public License for more details.
29
30## You should have received a copy of the GNU General Public License
31## along with this program.  If not, see <https://www.gnu.org/licenses/>.
32
33
34### Commentary:
35
36## To the best of our knowledge, this code was originally based on the
37## X11 oldXMenu Makefile, which was automatically generated from the
38## X11 oldXMenu Imakefile.  There was no explicit copyright information
39## in the Imakefile, therefore we have added the same MIT license as
40## used by the rest of the oldXMenu code.
41
42
43### Code:
44
45srcdir=@srcdir@
46top_builddir = @top_builddir@
47# MinGW CPPFLAGS may use this.
48abs_top_srcdir=@abs_top_srcdir@
49VPATH=@srcdir@
50C_SWITCH_X_SITE=@C_SWITCH_X_SITE@
51C_SWITCH_SYSTEM=@C_SWITCH_SYSTEM@
52C_SWITCH_MACHINE=@C_SWITCH_MACHINE@
53PROFILING_CFLAGS = @PROFILING_CFLAGS@
54WARN_CFLAGS = @WARN_CFLAGS@
55WERROR_CFLAGS = @WERROR_CFLAGS@
56
57EXTRA=insque.o
58CC=@CC@
59CFLAGS=@CFLAGS@
60CPPFLAGS = @CPPFLAGS@
61
62RM = rm -f
63RANLIB = @RANLIB@
64AR = @AR@
65ARFLAGS = @ARFLAGS@
66MKDIR_P = @MKDIR_P@
67EXEEXT = @EXEEXT@
68
69OBJS =  Activate.o \
70	AddPane.o \
71	AddSel.o \
72	ChgPane.o \
73	ChgSel.o \
74	Create.o \
75	DelPane.o \
76	DelSel.o \
77	Destroy.o \
78	Error.o \
79	EvHand.o \
80	FindPane.o \
81	FindSel.o \
82	InsPane.o \
83	InsSel.o \
84	Internal.o \
85	Locate.o \
86	Post.o \
87	Recomp.o \
88	SetAEQ.o \
89	SetFrz.o \
90	SetPane.o \
91	SetSel.o \
92      XDelAssoc.o XLookAssoc.o XCrAssoc.o XDestAssoc.o XMakeAssoc.o
93
94all: libXMenu11.a
95.PHONY: all
96
97-include ${top_builddir}/src/verbose.mk
98
99AUTO_DEPEND = @AUTO_DEPEND@
100DEPDIR = deps
101ifeq ($(AUTO_DEPEND),yes)
102  DEPFLAGS = -MMD -MF $(DEPDIR)/$*.d -MP
103  -include $(ALLOBJS:%.o=$(DEPDIR)/%.d)
104else
105  DEPFLAGS =
106  include $(srcdir)/deps.mk
107endif
108
109ALL_CFLAGS=$(C_SWITCH_SYSTEM) $(C_SWITCH_MACHINE) \
110  $(C_SWITCH_X_SITE) $(DEPFLAGS) \
111  $(WARN_CFLAGS) $(WERROR_CFLAGS) ${PROFILING_CFLAGS} \
112  $(CPPFLAGS) $(CFLAGS) -DEMACS_BITMAP_FILES \
113  -I../src -I../lib -I${srcdir} -I${srcdir}/../src -I${srcdir}/../lib
114
115.c.o:
116	$(AM_V_CC)$(CC) -c ${ALL_CFLAGS} $<
117
118libXMenu11.a: $(OBJS) $(EXTRA)
119	$(AM_V_GEN)$(RM) $@
120	$(AM_V_at)$(AR) $(ARFLAGS) $@ $(OBJS) $(EXTRA)
121	$(AM_V_at)$(RANLIB) $@
122
123.PHONY: mostlyclean clean distclean bootstrap-clean maintainer-clean
124
125clean mostlyclean:
126	rm -f libXMenu11.a ./*.o $(DEPDIR)/*
127
128bootstrap-clean maintainer-clean distclean: clean
129	rm -f Makefile
130	rm -fr $(DEPDIR)
131
132ETAGS = ../lib-src/etags${EXEEXT}
133
134${ETAGS}: FORCE
135	${MAKE} -C ../lib-src $(notdir $@)
136
137tagsfiles = $(wildcard ${srcdir}/*.[ch])
138
139FORCE:
140.PHONY: tags FORCE
141tags: TAGS
142TAGS: ${ETAGS} ${tagsfiles}
143	${ETAGS} ${tagsfiles}
144
145### Makefile.in ends here
146