errno
headers
locale
+make.proto
math
misc
setjmp
exit 1
fi
AR=$ASAR
- echo 'rv $OLIB' > OLIST
+ echo "rv $OLIB" > OLIST
;;
*)
echo $0: too many arguments >&2
echo LIST >> OLIST
echo MakeArch >> OLIST
echo Makefile >> OLIST
+ echo make.proto >> OLIST
fi
DIRS=`cat LIST`
fi
done
-#echo $AR `cat OLIST`
$AR `cat OLIST`
${RANLIB-:} $OLIB
EMHOME=../../..
MACH=acc
-MACHFL=-c.$(SUF) -O -L -Rcem=$(EMHOME)/lang/cem/libcc.new/main -I../headers \
- $(DEFS)
-PREF=ancc
+MACHFL=-O -L -Rcem=$(EMHOME)/lib/em_cemcom.ansi -I../headers $(DEFS)
+PREF=ac
SUB=
ASAR=arch
HEADSRC=$(HOME)
OLIB=tail_$(PREF)$(SUB)
-libsrc:
+install:
MakeArch
-tail: $(OLIB)
+clean:
+ rm -f OLIST */OLIST
+ (cd ctype; make clean)
+ (cd stdlib; make clean)
+
+tail: lib
tailcp: tail
../../install $(OLIB)
rm -f $(OLIB)
-$(OLIB):
- @echo translation test
-
-
-libc:
+lib:
MACH=$(MACH) MACHFL="$(MACHFL) -LIB" ASAR=$(ASAR) \
OLIB=$(OLIB) MakeArch -o
-$(ASAR):
+ar aal arch:
@rm -f OLIST
@sed 's/\.[ce]/.$(SUF)/' < LIST | sed '/\.h/D' > OLIST
- make "CC=$(MACH)" "MACHFL=$(MACHFL)" `cat OLIST`
+ make -r -f ../make.proto "CC=$(MACH)" "CFLAGS=$(MACHFL)" `cat OLIST`
# arch doesn't work recursively, tar does, which is what we actually want
tar:
-.SUFFIXES: .o .e .c
-
-.e.o:
- $(CC) $(CFLAGS) -c -o $@ $*.e
-
clean:
- rm -rf assert.o OLIST
-
-assert.o:
+ rm -f assert.o OLIST
-.SUFFIXES: .o .e .c
-
-.e.o:
- $(CC) $(CFLAGS) -c -o $@ $*.e
-
clean:
- rm -rf isalnum.o isalpha.o iscntrl.o isdigit.o isgraph.o \
+ rm -f isalnum.o isalpha.o iscntrl.o isdigit.o isgraph.o \
islower.o isprint.o ispunct.o isspace.o isupper.o \
isxdigit.o isascii.o tolower.o toupper.o chartab.o \
isalnum.c isalpha.c iscntrl.c isdigit.c isgraph.c \
isalnum.c isalpha.c iscntrl.c isdigit.c isgraph.c islower.c isprint.c \
ispunct.c isspace.c isupper.c isxdigit.c isascii.c tolower.c toupper.c: genfiles
genfiles
-
-isalnum.o:
-isalpha.o:
-iscntrl.o:
-isdigit.o:
-isgraph.o:
-islower.o:
-isprint.o:
-ispunct.o:
-isspace.o:
-isupper.o:
-isxdigit.o:
-isascii.o:
-tolower.o:
-toupper.o:
-chartab.o:
-.SUFFIXES: .o .e .c
-
-.e.o:
- $(CC) $(CFLAGS) -c -o $@ $*.e
-
clean:
- rm -rf errlist.o OLIST
-
-errlist.o:
+ rm -f errlist.o OLIST
-.SUFFIXES: .o .e .c
-
-.e.o:
- $(CC) $(CFLAGS) -c -o $@ $*.e
-
clean:
- rm -rf OLIST
+ rm -f OLIST
-.SUFFIXES: .o .e .c
-
-.e.o:
- $(CC) $(CFLAGS) -c -o $@ $*.e
-
clean:
- rm -rf localeconv.o setlocale.o OLIST
-
-localeconv.o:
-setlocale.o:
+ rm -f localeconv.o setlocale.o OLIST
--- /dev/null
+.SUFFIXES: .o .e .c .m .s
+
+.c.o .e.o .c.m .e.m .c.s .e.s:
+ $(CC) $(CFLAGS) -c $<
+
+fake:
-.SUFFIXES: .o .e .c
-
-.e.o:
- $(CC) $(CFLAGS) -c -o $@ $*.e
-
clean:
- rm -rf asin.o atan2.o atan.o ceil.o fabs.o pow.o log10.o \
+ rm -f asin.o atan2.o atan.o ceil.o fabs.o pow.o log10.o \
log.o sin.o sinh.o sqrt.o tan.o tanh.o exp.o ldexp.o \
fmod.o floor.o frexp.o modf.o OLIST
-
-asin.o:
-atan2.o:
-atan.o:
-ceil.o:
-fabs.o:
-pow.o:
-log10.o:
-log.o:
-sin.o:
-sinh.o:
-sqrt.o:
-tan.o:
-tanh.o:
-exp.o:
-ldexp.o:
-fmod.o:
-floor.o:
-frexp.o:
-modf.o:
-.SUFFIXES: .o .e .c
-
-.e.o:
- $(CC) $(CFLAGS) -c -o $@ $*.e
-
clean:
- rm -rf getgrent.o getopt.o getpass.o getpw.o getw.o putw.o \
+ rm -f getgrent.o getopt.o getpass.o getpw.o getw.o putw.o \
popen.o sleep.o termcap.o fdopen.o closedir.o getdents.o \
opendir.o readdir.o rewinddir.o seekdir.o telldir.o OLIST
-
-getgrent.o:
-getopt.o:
-getpass.o:
-getpw.o:
-getw.o:
-putw.o:
-popen.o:
-sleep.o:
-termcap.o:
-fdopen.o:
-closedir.o:
-getdents.o:
-opendir.o:
-readdir.o:
-rewinddir.o:
-seekdir.o:
-telldir.o:
-.SUFFIXES: .o .e .c
-
-.e.o:
- $(CC) $(CFLAGS) -c -o $@ $*.e
-
clean:
- rm -rf setjmp.o OLIST
-
-setjmp.o:
+ rm -f setjmp.o OLIST
-.SUFFIXES: .o .e .c
-
-.e.o:
- $(CC) $(CFLAGS) -c -o $@ $*.e
-
clean:
- rm -rf raise.o OLIST
-
-raise.o:
+ rm -f raise.o OLIST
-.SUFFIXES: .o .e .c
-
-.e.o:
- $(CC) $(CFLAGS) -c -o $@ $*.e
-
clean:
- rm -rf tmpfile.o tmpnam.o rename.o remove.o fopen.o freopen.o \
+ rm -f tmpfile.o tmpnam.o rename.o remove.o fopen.o freopen.o \
setbuf.o setvbuf.o perror.o fprintf.o printf.o sprintf.o \
vfprintf.o vprintf.o vsprintf.o doprnt.o icompute.o \
fscanf.o scanf.o sscanf.o doscan.o fgetc.o fgets.o getc.o \
fseek.o ftell.o clearerr.o feof.o ferror.o fileno.o \
fltpr.o ecvt.o gcvt.o fillbuf.o fclose.o flushbuf.o \
fflush.o isatty.o data.o OLIST
-
-tmpfile.o:
-tmpnam.o:
-rename.o:
-remove.o:
-fopen.o:
-freopen.o:
-setbuf.o:
-setvbuf.o:
-perror.o:
-fprintf.o:
-printf.o:
-sprintf.o:
-vfprintf.o:
-vprintf.o:
-vsprintf.o:
-doprnt.o:
-icompute.o:
-fscanf.o:
-scanf.o:
-sscanf.o:
-doscan.o:
-fgetc.o:
-fgets.o:
-getc.o:
-getchar.o:
-gets.o:
-putc.o:
-putchar.o:
-fputc.o:
-puts.o:
-fputs.o:
-ungetc.o:
-fread.o:
-fwrite.o:
-fgetpos.o:
-fsetpos.o:
-rewind.o:
-fseek.o:
-ftell.o:
-clearerr.o:
-feof.o:
-ferror.o:
-fileno.o:
-fltpr.o:
-ecvt.o:
-gcvt.o:
-fillbuf.o:
-fclose.o:
-flushbuf.o:
-fflush.o:
-isatty.o:
-data.o:
-.SUFFIXES: .o .e .c
-
-.e.o:
- $(CC) $(CFLAGS) -c -o $@ $*.e
-
clean:
- rm -rf abort.o abs.o atof.o atoi.o atol.o bsearch.o div.o \
+ rm -f abort.o abs.o atof.o atoi.o atol.o bsearch.o div.o \
atexit.o exit.o getenv.o labs.o ldiv.o malloc.o mblen.o \
mbstowcs.o mbtowc.o qsort.o rand.o strtod.o strtol.o \
system.o wcstombs.o wctomb.o ext_comp.o malloc.c OLIST
malloc.c: malloc/malloc.c
-cp malloc/malloc.c malloc.c
-
-abort.o:
-abs.o:
-atof.o:
-atoi.o:
-atol.o:
-bsearch.o:
-div.o:
-atexit.o:
-exit.o:
-getenv.o:
-labs.o:
-ldiv.o:
-malloc.o:
-mblen.o:
-mbstowcs.o:
-mbtowc.o:
-qsort.o:
-rand.o:
-strtod.o:
-strtol.o:
-system.o:
-wcstombs.o:
-wctomb.o:
-ext_comp.o:
-.SUFFIXES: .o .e .c
-
-.e.o:
- $(CC) $(CFLAGS) -c -o $@ $*.e
-
clean:
- rm -rf memchr.o memcmp.o memcpy.o memmove.o memset.o strcat.o \
+ rm -f memchr.o memcmp.o memcpy.o memmove.o memset.o strcat.o \
strchr.o strcmp.o strcoll.o strcpy.o strcspn.o strerror.o \
strncat.o strncpy.o strrchr.o strstr.o strlen.o strtok.o \
strpbrk.o strspn.o strncmp.o strxfrm.o OLIST
-
-memchr.o:
-memcmp.o:
-memcpy.o:
-memmove.o:
-memset.o:
-strcat.o:
-strchr.o:
-strcmp.o:
-strcoll.o:
-strcpy.o:
-strcspn.o:
-strerror.o:
-strncat.o:
-strncpy.o:
-strrchr.o:
-strstr.o:
-strlen.o:
-strtok.o:
-strpbrk.o:
-strspn.o:
-strncmp.o:
-strxfrm.o:
-.SUFFIXES: .o .e .c
-
-.e.o:
- $(CC) $(CFLAGS) -c -o $@ $*.e
-
clean:
- rm -rf ctime.o asctime.o localtime.o clock.o difftime.o gmtime.o \
+ rm -f ctime.o asctime.o localtime.o clock.o difftime.o gmtime.o \
mktime.o strftime.o time.o tzset.o misc.o OLIST
-
-ctime.o:
-asctime.o:
-localtime.o:
-clock.o:
-difftime.o:
-gmtime.o:
-mktime.o:
-strftime.o:
-time.o:
-tzset.o:
-misc.o: