1 # This was taken from the output of Imake
2 # and set up to be configured by ../configure.
3 # Some parts Copyright (c) 1992, 1993 Lucid, Inc.
7 C_SWITCH_X_SITE
=@C_SWITCH_X_SITE@
13 # See below--@X_TOOLKIT_TYPE@ is used below.
14 USE_X_TOOLKIT
=@X_TOOLKIT_TYPE@
24 LUCID_SRCS
= lwlib-Xlw.c xlwmenu.c lwlib-Xaw.c
25 LUCID_OBJS
= lwlib-Xlw.o xlwmenu.o lwlib-Xaw.o
26 MOTIF_SRCS
= lwlib-Xm.c
27 MOTIF_OBJS
= lwlib-Xm.o
28 OLIT_SRCS
= lwlib-Xol.c lwlib-Xolmb.c
29 OLIT_OBJS
= lwlib-Xol.o lwlib-Xolmb.o
31 TOOLKIT_DEFINES
= -DUSE_
$(USE_X_TOOLKIT
)
32 TOOLKIT_SRCS
= $(@X_TOOLKIT_TYPE@_SRCS
)
33 TOOLKIT_OBJS
= $(@X_TOOLKIT_TYPE@_OBJS
)
35 SRCS
= lwlib.c
$(TOOLKIT_SRCS
) lwlib-utils.c
36 OBJS
= lwlib.o
$(TOOLKIT_OBJS
) lwlib-utils.o
38 ALL_CFLAGS
= $(C_SWITCH_SITE
) $(C_SWITCH_SYSTEM
) $(C_SWITCH_X_SITE
) \
39 $(C_SWITCH_X_SYSTEM
) $(C_SWITCH_MACHINE
) $(CPPFLAGS
) $(CFLAGS
) \
40 -DEMACS_BITMAP_FILES
-Demacs
43 $(CC
) -c
${ALL_CFLAGS} $<
50 @echo Do not be alarmed if the following ranlib command
51 @echo fails due to the absence of a ranlib program on your system.
53 #If running ranlib fails, probably there is none.
54 #That's ok. So don't stop the build.
57 $(CC
) -c
$(TOOLKIT_DEFINES
) $(ALL_CFLAGS
) $(srcdir)/lwlib.c
59 xrdb-cpp.o
: xrdb-cpp.c
60 $(CC
) -c
"-DCPP_PROGRAM=$(CPP)" $(ALL_CFLAGS
) $(srcdir)/xrdb-cpp.c
62 lwlib-utils.o
: lwlib-utils.h
63 lwlib.o
: lwlib.h lwlib-int.h
64 lwlib-Xlw.o
: lwlib.h lwlib-int.h
65 lwlib-Xaw.o
: lwlib.h lwlib-int.h
66 lwlib-Xm.o
: lwlib.h lwlib-int.h lwlib-utils.h
67 lwlib-Xol.o
: lwlib.h lwlib-int.h
68 lwlib-Xolmb.o
: lwlib-Xolmb.h lwlib-XolmbP.h
71 $(RM
) *.o core errs
,* *~
*.a .emacs_
* make.log MakeOut \
#*