3 # Copyright (C) 1992, 1993 Lucid, Inc.
4 # Copyright (C) 1994, 2001-2017 Free Software Foundation, Inc.
6 # This file is part of the Lucid Widget Library.
8 # The Lucid Widget Library is free software; you can redistribute it and/or
9 # modify it under the terms of the GNU General Public License as published by
10 # the Free Software Foundation; either version 1, or (at your option)
13 # The Lucid Widget Library is distributed in the hope that it will be useful,
14 # but WITHOUT ANY WARRANTY; without even the implied warranty of
15 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16 # GNU General Public License for more details.
18 # You should have received a copy of the GNU General Public License
19 # along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>.
22 # This was taken from the output of Imake using Lucid's Imakefile.
23 # and set up to be configured by ../configure.
29 # MinGW CPPFLAGS may use this.
30 abs_top_srcdir
=@abs_top_srcdir@
32 C_SWITCH_X_SITE
=@C_SWITCH_X_SITE@
33 C_SWITCH_SYSTEM
=@C_SWITCH_SYSTEM@
34 C_SWITCH_MACHINE
=@C_SWITCH_MACHINE@
35 PROFILING_CFLAGS
= @PROFILING_CFLAGS@
36 WARN_CFLAGS
= @WARN_CFLAGS@
37 WARN_CFLAGS
:= $(filter-out -Wwrite-strings
,${WARN_CFLAGS})
38 WERROR_CFLAGS
= @WERROR_CFLAGS@
39 CAIRO_CFLAGS
= @CAIRO_CFLAGS@
51 LUCID_OBJS
= lwlib-Xlw.o xlwmenu.o lwlib-Xaw.o
52 MOTIF_OBJS
= lwlib-Xm.o
54 ## LUCID_OBJS or MOTIF_OBJS.
55 TOOLKIT_OBJS
= $(@X_TOOLKIT_TYPE@_OBJS
)
57 OBJS
= lwlib.o
$(TOOLKIT_OBJS
) lwlib-utils.o
60 AM_DEFAULT_VERBOSITY
= @AM_DEFAULT_VERBOSITY@
62 AM_V_CC
= $(am__v_CC_@AM_V@
)
63 am__v_CC_
= $(am__v_CC_@AM_DEFAULT_V@
)
64 am__v_CC_0
= @echo
" CC " $@
;
67 AM_V_GEN
= $(am__v_GEN_@AM_V@
)
68 am__v_GEN_
= $(am__v_GEN_@AM_DEFAULT_V@
)
69 am__v_GEN_0
= @echo
" GEN " $@
;
72 AM_V_at
= $(am__v_at_@AM_V@
)
73 am__v_at_
= $(am__v_at_@AM_DEFAULT_V@
)
77 AUTO_DEPEND
= @AUTO_DEPEND@
79 ifeq ($(AUTO_DEPEND
),yes
)
80 DEPFLAGS
= -MMD
-MF
$(DEPDIR
)/$*.d
-MP
81 -include $(ALLOBJS
:%.o
=$(DEPDIR
)/%.d
)
84 include $(srcdir)/deps.mk
87 ## ../src is where the generated file (config.h, globals.h) are.
88 ## $(srcdir)/../src is where the non-generated files (lisp.h) are.
89 ## (In an out-of-tree build, these two are not the same.)
90 ## $(srcdir) is where the lwlib sources are.
91 ## There are no generated lwlib files, hence no need for -I.
92 ALL_CFLAGS
= $(C_SWITCH_SYSTEM
) $(C_SWITCH_X_SITE
) \
93 $(C_SWITCH_MACHINE
) $(DEPFLAGS
) \
94 $(WARN_CFLAGS
) $(WERROR_CFLAGS
) $(PROFILING_CFLAGS
) $(CFLAGS
) \
97 -I
$(srcdir) -I
$(srcdir)/..
/src
-I..
/lib
-I
$(srcdir)/..
/lib
100 $(AM_V_CC
)$(CC
) -c
$(CPPFLAGS
) $(ALL_CFLAGS
) $<
104 $(AM_V_at
)$(AR
) $(ARFLAGS
) $@
$(OBJS
)
105 $(AM_V_at
)$(RANLIB
) $@
107 globals_h
= ..
/src
/globals.h
109 $(MAKE
) -C ..
/src globals.h
111 .PHONY
: mostlyclean clean distclean bootstrap-clean maintainer-clean
114 rm -f
*.o liblw.a \
#* $(DEPDIR)/*
120 bootstrap-clean maintainer-clean
: distclean
123 ETAGS
= ..
/lib-src
/etags
${EXEEXT}
126 ${MAKE} -C ..
/lib-src
$(notdir $@
)
128 ctagsfiles
= $(wildcard ${srcdir}/*.
[ch
])
133 TAGS
: ${ETAGS} $(ctagsfiles
)
134 ${ETAGS} $(ctagsfiles
)
136 ### Makefile.in ends here