home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
The Datafile PD-CD 4
/
DATAFILE_PDCD4.iso
/
unix
/
unixlib36d
/
makefile
< prev
next >
Wrap
Makefile
|
1994-03-08
|
62KB
|
1,775 lines
# Project: UnixLib
# Toolflags:
PCflags = -c -depend !Depend -throwback -IP:
CCflags = -I@.Clib -DARCH
Linkflags = -o $@
ObjAsmflags = -Stamp -quit -CloseExec
CMHGflags =
LibFileflags = -c -l -o $@
Squeezeflags = -o $@
AAsmflags = -quit -CloseExec -To $@ -From
# CC = GCC:gcc -BGCC: -v -O2 -mamu $(CCFlags)
# LINK = DRLink -rescan $(linkflags)
# LIBS = @.clib.o.Unixlib GCC:o.gcc
CC = cc -depend !Depend -fwcah -J@.Clib -wda -throwback $(CCFlags)
LINK = link $(linkflags)
LIBS = @.clib.o.UnixLib
.SUFFIXES: .o .c .s
.c.o:; $(CC) -c -o $@ $<
.s.o:; objasm $(objasmflags) -to $@ -from $<
.c.s:; $(CC) -S -o $@ $<
STAMP = @.src.!Stamp @.src.stdio.!Stamp @.src.sys.!Stamp @.src.unix.!Stamp
# Final targets:
@.clib.o.UnixLib: $(STAMP)
LibFile $(LibFileflags) @.src.o.* @.src.stdio.o.* @.src.sys.o.* \
@.src.unix.o.*
objs: $(STAMP)
Test: @.test.allocatest @.test.allocatst2 @.test.argtest @.test.ctimetest \
@.test.dirtest @.test.divtest @.test.envtest @.test.extest2 \
@.test.extest3 @.test.fstattest @.test.malloctest @.test.memtest \
@.test.memtest2 @.test.memtest3 @.test.min @.test.pipetest \
@.test.popentest @.test.popentest2 @.test.prtest @.test.qtest \
@.test.sctest @.test.size @.test.stdtest @.test.strchr @.test.strftime \
@.test.systest @.test.tcaptest @.test.timetest @.test.tmptest \
@.test.ttytest @.test.unamtest @.test.unixtest @.test.cwdtest \
@.test.wintest
Test-run:
echo starting test
set Old$Dir <Prefix$Dir>
Prefix <Prefix$Dir>.test
run allocatest
run allocatst2
run argtest arg1 arg2 arg3
run ctimetest
run dirtest @ @.^ $
run divtest 100 201
run envtest
run extest2 arg1 arg2 arg3
run extest3 arg1 arg2 arg3
run fstattest
run malloctest
run memtest 20
run memtest2
run memtest3
run min
| run pipetest
| run popentest
| run popentest2
| run prtest
run qtest 10
| run sctest
run size
run stdtest
run strchr
run strftime
run systest < data.systest
run tcaptest
| run timetest
run tmptest
| run ttytest
run unamtest < data.unamfile
run unixtest
run cwdtest
| run wintest
set Prefix$Dir <Old$Dir>
Unset Old$Dir
dist-clean:
-wipe @.src.o.* fv~r~c
-remove @.src.!stamp
-wipe @.src.c~ fvr~c
-wipe @.src.stdio.o.* fv~r~c
-remove @.src.stdio.!stamp
-wipe @.src.stdio.c~ fvr~c
-remove @.src.sys.o.alarm
-remove @.src.sys.o.brk
-remove @.src.sys.o.debug
-remove @.src.sys.o.errlist
-remove @.src.sys.o.exec
-remove @.src.sys.o.os
-remove @.src.sys.o.signal
-remove @.src.sys.o.syslib
-remove @.src.sys.o.vfork
-remove @.src.sys.!stamp
-wipe @.src.sys.c~ frv~c
-wipe @.src.unix.o.* fv~r~c
-remove @.src.unix.!stamp
-wipe @.src.unix.c~ frv~c
-wipe @.test.o.* fv~r~c
-wipe @.test.c~ fvr~c
-remove @.test.allocatest
-remove @.test.allocatst2
-remove @.test.argtest
-remove @.test.ctimetest
-remove @.test.dirtest
-remove @.test.divtest
-remove @.test.envtest
-remove @.test.extest2
-remove @.test.extest3
-remove @.test.fstattest
-remove @.test.malloctest
-remove @.test.memtest
-remove @.test.memtest2
-remove @.test.memtest3
-remove @.test.min
-remove @.test.pipetest
-remove @.test.popentest
-remove @.test.popentest2
-remove @.test.prtest
-remove @.test.qtest
-remove @.test.sctest
-remove @.test.size
-remove @.test.stdtest
-remove @.test.strchr
-remove @.test.strftime
-remove @.test.systest
-remove @.test.tcaptest
-remove @.test.timetest
-remove @.test.tmptest
-remove @.test.ttytest
-remove @.test.unamtest
-remove @.test.unixtest
-remove @.test.cwdtest
-remove @.test.wintest
clean-all: dist-clean
-remove @.clib.o.UnixLib
-wipe @.src.sys.o.* fv~r~c
# User-editable dependencies:
@.src.!Stamp: @.src.o.abort @.src.o.abs @.src.o.alloc \
@.src.o.assert @.src.o.atexit @.src.o.bsearch @.src.o.calloc \
@.src.o.ctime @.src.o.ctype @.src.o.div @.src.o.errno @.src.o.getlogin \
@.src.o.getpw @.src.o.math @.src.o.memchr @.src.o.memcmp \
@.src.o.memcpy @.src.o.memset @.src.o.mktime @.src.o.qsort \
@.src.o.rand @.src.o.strcat @.src.o.strchr @.src.o.strcmp \
@.src.o.strcpy @.src.o.strdup @.src.o.strichr @.src.o.stricmp \
@.src.o.strlen @.src.o.strspn @.src.o.strstr @.src.o.strtod \
@.src.o.strtok @.src.o.strtol @.src.o.system @.src.o.termcap
-remove @.src.!Stamp
-create @.src.!Stamp 0
@.src.stdio.!Stamp: @.src.stdio.o.fclose @.src.stdio.o.fflush \
@.src.stdio.o.fgets @.src.stdio.o.filbuf @.src.stdio.o.flsbuf \
@.src.stdio.o.fopen @.src.stdio.o.fpos @.src.stdio.o.fputs \
@.src.stdio.o.frdwr @.src.stdio.o.fread @.src.stdio.o.fwrite \
@.src.stdio.o.getc @.src.stdio.o.gets @.src.stdio.o.getw \
@.src.stdio.o.perror @.src.stdio.o.popen @.src.stdio.o.print \
@.src.stdio.o.printf @.src.stdio.o.putc @.src.stdio.o.puts \
@.src.stdio.o.putw @.src.stdio.o.remove @.src.stdio.o.rename \
@.src.stdio.o.scan @.src.stdio.o.scanf @.src.stdio.o.setbuf \
@.src.stdio.o.stdio @.src.stdio.o.tmpfile @.src.stdio.o.ungetc
-remove @.src.stdio.!Stamp
-create @.src.stdio.!Stamp 0
@.src.sys.!Stamp: @.src.sys.o.alarm @.src.sys.o.brk @.src.sys.o.debug \
@.src.sys.o.errlist @.src.sys.o.exec @.src.sys.o.os @.src.sys.o.signal \
@.src.sys.o.syslib @.src.sys.o.vfork @.src.sys.o._alloca \
@.src.sys.o._exec @.src.sys.o._jmp @.src.sys.o._math @.src.sys.o._mem \
@.src.sys.o._os @.src.sys.o._signal @.src.sys.o._syslib \
@.src.sys.o._vfork
-remove @.src.sys.!Stamp
-create @.src.sys.!Stamp 0
@.src.unix.!Stamp: @.src.unix.o.access @.src.unix.o.chdir \
@.src.unix.o.chmod @.src.unix.o.chown @.src.unix.o.close \
@.src.unix.o.creat @.src.unix.o.dev @.src.unix.o.dirent \
@.src.unix.o.dup @.src.unix.o.dup2 @.src.unix.o.fcntl \
@.src.unix.o.getenv @.src.unix.o.gethostnam @.src.unix.o.getcwd \
@.src.unix.o.ioctl @.src.unix.o.isatty @.src.unix.o.ispipe \
@.src.unix.o.kill @.src.unix.o.link @.src.unix.o.lseek \
@.src.unix.o.mkdir @.src.unix.o.nice @.src.unix.o.open \
@.src.unix.o.pause @.src.unix.o.pipe @.src.unix.o.proc \
@.src.unix.o.putenv @.src.unix.o.read @.src.unix.o.rmdir \
@.src.unix.o.sleep @.src.unix.o.stat @.src.unix.o.sync \
@.src.unix.o.time @.src.unix.o.tty @.src.unix.o.umask \
@.src.unix.o.uname @.src.unix.o.unix @.src.unix.o.unlink \
@.src.unix.o.utime @.src.unix.o.wait @.src.unix.o.write
-remove @.src.unix.!Stamp
-create @.src.unix.!Stamp 0
@.test.!Test0: @.test.o.!Test0 $(LIBS)
$(LINK) @.test.o.!Test0 $(LIBS)
@.test.!Test1: @.test.o.!Test1 $(LIBS)
$(LINK) @.test.o.!Test1 $(LIBS)
@.test.allocatest: @.test.o.allocatest $(LIBS)
$(LINK) @.test.o.allocatest $(LIBS)
@.test.allocatst2: @.test.o.allocatst2 $(LIBS)
$(LINK) @.test.o.allocatst2 $(LIBS)
@.test.argtest: @.test.o.argtest $(LIBS)
$(LINK) @.test.o.argtest $(LIBS)
@.test.ctimetest: @.test.o.ctimetest $(LIBS)
$(LINK) @.test.o.ctimetest $(LIBS)
@.test.dirtest: @.test.o.dirtest $(LIBS)
$(LINK) @.test.o.dirtest $(LIBS)
@.test.divtest: @.test.o.divtest $(LIBS)
$(LINK) @.test.o.divtest $(LIBS)
@.test.envtest: @.test.o.envtest $(LIBS)
$(LINK) @.test.o.envtest $(LIBS)
@.test.extest2: @.test.o.extest2 $(LIBS)
$(LINK) @.test.o.extest2 $(LIBS)
@.test.extest3: @.test