changed Makefile again
authoreck <none@none>
Tue, 19 Dec 1989 15:06:03 +0000 (15:06 +0000)
committereck <none@none>
Tue, 19 Dec 1989 15:06:03 +0000 (15:06 +0000)
17 files changed:
lang/cem/libcc.ansi/.distr
lang/cem/libcc.ansi/MakeArch
lang/cem/libcc.ansi/Makefile
lang/cem/libcc.ansi/assert/Makefile
lang/cem/libcc.ansi/ctype/Makefile
lang/cem/libcc.ansi/errno/Makefile
lang/cem/libcc.ansi/headers/Makefile
lang/cem/libcc.ansi/locale/Makefile
lang/cem/libcc.ansi/make.proto [new file with mode: 0644]
lang/cem/libcc.ansi/math/Makefile
lang/cem/libcc.ansi/misc/Makefile
lang/cem/libcc.ansi/setjmp/Makefile
lang/cem/libcc.ansi/signal/Makefile
lang/cem/libcc.ansi/stdio/Makefile
lang/cem/libcc.ansi/stdlib/Makefile
lang/cem/libcc.ansi/string/Makefile
lang/cem/libcc.ansi/time/Makefile

index 062e51a..d9f76aa 100644 (file)
@@ -6,6 +6,7 @@ ctype
 errno
 headers
 locale
+make.proto
 math
 misc
 setjmp
index 95aca8e..58dbe7d 100755 (executable)
@@ -17,7 +17,7 @@ case $# in
                        exit 1
                fi
                AR=$ASAR
-               echo 'rv $OLIB' > OLIST
+               echo "rv $OLIB" > OLIST
                ;;
        *)
                echo $0: too many arguments >&2
@@ -36,6 +36,7 @@ then
        echo LIST >> OLIST
        echo MakeArch >> OLIST
        echo Makefile >> OLIST
+       echo make.proto >> OLIST
 fi
 
 DIRS=`cat LIST`
@@ -60,6 +61,5 @@ do
        fi
 done
 
-#echo $AR `cat OLIST`
 $AR `cat OLIST`
 ${RANLIB-:} $OLIB
index 0488193..866fffd 100644 (file)
@@ -4,35 +4,35 @@
 
 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:
index ef32a80..a4dd9a5 100644 (file)
@@ -1,9 +1,2 @@
-.SUFFIXES: .o .e .c
-
-.e.o:
-       $(CC) $(CFLAGS) -c -o $@ $*.e
-
 clean:
-       rm -rf assert.o OLIST
-
-assert.o:
+       rm -f assert.o OLIST
index 73dabab..c3e25a3 100644 (file)
@@ -1,10 +1,5 @@
-.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 \
@@ -23,19 +18,3 @@ chartab.c: char.tab
 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:
index 99b8f84..39d27b1 100644 (file)
@@ -1,9 +1,2 @@
-.SUFFIXES: .o .e .c
-
-.e.o:
-       $(CC) $(CFLAGS) -c -o $@ $*.e
-
 clean:
-       rm -rf errlist.o OLIST
-
-errlist.o:
+       rm -f errlist.o OLIST
index b24642c..3249669 100644 (file)
@@ -1,7 +1,2 @@
-.SUFFIXES: .o .e .c
-
-.e.o:
-       $(CC) $(CFLAGS) -c -o $@ $*.e
-
 clean:
-       rm -rf OLIST
+       rm -f OLIST
index 77477dd..dea8cb1 100644 (file)
@@ -1,10 +1,2 @@
-.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
diff --git a/lang/cem/libcc.ansi/make.proto b/lang/cem/libcc.ansi/make.proto
new file mode 100644 (file)
index 0000000..f15130c
--- /dev/null
@@ -0,0 +1,6 @@
+.SUFFIXES: .o .e .c .m .s
+
+.c.o .e.o .c.m .e.m .c.s .e.s:
+       $(CC) $(CFLAGS) -c $<
+
+fake:
index 925b41b..47e4d36 100644 (file)
@@ -1,29 +1,4 @@
-.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:
index da27e26..8fb4d55 100644 (file)
@@ -1,27 +1,4 @@
-.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:
index 53abeb6..aa8e83d 100644 (file)
@@ -1,9 +1,2 @@
-.SUFFIXES: .o .e .c
-
-.e.o:
-       $(CC) $(CFLAGS) -c -o $@ $*.e
-
 clean:
-       rm -rf setjmp.o OLIST
-
-setjmp.o:
+       rm -f setjmp.o OLIST
index 2c8c779..c9578ae 100644 (file)
@@ -1,9 +1,2 @@
-.SUFFIXES: .o .e .c
-
-.e.o:
-       $(CC) $(CFLAGS) -c -o $@ $*.e
-
 clean:
-       rm -rf raise.o OLIST
-
-raise.o:
+       rm -f raise.o OLIST
index 903a9db..d0d501c 100644 (file)
@@ -1,10 +1,5 @@
-.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 \
@@ -13,56 +8,3 @@ clean:
                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:
index 37b1482..6a75573 100644 (file)
@@ -1,10 +1,5 @@
-.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
@@ -14,28 +9,3 @@ malloc/malloc.c:
 
 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:
index cd15d4d..f626380 100644 (file)
@@ -1,33 +1,5 @@
-.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:
index 648fe61..e0cbf5d 100644 (file)
@@ -1,20 +1,3 @@
-.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: