CFLAGS=@CFLAGS@
CPP=@CPP@
LN_S=@LN_S@
+RANLIB=@RANLIB@
# See below--@X_TOOLKIT_TYPE@ is used below.
USE_X_TOOLKIT=@X_TOOLKIT_TYPE@
AR = ar cq
LN = ln -s
- RANLIB = ranlib
RM = rm -f
LUCID_OBJS = lwlib-Xlw.o xlwmenu.o lwlib-Xaw.o
liblw.a: $(OBJS)
$(RM) $@
$(AR) $@ $(OBJS)
- @echo Do not be alarmed if the following ranlib command
- @echo fails due to the absence of a ranlib program on your system.
- -$(RANLIB) $@ || true
-#If running ranlib fails, probably there is none.
-#That's ok. So don't stop the build.
+ $(RANLIB) $@
# Depend on Makefile so that we recompile if TOOLKIT_DEFINES changes.
lwlib.o: $(srcdir)/lwlib.c Makefile
xrdb-cpp.o: $(srcdir)/xrdb-cpp.c
$(CC) -c "-DCPP_PROGRAM=$(CPP)" $(ALL_CFLAGS) $(srcdir)/xrdb-cpp.c
-lwlib-utils.o: lwlib-utils.h
-lwlib.o: lwlib.h lwlib-int.h
-lwlib-Xlw.o: lwlib.h lwlib-int.h
-lwlib-Xaw.o: lwlib.h lwlib-int.h
-lwlib-Xm.o: lwlib.h lwlib-int.h lwlib-utils.h
-lwlib-Xol.o: lwlib.h lwlib-int.h
-lwlib-Xolmb.o: lwlib-Xolmb.h lwlib-XolmbP.h
+lwlib-utils.o: lwlib-utils.c lwlib-utils.h
+lwlib.o: lwlib.c lwlib.h lwlib-int.h lwlib-Xaw.h lwlib-Xlw.h
+lwlib-Xlw.o: lwlib-Xlw.c lwlib.h lwlib-int.h lwlib-Xlw.h
+lwlib-Xaw.o: lwlib-Xaw.c lwlib-Xaw.h lwlib.h lwlib-int.h
+lwlib-Xm.o: lwlib-Xm.c lwlib-Xm.h lwlib.h lwlib-int.h lwlib-utils.h
+lwlib-Xol.o: lwlib-Xol.c lwlib.h lwlib-int.h
+lwlib-Xolmb.o: lwlib-Xolmb.c lwlib-Xolmb.h lwlib-XolmbP.h
+xlwmenu.o: xlwmenu.c xlwmenu.h lwlib.h xlwmenuP.h
mostlyclean:
$(RM) *.o core errs ,* *~ *.a .emacs_* make.log MakeOut \#*
distclean: clean
maintainer-clean: distclean
-tags::
- $(TAGS) -t *.[ch]
+TAGS:
+ ../lib-src/etags -t *.[ch]
+tags: TAGS
+.PHONY: tags