Formerly compatMakefile.~81~
authorRoland McGrath <roland@redhat.com>
Sun, 1 Aug 1993 20:17:31 +0000 (20:17 +0000)
committerRoland McGrath <roland@redhat.com>
Sun, 1 Aug 1993 20:17:31 +0000 (20:17 +0000)
compatMakefile

index 374501d..b82db34 100644 (file)
@@ -166,11 +166,11 @@ make: $(objs)
 SHELL = /bin/sh
 MAKE = make
 
-glob/libglob.a: force
+glob/libglob.a: FORCE config.h
        cd glob; $(MAKE) CC='$(CC)' CFLAGS='$(CFLAGS) -I..' \
                         CPPFLAGS='$(CPPFLAGS) -DHAVE_CONFIG_H' \
                         libglob.a
-force:
+FORCE:
 
 tagsrcs = $(srcs) $(srcdir)/remote-*.c
 TAGS: $(tagsrcs)
@@ -221,6 +221,18 @@ $(infodir)/make.info: make.info
 $(mandir)/$(instname).$(manext): make.man
        $(INSTALL_DATA) $(srcdir)/make.man $@
 
+
+loadavg: getloadavg.c config.h
+       $(CC) $(defines) -DTEST -I. -I$(srcdir) $(CFLAGS) $(LDFLAGS) \
+             $(srcdir)/getloadavg.c -o $@
+check-loadavg: loadavg
+       @echo The system uptime program believes the load average to be:
+       -uptime
+       @echo The GNU load average checking code believes:
+       ./loadavg
+check: check-loadavg
+
+
 .PHONY: clean realclean distclean mostlyclean
 clean: glob-clean
        -rm -f make *.o core