1 # Copyright (C) 1992, 1993 Lucid, Inc.
2 # Copyright (C) 1994, 2001-2011 Free Software Foundation, Inc.
4 # This file is part of the Lucid Widget Library.
6 # The Lucid Widget Library is free software; you can redistribute it and/or
7 # modify it under the terms of the GNU General Public License as published by
8 # the Free Software Foundation; either version 1, or (at your option)
11 # The Lucid Widget Library is distributed in the hope that it will be useful,
12 # but WITHOUT ANY WARRANTY; without even the implied warranty of
13 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14 # GNU General Public License for more details.
16 # You should have received a copy of the GNU General Public License
17 # along with GNU Emacs; see the file COPYING. If not, write to
18 # the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
19 # Boston, MA 02110-1301, USA.
22 # This was taken from the output of Imake using Lucid's Imakefile.
23 # and set up to be configured by ../configure.
27 C_SWITCH_X_SITE
=@C_SWITCH_X_SITE@
28 C_SWITCH_X_SYSTEM
=@C_SWITCH_X_SYSTEM@
29 C_SWITCH_SYSTEM
=@C_SWITCH_SYSTEM@
30 C_SWITCH_MACHINE
=@C_SWITCH_MACHINE@
31 C_WARNINGS_SWITCH
= @C_WARNINGS_SWITCH@
32 PROFILING_CFLAGS
= @PROFILING_CFLAGS@
38 # See below--@X_TOOLKIT_TYPE@ is used below.
39 USE_X_TOOLKIT
=@X_TOOLKIT_TYPE@
44 LUCID_OBJS
= lwlib-Xlw.o xlwmenu.o lwlib-Xaw.o
45 MOTIF_OBJS
= lwlib-Xm.o
48 TOOLKIT_OBJS
= $(@X_TOOLKIT_TYPE@_OBJS
)
50 OBJS
= lwlib.o
$(TOOLKIT_OBJS
) lwlib-utils.o
52 # ../src is needed to find config.h.
53 ALL_CFLAGS
= $(C_SWITCH_SYSTEM
) $(C_SWITCH_X_SITE
) \
54 $(C_SWITCH_X_SYSTEM
) $(C_SWITCH_MACHINE
) \
55 ${C_WARNINGS_SWITCH} ${PROFILING_CFLAGS} $(CFLAGS
) \
56 -DHAVE_CONFIG_H
-Demacs
-I.
-I..
/src
-I
${srcdir} -I
${srcdir}/..
/src
59 $(CC
) -c
$(CPPFLAGS
) ${ALL_CFLAGS} $<
68 # Depend on Makefile so that we recompile if TOOLKIT_DEFINES changes.
69 lwlib.o
: $(srcdir)/lwlib.c Makefile
70 $(CC
) -c
$(CPPFLAGS
) $(TOOLKIT_DEFINES
) $(ALL_CFLAGS
) $(srcdir)/lwlib.c
72 lwlib-utils.o
: lwlib-utils.c lwlib-utils.h
73 lwlib.o
: lwlib.c lwlib.h lwlib-int.h lwlib-Xaw.h lwlib-Xlw.h
74 lwlib-Xlw.o
: lwlib-Xlw.c lwlib.h lwlib-int.h lwlib-Xlw.h
75 lwlib-Xaw.o
: lwlib-Xaw.c lwlib-Xaw.h lwlib.h lwlib-int.h
76 lwlib-Xm.o
: lwlib-Xm.c lwlib-Xm.h lwlib.h lwlib-int.h lwlib-utils.h
77 xlwmenu.o
: xlwmenu.c xlwmenu.h lwlib.h xlwmenuP.h
80 $(RM
) *.o core liblw.a \
#*
85 maintainer-clean
: distclean
89 ..
/lib-src
/etags
$(srcdir)/*.
[ch
]