head 1.2; access; symbols; locks; strict; comment @# @; 1.2 date 99.11.12.14.42.22; author rse; state Exp; branches; next 1.1; 1.1 date 99.09.11.12.42.10; author rse; state Exp; branches; next ; desc @@ 1.2 log @*** empty log message *** @ text @ top_builddir = @@top_srcdir@@ top_srcdir = @@top_srcdir@@ CC = @@CC@@ CFLAGS = @@CFLAGS@@ CCFLAGS = $(CFLAGS) -I../sfio_c -I../sfio -I. LIBTOOL = @@LIBTOOL@@ FILES = *.c all: test test: @@for i in $(FILES); do \ echo dummy | awk '{ \ pad=""; \ for (i = 0; i < 20 - length(STR); i++) { \ pad = pad "."; \ } \ printf("%s%s", STR, pad); \ }' STR="`echo $$i | sed -e 's;^t;;' -e 's/\.c$$//'`"; \ status=""; \ if $(LIBTOOL) --mode=link --quiet $(CC) $(CCFLAGS) -o t $$i ../libsfio.la -lm; then \ if ./t; then \ rm -f t; status="ok"; \ else \ status="failed to run"; \ fi; \ else \ status="failed to compile"; \ fi; \ echo $$status; \ done clean: -rm -f -r .libs distclean: -rm -f Makefile @ 1.1 log @Incorporate stuff from RSE's Sfio98 variant @ text @d2 3 d8 1 d16 7 a22 2 echo dummy | awk '{ printf("test %s... ", STR); }' STR="`echo $$i |\ sed -e 's;^t;;' -e 's/\.c$$//'`"; \ d24 1 a24 1 if $(CC) $(CCFLAGS) -o t $$i ../libsfio.a -lm; then \ d35 3 @