├── AUTHORS ├── stamp-h ├── dbug ├── malloc │ ├── patchlev │ ├── tostring.h │ ├── _changes │ └── calloc.c ├── getwd.c ├── dbug │ ├── example1.c │ ├── example3.c │ ├── example2.c │ ├── factorial.c │ ├── makeman.sh │ └── main.c └── readme ├── msdos ├── zortech │ ├── lib.rsp │ ├── libswp.rsp │ ├── obj.rsp │ └── objswp.rsp ├── microsft │ ├── msc51 │ │ ├── lib.rsp │ │ ├── libswp.rsp │ │ ├── template.mk │ │ ├── config.mk │ │ ├── obj.rsp │ │ └── objswp.rsp │ ├── msc60 │ │ ├── lib.rsp │ │ ├── libswp.rsp │ │ ├── template.mk │ │ ├── config.mk │ │ ├── obj.rsp │ │ └── objswp.rsp │ └── optoff.h ├── borland │ ├── bcc30 │ │ ├── lib.rsp │ │ ├── libswp.rsp │ │ ├── template.mk │ │ ├── config.mk │ │ ├── obj.rsp │ │ └── objswp.rsp │ ├── bcc40 │ │ ├── libswp.rsp │ │ ├── lib.rsp │ │ ├── config.mk │ │ ├── template.mk │ │ ├── obj.rsp │ │ └── objswp.rsp │ ├── bcc45 │ │ ├── libswp.rsp │ │ ├── lib.rsp │ │ ├── config.mk │ │ ├── template.mk │ │ ├── obj.rsp │ │ └── objswp.rsp │ ├── bcc50 │ │ ├── libswp.rsp │ │ ├── lib.rsp │ │ ├── config.mk │ │ ├── template.mk │ │ ├── obj.rsp │ │ └── objswp.rsp │ └── tcc20 │ │ ├── libswp.rsp │ │ ├── template.mk │ │ ├── config.mk │ │ └── objswp.rsp ├── dosdta.h ├── startup.h ├── tee.c ├── dirent.h ├── exec.h ├── dchdir.c ├── sysintf.h └── dirbrk.c ├── os2 ├── ibm │ ├── icc │ │ ├── lib.rsp │ │ ├── template.mk │ │ ├── config.mk │ │ └── obj.rsp │ └── icc3 │ │ ├── lib.rsp │ │ ├── template.mk │ │ ├── config.mk │ │ └── obj.rsp ├── startup.h ├── dchdir.c └── dirent.h ├── win95 ├── microsft │ ├── vpp40 │ │ ├── lib.rsp │ │ ├── template.mk │ │ ├── config.mk │ │ └── obj.rsp │ ├── allochnd.cpp │ └── optoff.h ├── borland │ └── bcc50 │ │ ├── lib.rsp │ │ ├── template.mk │ │ ├── config.mk │ │ └── obj.rsp ├── startup.h └── dchdir.c ├── winnt ├── microsft │ ├── vpp40 │ │ ├── lib.rsp │ │ ├── template.mk │ │ ├── config.mk │ │ └── obj.rsp │ ├── allochnd.cpp │ ├── optoff.h │ └── sysintf.h ├── borland │ └── bcc50 │ │ ├── lib.rsp │ │ ├── template.mk │ │ ├── config.mk │ │ └── obj.rsp ├── startup.h └── dchdir.c ├── mac ├── make.sh ├── make_mac.sh ├── template.mk ├── startup.h ├── sysintf.h ├── rmprq.c ├── dirbrk.c └── main.c ├── acinclude.m4 ├── startup ├── unix │ ├── os2 │ │ └── Makefile.am │ ├── linux │ │ ├── Makefile.am │ │ ├── gnu │ │ │ └── macros.mk │ │ └── macros.mk │ ├── cygwin │ │ ├── Makefile.am │ │ └── macros.mk │ ├── macosx │ │ ├── Makefile.am │ │ ├── gnu │ │ │ └── macros.mk │ │ └── macros.mk │ ├── solaris │ │ ├── Makefile.am │ │ └── macros.mk │ ├── sysvr4 │ │ ├── Makefile.am │ │ └── macros.mk │ ├── macros.mk │ ├── Makefile.am │ ├── coherent │ │ ├── recipes.mk │ │ └── macros.mk │ ├── 386ix │ │ └── macros.mk │ ├── sysvr1 │ │ └── macros.mk │ ├── xenix │ │ └── macros.mk │ ├── sysvr3 │ │ ├── macros.mk │ │ └── gnu │ │ │ └── macros.mk │ ├── bsd43 │ │ ├── macros.mk │ │ └── recipes.mk │ └── recipes.mk ├── winnt │ ├── mingw │ │ ├── Makefile.am │ │ └── macros.mk │ ├── msvc6 │ │ ├── Makefile.am │ │ └── macros.mk │ ├── Makefile.am │ ├── recipes.mk │ ├── borland │ │ └── macros.mk │ └── microsft │ │ └── macros.mk ├── Makefile.am ├── msdos │ ├── borland │ │ ├── tcc20 │ │ │ └── macros.mk │ │ ├── bcc30 │ │ │ └── macros.mk │ │ ├── bcc40 │ │ │ └── macros.mk │ │ ├── bcc45 │ │ │ └── macros.mk │ │ ├── bcc50.32 │ │ │ └── macros.mk │ │ ├── bcc50 │ │ │ └── macros.mk │ │ └── macros.mk │ ├── recipes.mk │ ├── zortech │ │ └── macros.mk │ └── microsft │ │ └── macros.mk ├── config.mk.in ├── summary ├── qssl │ ├── qnx │ │ ├── recipes.mk │ │ └── macros.mk │ ├── recipes.mk │ └── macros.mk ├── templates │ ├── mac │ │ └── template.mk │ ├── qssl │ │ └── template.mk │ ├── tos │ │ └── template.mk │ ├── os2 │ │ └── ibm │ │ │ └── icc │ │ │ └── template.mk │ ├── unix │ │ ├── 386ix │ │ │ └── template.mk │ │ ├── bsd43 │ │ │ ├── template.mk │ │ │ ├── uw │ │ │ │ └── template.mk │ │ │ └── vf │ │ │ │ └── template.mk │ │ ├── solaris │ │ │ ├── template.mk │ │ │ └── gnu │ │ │ │ └── template.mk │ │ ├── sysvr1 │ │ │ └── template.mk │ │ ├── sysvr3 │ │ │ ├── template.mk │ │ │ └── pwd │ │ │ │ └── template.mk │ │ ├── sysvr4 │ │ │ └── template.mk │ │ ├── xenix │ │ │ ├── template.mk │ │ │ └── pwd │ │ │ │ └── template.mk │ │ ├── linux │ │ │ └── gnu │ │ │ │ └── template.mk │ │ └── coherent │ │ │ ├── ver40 │ │ │ └── template.mk │ │ │ └── ver42 │ │ │ └── template.mk │ ├── msdos │ │ ├── borland │ │ │ ├── bcc30 │ │ │ │ └── template.mk │ │ │ ├── bcc40 │ │ │ │ └── template.mk │ │ │ ├── bcc45 │ │ │ │ └── template.mk │ │ │ ├── bcc50 │ │ │ │ └── template.mk │ │ │ └── tcc20 │ │ │ │ └── template.mk │ │ └── microsft │ │ │ ├── msc51 │ │ │ └── template.mk │ │ │ └── msc60 │ │ │ └── template.mk │ ├── win95 │ │ ├── borland │ │ │ └── bcc50 │ │ │ │ └── template.mk │ │ └── microsft │ │ │ └── vpp40 │ │ │ └── template.mk │ └── winnt │ │ ├── borland │ │ └── bcc50 │ │ │ └── template.mk │ │ └── microsft │ │ └── vpp40 │ │ └── template.mk ├── template.mk ├── win95 │ ├── recipes.mk │ ├── borland │ │ └── macros.mk │ └── microsft │ │ └── macros.mk ├── tos │ └── macros.mk ├── os2 │ └── ibm │ │ └── macros.mk └── mac │ └── macros.mk ├── dmakeroot.h.in ├── unix ├── linux │ ├── gnu │ │ ├── config.mk │ │ └── template.mk │ └── config.mk ├── macosx │ ├── gnu │ │ ├── config.mk │ │ └── template.mk │ └── config.mk ├── solaris │ ├── gnu │ │ ├── config.mk │ │ └── template.mk │ ├── template.mk │ └── config.mk ├── 386ix │ ├── template.mk │ ├── ar.h │ ├── config.mk │ ├── time.h │ └── stdlib.h ├── bsd43 │ ├── template.mk │ ├── uw │ │ ├── template.mk │ │ └── config.mk │ ├── vf │ │ ├── template.mk │ │ ├── config.mk │ │ └── memcpy.c │ ├── dirent.h │ ├── config.mk │ ├── limits.h │ ├── setvbuf.c │ ├── string.h │ └── stdlib.h ├── sysvr1 │ ├── template.mk │ ├── time.h │ ├── config.mk │ ├── stdlib.h │ └── vfprintf.c ├── sysvr3 │ ├── template.mk │ ├── pwd │ │ ├── template.mk │ │ └── config.mk │ ├── time.h │ └── config.mk ├── sysvr4 │ ├── template.mk │ └── config.mk ├── xenix │ ├── template.mk │ ├── pwd │ │ ├── template.mk │ │ └── config.mk │ ├── time.h │ ├── config.mk │ └── stdlib.h ├── bsdarm32 │ ├── template.mk │ ├── limits.h │ ├── dirent.h │ ├── config.mk │ ├── string.h │ └── stdlib.h ├── coherent │ ├── ver40 │ │ ├── template.mk │ │ ├── config.mk │ │ └── getcwd.c │ ├── ver42 │ │ ├── template.mk │ │ └── config.mk │ ├── time.h │ ├── config.mk │ └── stdlib.h ├── Makefile.am ├── startup.h ├── config.mk └── sysintf.h ├── tos ├── template.mk ├── startup.h └── sysintf.h ├── qssl ├── template.mk ├── time.h ├── startup.h ├── sysintf.h └── stdlib.h ├── INSTALL ├── readme └── public │ └── qssl-qnx.txt ├── .github └── workflows │ └── basic-check.yml ├── tests ├── README ├── targets-17 ├── recipes-1 ├── misc-10 ├── misc-21 ├── function_macros-7 ├── recipes-2 ├── misc-11 ├── misc-12 ├── targets-11 ├── recipes-4 ├── function_macros-4 ├── recipes-7 ├── recipes-3 ├── misc-19 ├── misc-2 ├── function_macros-6 ├── misc-8 ├── targets-9 ├── targets-25 ├── misc-14 ├── targets-16 ├── misc-3 ├── macros-1 ├── misc-7 ├── misc-17 ├── function_macros-3 ├── misc-1 ├── Makefile.am ├── targets-21 ├── targets-8 ├── targets-12 ├── targets-22 ├── misc-16 ├── targets-3 ├── targets-23 ├── targets-14 ├── targets-6 └── misc-5 ├── man └── readme └── dstdarg.h /AUTHORS: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /stamp-h: -------------------------------------------------------------------------------- 1 | timestamp 2 | -------------------------------------------------------------------------------- /dbug/malloc/patchlev: -------------------------------------------------------------------------------- 1 | 3 2 | -------------------------------------------------------------------------------- /msdos/zortech/lib.rsp: -------------------------------------------------------------------------------- 1 | 2 | -------------------------------------------------------------------------------- /os2/ibm/icc/lib.rsp: -------------------------------------------------------------------------------- 1 | 2 | -------------------------------------------------------------------------------- /os2/ibm/icc3/lib.rsp: -------------------------------------------------------------------------------- 1 | 2 | -------------------------------------------------------------------------------- /msdos/microsft/msc51/lib.rsp: -------------------------------------------------------------------------------- 1 | 2 | -------------------------------------------------------------------------------- /msdos/microsft/msc60/lib.rsp: -------------------------------------------------------------------------------- 1 | 2 | -------------------------------------------------------------------------------- /msdos/zortech/libswp.rsp: -------------------------------------------------------------------------------- 1 | 2 | -------------------------------------------------------------------------------- /win95/microsft/vpp40/lib.rsp: -------------------------------------------------------------------------------- 1 | 2 | -------------------------------------------------------------------------------- /winnt/microsft/vpp40/lib.rsp: -------------------------------------------------------------------------------- 1 | 2 | -------------------------------------------------------------------------------- /msdos/microsft/msc51/libswp.rsp: -------------------------------------------------------------------------------- 1 | 2 | -------------------------------------------------------------------------------- /msdos/microsft/msc60/libswp.rsp: -------------------------------------------------------------------------------- 1 | 2 | -------------------------------------------------------------------------------- /msdos/borland/bcc30/lib.rsp: -------------------------------------------------------------------------------- 1 | d:\cc\borland\bcc30\lib\cl 2 | -------------------------------------------------------------------------------- /msdos/borland/bcc30/libswp.rsp: -------------------------------------------------------------------------------- 1 | e:\cc\borland\bcc30\lib\cl 2 | -------------------------------------------------------------------------------- /msdos/borland/bcc40/libswp.rsp: -------------------------------------------------------------------------------- 1 | e:\cc\borland\bcc40\lib\cl 2 | -------------------------------------------------------------------------------- /msdos/borland/bcc45/libswp.rsp: -------------------------------------------------------------------------------- 1 | e:\cc\borland\bcc40\lib\cl 2 | -------------------------------------------------------------------------------- /msdos/borland/bcc50/libswp.rsp: -------------------------------------------------------------------------------- 1 | e:\cc\borland\bcc40\lib\cl 2 | -------------------------------------------------------------------------------- /msdos/borland/tcc20/libswp.rsp: -------------------------------------------------------------------------------- 1 | e:\cc\borland\tcc20\lib\cl 2 | -------------------------------------------------------------------------------- /mac/make.sh: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jimjag/dmake/HEAD/mac/make.sh -------------------------------------------------------------------------------- /mac/make_mac.sh: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jimjag/dmake/HEAD/mac/make_mac.sh -------------------------------------------------------------------------------- /acinclude.m4: -------------------------------------------------------------------------------- 1 | ## -*- autoconf -*- 2 | 3 | dnl Currently no local macros are needed. 4 | -------------------------------------------------------------------------------- /msdos/borland/bcc40/lib.rsp: -------------------------------------------------------------------------------- 1 | e:\cc\borland\bcc40\lib\cw32+ 2 | e:\cc\borland\bcc40\lib\import32 3 | -------------------------------------------------------------------------------- /msdos/borland/bcc45/lib.rsp: -------------------------------------------------------------------------------- 1 | e:\cc\borland\bcc45\lib\cw32+ 2 | e:\cc\borland\bcc45\lib\import32 3 | -------------------------------------------------------------------------------- /msdos/borland/bcc50/lib.rsp: -------------------------------------------------------------------------------- 1 | e:\cc\borland\bcc50\lib\cw32+ 2 | e:\cc\borland\bcc50\lib\import32 3 | -------------------------------------------------------------------------------- /win95/borland/bcc50/lib.rsp: -------------------------------------------------------------------------------- 1 | c:\cc\borland\bcc50\lib\cw32+ 2 | c:\cc\borland\bcc50\lib\import32 3 | -------------------------------------------------------------------------------- /winnt/borland/bcc50/lib.rsp: -------------------------------------------------------------------------------- 1 | c:\cc\borland\bcc50\lib\cw32 2 | c:\cc\borland\bcc50\lib\import32 3 | -------------------------------------------------------------------------------- /startup/unix/os2/Makefile.am: -------------------------------------------------------------------------------- 1 | 2 | startupdir = $(datadir)/startup/unix/os2 3 | 4 | startup_DATA = macros.mk 5 | 6 | 7 | -------------------------------------------------------------------------------- /startup/unix/linux/Makefile.am: -------------------------------------------------------------------------------- 1 | 2 | startupdir = $(datadir)/startup/unix/linux 3 | 4 | startup_DATA = macros.mk 5 | 6 | 7 | -------------------------------------------------------------------------------- /startup/unix/cygwin/Makefile.am: -------------------------------------------------------------------------------- 1 | startupdir = $(datadir)/startup/unix/cygwin 2 | 3 | startup_DATA = macros.mk 4 | 5 | 6 | 7 | -------------------------------------------------------------------------------- /startup/unix/macosx/Makefile.am: -------------------------------------------------------------------------------- 1 | 2 | startupdir = $(datadir)/startup/unix/macosx 3 | 4 | startup_DATA = macros.mk 5 | 6 | 7 | -------------------------------------------------------------------------------- /startup/unix/solaris/Makefile.am: -------------------------------------------------------------------------------- 1 | 2 | startupdir = $(datadir)/startup/unix/solaris 3 | 4 | startup_DATA = macros.mk 5 | 6 | 7 | -------------------------------------------------------------------------------- /startup/unix/sysvr4/Makefile.am: -------------------------------------------------------------------------------- 1 | 2 | startupdir = $(datadir)/startup/unix/sysvr4 3 | 4 | startup_DATA = macros.mk 5 | 6 | 7 | -------------------------------------------------------------------------------- /startup/winnt/mingw/Makefile.am: -------------------------------------------------------------------------------- 1 | startupdir = $(datadir)/startup/winnt/mingw 2 | 3 | startup_DATA = macros.mk 4 | 5 | 6 | 7 | -------------------------------------------------------------------------------- /startup/winnt/msvc6/Makefile.am: -------------------------------------------------------------------------------- 1 | startupdir = $(datadir)/startup/winnt/msvc6 2 | 3 | startup_DATA = macros.mk 4 | 5 | 6 | 7 | -------------------------------------------------------------------------------- /dbug/getwd.c: -------------------------------------------------------------------------------- 1 | char * 2 | getwd(pathname) 3 | char *pathname; 4 | { 5 | return("delete this code if your getwd.c works correctly"); 6 | } 7 | -------------------------------------------------------------------------------- /dmakeroot.h.in: -------------------------------------------------------------------------------- 1 | /* dmakeroot.h 2 | * 3 | * This is a generated file. Please modify `configure.in' 4 | */ 5 | 6 | @DMAKEROOT_H_LINE1@ 7 | -------------------------------------------------------------------------------- /startup/Makefile.am: -------------------------------------------------------------------------------- 1 | 2 | startupdir = $(datadir)/startup 3 | 4 | startup_DATA = startup.mk config.mk 5 | 6 | DIST_SUBDIRS = unix winnt 7 | SUBDIRS = @OS_TYPE@ 8 | -------------------------------------------------------------------------------- /startup/msdos/borland/tcc20/macros.mk: -------------------------------------------------------------------------------- 1 | # MSDOS Turbo-C customization. 2 | 3 | # Standard C-language command names and flags 4 | CC *:= tcc # C compiler 5 | -------------------------------------------------------------------------------- /startup/msdos/borland/bcc30/macros.mk: -------------------------------------------------------------------------------- 1 | # MSDOS Borland-C customization. 2 | 3 | # Standard C-language command names and flags 4 | CC *:= bcc # C compiler 5 | -------------------------------------------------------------------------------- /startup/msdos/borland/bcc40/macros.mk: -------------------------------------------------------------------------------- 1 | # MSDOS Borland-C customization. 2 | 3 | # Standard C-language command names and flags 4 | CC *:= bcc # C compiler 5 | -------------------------------------------------------------------------------- /startup/msdos/borland/bcc45/macros.mk: -------------------------------------------------------------------------------- 1 | # MSDOS Borland-C customization. 2 | 3 | # Standard C-language command names and flags 4 | CC *:= bcc # C compiler 5 | -------------------------------------------------------------------------------- /startup/msdos/borland/bcc50.32/macros.mk: -------------------------------------------------------------------------------- 1 | # MSDOS Borland-C customization. 2 | 3 | # Standard C-language command names and flags 4 | CC *:= bcc # C compiler 5 | -------------------------------------------------------------------------------- /startup/msdos/borland/bcc50/macros.mk: -------------------------------------------------------------------------------- 1 | # MSDOS Borland-C customization. 2 | 3 | # Standard C-language command names and flags 4 | CC *:= bcc # C compiler 5 | -------------------------------------------------------------------------------- /startup/winnt/Makefile.am: -------------------------------------------------------------------------------- 1 | 2 | startupdir = $(datadir)/startup/winnt 3 | 4 | startup_DATA = macros.mk recipes.mk 5 | 6 | DIST_SUBDIRS = mingw msvc6 7 | SUBDIRS = @OS_VERSION@ 8 | 9 | -------------------------------------------------------------------------------- /startup/config.mk.in: -------------------------------------------------------------------------------- 1 | # ** DO NOT PLACE LOCAL DEFINITIONS INTO THIS FILE IT IS AUTO GENERATED 2 | 3 | OS := @OS_TYPE@ 4 | OSRELEASE := @OS_VERSION@ 5 | #OSENVIRONMENT := ??? 6 | -------------------------------------------------------------------------------- /unix/linux/gnu/config.mk: -------------------------------------------------------------------------------- 1 | # This is the Linux gnu configuration file for DMAKE 2 | # It makes sure we include from the right place. 3 | # 4 | CFLAGS += -I$(osrdir)$(DIRSEPSTR)$(OSENVIRONMENT) 5 | -------------------------------------------------------------------------------- /unix/macosx/gnu/config.mk: -------------------------------------------------------------------------------- 1 | # This is the Linux gnu configuration file for DMAKE 2 | # It makes sure we include from the right place. 3 | # 4 | CFLAGS += -I$(osrdir)$(DIRSEPSTR)$(OSENVIRONMENT) 5 | -------------------------------------------------------------------------------- /startup/unix/macros.mk: -------------------------------------------------------------------------------- 1 | # Define additional UNIX specific macros. 2 | # 3 | 4 | # Process release-specific refinements, if any. 5 | .INCLUDE .NOINFER .IGNORE : $(INCFILENAME:d)$(OSRELEASE)$/macros.mk 6 | -------------------------------------------------------------------------------- /startup/summary: -------------------------------------------------------------------------------- 1 | The following is a summary of the supported dmake environments. When you 2 | issue the build command 'dmake tag' where tag is the target environment it 3 | will build one of these by default. 4 | -------------------------------------------------------------------------------- /startup/unix/Makefile.am: -------------------------------------------------------------------------------- 1 | 2 | startupdir = $(datadir)/startup/unix 3 | 4 | startup_DATA = macros.mk recipes.mk 5 | 6 | DIST_SUBDIRS = cygwin linux macosx solaris sysvr4 os2 7 | SUBDIRS = @OS_VERSION@ 8 | 9 | -------------------------------------------------------------------------------- /startup/unix/coherent/recipes.mk: -------------------------------------------------------------------------------- 1 | # Use the same file as 2 | # 3 | __.incdir !:= $(INCFILENAME:d:d:d:d)/bsd43 4 | 5 | # Process environment-specific refinements, if any. 6 | .INCLUDE .SETDIR=$(__.incdir) .NOINFER .IGNORE : recipes.mk 7 | -------------------------------------------------------------------------------- /unix/solaris/gnu/config.mk: -------------------------------------------------------------------------------- 1 | # This is the Solaris gcc configuration file for DMAKE 2 | # It modifies the value of CC to be gcc 3 | # 4 | 5 | CC = gcc 6 | 7 | # disable a gcc bug when compiling runargv.c 8 | runargv.o ?= CFLAGS += -g 9 | -------------------------------------------------------------------------------- /startup/qssl/qnx/recipes.mk: -------------------------------------------------------------------------------- 1 | # Define additional QNX specific build recipes. 2 | # 3 | 4 | # Recipe to make archive files. 5 | # --Figure out what to do about the librarian-- 6 | %$A .GROUP : 7 | $(AR) $(ARFLAGS) $@ $? 8 | $(RM) $(RMFLAGS) $? 9 | -------------------------------------------------------------------------------- /startup/qssl/recipes.mk: -------------------------------------------------------------------------------- 1 | # Define additional QNX specific build recipes. 2 | # 3 | 4 | # Recipe to make archive files. 5 | # --Figure out what to do about the librarian-- 6 | %$A .GROUP : 7 | $(AR) $(ARFLAGS) $@ $? 8 | $(RM) $(RMFLAGS) $? 9 | -------------------------------------------------------------------------------- /startup/unix/coherent/macros.mk: -------------------------------------------------------------------------------- 1 | # We hang off the standard BSD'isms 2 | # 3 | __.incdir !:= $(INCFILENAME:d:d:d:d)/bsd43 4 | 5 | # Process environment-specific refinements, if any. 6 | .INCLUDE .SETDIR=$(__.incdir) .NOINFER .IGNORE : macros.mk 7 | -------------------------------------------------------------------------------- /startup/unix/386ix/macros.mk: -------------------------------------------------------------------------------- 1 | # We hang off the standard sysvr3'isms 2 | # 3 | __.incdir !:= $(INCFILENAME:d:d:d:d)/sysvr3 4 | 5 | # Process environment-specific refinements, if any. 6 | .INCLUDE .SETDIR=$(__.incdir) .NOINFER .IGNORE : macros.mk 7 | -------------------------------------------------------------------------------- /startup/unix/solaris/macros.mk: -------------------------------------------------------------------------------- 1 | # We hang off the standard sysvr3'isms 2 | # 3 | __.incdir !:= $(INCFILENAME:d:d:d:d)/sysvr3 4 | 5 | # Process environment-specific refinements, if any. 6 | .INCLUDE .SETDIR=$(__.incdir) .NOINFER .IGNORE : macros.mk 7 | -------------------------------------------------------------------------------- /startup/unix/sysvr1/macros.mk: -------------------------------------------------------------------------------- 1 | # We hang off the standard sysvr3'isms 2 | # 3 | __.incdir !:= $(INCFILENAME:d:d:d:d)/sysvr3 4 | 5 | # Process environment-specific refinements, if any. 6 | .INCLUDE .SETDIR=$(__.incdir) .NOINFER .IGNORE : macros.mk 7 | -------------------------------------------------------------------------------- /startup/unix/sysvr4/macros.mk: -------------------------------------------------------------------------------- 1 | # We hang off the standard sysvr3'isms 2 | # 3 | __.incdir !:= $(INCFILENAME:d:d:d:d)/sysvr3 4 | 5 | # Process environment-specific refinements, if any. 6 | .INCLUDE .SETDIR=$(__.incdir) .NOINFER .IGNORE : macros.mk 7 | -------------------------------------------------------------------------------- /startup/unix/xenix/macros.mk: -------------------------------------------------------------------------------- 1 | # We hang off the standard sysvr3'isms 2 | # 3 | __.incdir !:= $(INCFILENAME:d:d:d:d)/sysvr3 4 | 5 | # Process environment-specific refinements, if any. 6 | .INCLUDE .SETDIR=$(__.incdir) .NOINFER .IGNORE : macros.mk 7 | -------------------------------------------------------------------------------- /dbug/dbug/example1.c: -------------------------------------------------------------------------------- 1 | #include 2 | 3 | main (argc, argv) 4 | int argc; 5 | char *argv[]; 6 | { 7 | printf ("argv[0] = %d\n", argv[0]); 8 | /* 9 | * Rest of program 10 | */ 11 | printf ("== done ==\n"); 12 | } 13 | -------------------------------------------------------------------------------- /startup/unix/sysvr3/macros.mk: -------------------------------------------------------------------------------- 1 | # Define additional UNIX specific macros. 2 | # 3 | 4 | # Process environment-specific refinements, if any. 5 | .IF $(OSENVIRONMENT) 6 | .INCLUDE .NOINFER .IGNORE : $(INCFILENAME:d)$(OSENVIRONMENT)$/macros.mk 7 | .ENDIF 8 | -------------------------------------------------------------------------------- /startup/unix/linux/gnu/macros.mk: -------------------------------------------------------------------------------- 1 | # We hang off the standard sysvr3'isms 2 | # 3 | __.incdir !:= $(INCFILENAME:d:d:d:d:d:d)/sysvr3/gnu 4 | 5 | # Process environment-specific refinements, if any. 6 | .INCLUDE .SETDIR=$(__.incdir) .NOINFER .IGNORE : macros.mk 7 | -------------------------------------------------------------------------------- /startup/unix/macosx/gnu/macros.mk: -------------------------------------------------------------------------------- 1 | # We hang off the standard sysvr3'isms 2 | # 3 | __.incdir !:= $(INCFILENAME:d:d:d:d:d:d)/sysvr3/gnu 4 | 5 | # Process environment-specific refinements, if any. 6 | .INCLUDE .SETDIR=$(__.incdir) .NOINFER .IGNORE : macros.mk 7 | -------------------------------------------------------------------------------- /mac/template.mk: -------------------------------------------------------------------------------- 1 | # ** Default build configuration for dmake. 2 | # ** DO NOT PLACE LOCAL DEFINITIONS INTO THIS FILE IT IS AUTO GENERATED 3 | # ** USE "startup/local.mk" for those. 4 | 5 | OS *:= mac 6 | OSRELEASE *:= 7 | OSENVIRONMENT *:= 8 | -------------------------------------------------------------------------------- /tos/template.mk: -------------------------------------------------------------------------------- 1 | # ** Default build configuration for dmake. 2 | # ** DO NOT PLACE LOCAL DEFINITIONS INTO THIS FILE IT IS AUTO GENERATED 3 | # ** USE "startup/local.mk" for those. 4 | 5 | OS *:= tos 6 | OSRELEASE *:= 7 | OSENVIRONMENT *:= 8 | -------------------------------------------------------------------------------- /qssl/template.mk: -------------------------------------------------------------------------------- 1 | # ** Default build configuration for dmake. 2 | # ** DO NOT PLACE LOCAL DEFINITIONS INTO THIS FILE IT IS AUTO GENERATED 3 | # ** USE "startup/local.mk" for those. 4 | 5 | OS *:= qssl 6 | OSRELEASE *:= 7 | OSENVIRONMENT *:= 8 | -------------------------------------------------------------------------------- /os2/ibm/icc/template.mk: -------------------------------------------------------------------------------- 1 | # ** Default build configuration for dmake. 2 | # ** DO NOT PLACE LOCAL DEFINITIONS INTO THIS FILE IT IS AUTO GENERATED 3 | # ** USE "startup/local.mk" for those. 4 | 5 | OS *:= os2 6 | OSRELEASE *:= ibm 7 | OSENVIRONMENT *:= icc 8 | -------------------------------------------------------------------------------- /os2/ibm/icc3/template.mk: -------------------------------------------------------------------------------- 1 | # ** Default build configuration for dmake. 2 | # ** DO NOT PLACE LOCAL DEFINITIONS INTO THIS FILE IT IS AUTO GENERATED 3 | # ** USE "startup/local.mk" for those. 4 | 5 | OS *:= os2 6 | OSRELEASE *:= ibm 7 | OSENVIRONMENT *:= icc 8 | -------------------------------------------------------------------------------- /unix/386ix/template.mk: -------------------------------------------------------------------------------- 1 | # ** Default build configuration for dmake. 2 | # ** DO NOT PLACE LOCAL DEFINITIONS INTO THIS FILE IT IS AUTO GENERATED 3 | # ** USE "startup/local.mk" for those. 4 | 5 | OS *:= unix 6 | OSRELEASE *:= 386ix 7 | OSENVIRONMENT *:= 8 | -------------------------------------------------------------------------------- /unix/bsd43/template.mk: -------------------------------------------------------------------------------- 1 | # ** Default build configuration for dmake. 2 | # ** DO NOT PLACE LOCAL DEFINITIONS INTO THIS FILE IT IS AUTO GENERATED 3 | # ** USE "startup/local.mk" for those. 4 | 5 | OS *:= unix 6 | OSRELEASE *:= bsd43 7 | OSENVIRONMENT *:= 8 | -------------------------------------------------------------------------------- /unix/sysvr1/template.mk: -------------------------------------------------------------------------------- 1 | # ** Default build configuration for dmake. 2 | # ** DO NOT PLACE LOCAL DEFINITIONS INTO THIS FILE IT IS AUTO GENERATED 3 | # ** USE "startup/local.mk" for those. 4 | 5 | OS *:= unix 6 | OSRELEASE *:= sysvr1 7 | OSENVIRONMENT *:= 8 | -------------------------------------------------------------------------------- /unix/sysvr3/template.mk: -------------------------------------------------------------------------------- 1 | # ** Default build configuration for dmake. 2 | # ** DO NOT PLACE LOCAL DEFINITIONS INTO THIS FILE IT IS AUTO GENERATED 3 | # ** USE "startup/local.mk" for those. 4 | 5 | OS *:= unix 6 | OSRELEASE *:= sysvr3 7 | OSENVIRONMENT *:= 8 | -------------------------------------------------------------------------------- /unix/sysvr4/template.mk: -------------------------------------------------------------------------------- 1 | # ** Default build configuration for dmake. 2 | # ** DO NOT PLACE LOCAL DEFINITIONS INTO THIS FILE IT IS AUTO GENERATED 3 | # ** USE "startup/local.mk" for those. 4 | 5 | OS *:= unix 6 | OSRELEASE *:= sysvr4 7 | OSENVIRONMENT *:= 8 | -------------------------------------------------------------------------------- /unix/xenix/template.mk: -------------------------------------------------------------------------------- 1 | # ** Default build configuration for dmake. 2 | # ** DO NOT PLACE LOCAL DEFINITIONS INTO THIS FILE IT IS AUTO GENERATED 3 | # ** USE "startup/local.mk" for those. 4 | 5 | OS *:= unix 6 | OSRELEASE *:= xenix 7 | OSENVIRONMENT *:= 8 | -------------------------------------------------------------------------------- /startup/templates/mac/template.mk: -------------------------------------------------------------------------------- 1 | # ** Default build configuration for dmake. 2 | # ** DO NOT PLACE LOCAL DEFINITIONS INTO THIS FILE IT IS AUTO GENERATED 3 | # ** USE "startup/local.mk" for those. 4 | 5 | OS *:= mac 6 | OSRELEASE *:= 7 | OSENVIRONMENT *:= 8 | -------------------------------------------------------------------------------- /startup/templates/qssl/template.mk: -------------------------------------------------------------------------------- 1 | # ** Default build configuration for dmake. 2 | # ** DO NOT PLACE LOCAL DEFINITIONS INTO THIS FILE IT IS AUTO GENERATED 3 | # ** USE "startup/local.mk" for those. 4 | 5 | OS *:= qssl 6 | OSRELEASE *:= 7 | OSENVIRONMENT *:= 8 | -------------------------------------------------------------------------------- /startup/templates/tos/template.mk: -------------------------------------------------------------------------------- 1 | # ** Default build configuration for dmake. 2 | # ** DO NOT PLACE LOCAL DEFINITIONS INTO THIS FILE IT IS AUTO GENERATED 3 | # ** USE "startup/local.mk" for those. 4 | 5 | OS *:= tos 6 | OSRELEASE *:= 7 | OSENVIRONMENT *:= 8 | -------------------------------------------------------------------------------- /unix/bsd43/uw/template.mk: -------------------------------------------------------------------------------- 1 | # ** Default build configuration for dmake. 2 | # ** DO NOT PLACE LOCAL DEFINITIONS INTO THIS FILE IT IS AUTO GENERATED 3 | # ** USE "startup/local.mk" for those. 4 | 5 | OS *:= unix 6 | OSRELEASE *:= bsd43 7 | OSENVIRONMENT *:= uw 8 | -------------------------------------------------------------------------------- /unix/bsd43/vf/template.mk: -------------------------------------------------------------------------------- 1 | # ** Default build configuration for dmake. 2 | # ** DO NOT PLACE LOCAL DEFINITIONS INTO THIS FILE IT IS AUTO GENERATED 3 | # ** USE "startup/local.mk" for those. 4 | 5 | OS *:= unix 6 | OSRELEASE *:= bsd43 7 | OSENVIRONMENT *:= vf 8 | -------------------------------------------------------------------------------- /unix/bsdarm32/template.mk: -------------------------------------------------------------------------------- 1 | # ** Default build configuration for dmake. 2 | # ** DO NOT PLACE LOCAL DEFINITIONS INTO THIS FILE IT IS AUTO GENERATED 3 | # ** USE "startup/local.mk" for those. 4 | 5 | OS *:= unix 6 | OSRELEASE *:= bsdarm32 7 | OSENVIRONMENT *:= 8 | -------------------------------------------------------------------------------- /unix/linux/gnu/template.mk: -------------------------------------------------------------------------------- 1 | # ** Default build configuration for dmake. 2 | # ** DO NOT PLACE LOCAL DEFINITIONS INTO THIS FILE IT IS AUTO GENERATED 3 | # ** USE "startup/local.mk" for those. 4 | 5 | OS *:= unix 6 | OSRELEASE *:= linux 7 | OSENVIRONMENT *:= gnu 8 | -------------------------------------------------------------------------------- /unix/solaris/template.mk: -------------------------------------------------------------------------------- 1 | # ** Default build configuration for dmake. 2 | # ** DO NOT PLACE LOCAL DEFINITIONS INTO THIS FILE IT IS AUTO GENERATED 3 | # ** USE "startup/local.mk" for those. 4 | 5 | OS *:= unix 6 | OSRELEASE *:= solaris 7 | OSENVIRONMENT *:= 8 | -------------------------------------------------------------------------------- /unix/xenix/pwd/template.mk: -------------------------------------------------------------------------------- 1 | # ** Default build configuration for dmake. 2 | # ** DO NOT PLACE LOCAL DEFINITIONS INTO THIS FILE IT IS AUTO GENERATED 3 | # ** USE "startup/local.mk" for those. 4 | 5 | OS *:= unix 6 | OSRELEASE *:= xenix 7 | OSENVIRONMENT *:= pwd 8 | -------------------------------------------------------------------------------- /msdos/borland/bcc40/config.mk: -------------------------------------------------------------------------------- 1 | # Definition of macros for library, and C startup code. 2 | osedir = $(osrdir)$(DIRSEPSTR)$(OSENVIRONMENT) 3 | 4 | LDLIBS = e:/cc/borland/bcc40/lib/c$(MODEL) 5 | CSTARTUP = e:/cc/borland/bcc40/lib/c0$(MODEL).obj 6 | 7 | CFLAGS += -I$(osedir) -w-pro 8 | -------------------------------------------------------------------------------- /msdos/borland/bcc45/config.mk: -------------------------------------------------------------------------------- 1 | # Definition of macros for library, and C startup code. 2 | osedir = $(osrdir)$(DIRSEPSTR)$(OSENVIRONMENT) 3 | 4 | LDLIBS = e:/cc/borland/bcc40/lib/c$(MODEL) 5 | CSTARTUP = e:/cc/borland/bcc40/lib/c0$(MODEL).obj 6 | 7 | CFLAGS += -I$(osedir) -w-pro 8 | -------------------------------------------------------------------------------- /msdos/borland/bcc50/config.mk: -------------------------------------------------------------------------------- 1 | # Definition of macros for library, and C startup code. 2 | osedir = $(osrdir)$(DIRSEPSTR)$(OSENVIRONMENT) 3 | 4 | LDLIBS = e:/cc/borland/bcc40/lib/c$(MODEL) 5 | CSTARTUP = e:/cc/borland/bcc40/lib/c0$(MODEL).obj 6 | 7 | CFLAGS += -I$(osedir) -w-pro 8 | -------------------------------------------------------------------------------- /startup/unix/sysvr3/gnu/macros.mk: -------------------------------------------------------------------------------- 1 | # System V R3 GCC compiler specific macro definitions... 2 | # 3 | 4 | # Common tool renamings 5 | CC *:= gcc 6 | "C++" *:= g++ 7 | AS *:= gas 8 | YACC *:= bison 9 | LEX *:= flex 10 | 11 | # Common flag settings 12 | ARFLAGS *= -rvs 13 | -------------------------------------------------------------------------------- /unix/macosx/gnu/template.mk: -------------------------------------------------------------------------------- 1 | # ** Default build configuration for dmake. 2 | # ** DO NOT PLACE LOCAL DEFINITIONS INTO THIS FILE IT IS AUTO GENERATED 3 | # ** USE "startup/local.mk" for those. 4 | 5 | OS *:= unix 6 | OSRELEASE *:= macosx 7 | OSENVIRONMENT *:= gnu 8 | -------------------------------------------------------------------------------- /unix/solaris/gnu/template.mk: -------------------------------------------------------------------------------- 1 | # ** Default build configuration for dmake. 2 | # ** DO NOT PLACE LOCAL DEFINITIONS INTO THIS FILE IT IS AUTO GENERATED 3 | # ** USE "startup/local.mk" for those. 4 | 5 | OS *:= unix 6 | OSRELEASE *:= solaris 7 | OSENVIRONMENT *:= gnu 8 | -------------------------------------------------------------------------------- /unix/sysvr3/pwd/template.mk: -------------------------------------------------------------------------------- 1 | # ** Default build configuration for dmake. 2 | # ** DO NOT PLACE LOCAL DEFINITIONS INTO THIS FILE IT IS AUTO GENERATED 3 | # ** USE "startup/local.mk" for those. 4 | 5 | OS *:= unix 6 | OSRELEASE *:= sysvr3 7 | OSENVIRONMENT *:= pwd 8 | -------------------------------------------------------------------------------- /msdos/borland/bcc30/template.mk: -------------------------------------------------------------------------------- 1 | # ** Default build configuration for dmake. 2 | # ** DO NOT PLACE LOCAL DEFINITIONS INTO THIS FILE IT IS AUTO GENERATED 3 | # ** USE "startup/local.mk" for those. 4 | 5 | OS *:= msdos 6 | OSRELEASE *:= borland 7 | OSENVIRONMENT *:= bcc30 8 | -------------------------------------------------------------------------------- /msdos/borland/bcc40/template.mk: -------------------------------------------------------------------------------- 1 | # ** Default build configuration for dmake. 2 | # ** DO NOT PLACE LOCAL DEFINITIONS INTO THIS FILE IT IS AUTO GENERATED 3 | # ** USE "startup/local.mk" for those. 4 | 5 | OS *:= msdos 6 | OSRELEASE *:= borland 7 | OSENVIRONMENT *:= bcc40 8 | -------------------------------------------------------------------------------- /msdos/borland/bcc45/template.mk: -------------------------------------------------------------------------------- 1 | # ** Default build configuration for dmake. 2 | # ** DO NOT PLACE LOCAL DEFINITIONS INTO THIS FILE IT IS AUTO GENERATED 3 | # ** USE "startup/local.mk" for those. 4 | 5 | OS *:= msdos 6 | OSRELEASE *:= borland 7 | OSENVIRONMENT *:= bcc45 8 | -------------------------------------------------------------------------------- /msdos/borland/bcc50/template.mk: -------------------------------------------------------------------------------- 1 | # ** Default build configuration for dmake. 2 | # ** DO NOT PLACE LOCAL DEFINITIONS INTO THIS FILE IT IS AUTO GENERATED 3 | # ** USE "startup/local.mk" for those. 4 | 5 | OS *:= msdos 6 | OSRELEASE *:= borland 7 | OSENVIRONMENT *:= bcc50 8 | -------------------------------------------------------------------------------- /msdos/borland/tcc20/template.mk: -------------------------------------------------------------------------------- 1 | # ** Default build configuration for dmake. 2 | # ** DO NOT PLACE LOCAL DEFINITIONS INTO THIS FILE IT IS AUTO GENERATED 3 | # ** USE "startup/local.mk" for those. 4 | 5 | OS *:= msdos 6 | OSRELEASE *:= borland 7 | OSENVIRONMENT *:= tcc20 8 | -------------------------------------------------------------------------------- /unix/coherent/ver40/template.mk: -------------------------------------------------------------------------------- 1 | # ** Default build configuration for dmake. 2 | # ** DO NOT PLACE LOCAL DEFINITIONS INTO THIS FILE IT IS AUTO GENERATED 3 | # ** USE "startup/local.mk" for those. 4 | 5 | OS *:= unix 6 | OSRELEASE *:= coherent 7 | OSENVIRONMENT *:= ver40 8 | -------------------------------------------------------------------------------- /unix/coherent/ver42/template.mk: -------------------------------------------------------------------------------- 1 | # ** Default build configuration for dmake. 2 | # ** DO NOT PLACE LOCAL DEFINITIONS INTO THIS FILE IT IS AUTO GENERATED 3 | # ** USE "startup/local.mk" for those. 4 | 5 | OS *:= unix 6 | OSRELEASE *:= coherent 7 | OSENVIRONMENT *:= ver42 8 | -------------------------------------------------------------------------------- /win95/borland/bcc50/template.mk: -------------------------------------------------------------------------------- 1 | # ** Default build configuration for dmake. 2 | # ** DO NOT PLACE LOCAL DEFINITIONS INTO THIS FILE IT IS AUTO GENERATED 3 | # ** USE "startup/local.mk" for those. 4 | 5 | OS *:= win95 6 | OSRELEASE *:= borland 7 | OSENVIRONMENT *:= bcc50 8 | -------------------------------------------------------------------------------- /winnt/borland/bcc50/template.mk: -------------------------------------------------------------------------------- 1 | # ** Default build configuration for dmake. 2 | # ** DO NOT PLACE LOCAL DEFINITIONS INTO THIS FILE IT IS AUTO GENERATED 3 | # ** USE "startup/local.mk" for those. 4 | 5 | OS *:= winnt 6 | OSRELEASE *:= borland 7 | OSENVIRONMENT *:= bcc50 8 | -------------------------------------------------------------------------------- /msdos/borland/bcc30/config.mk: -------------------------------------------------------------------------------- 1 | 2 | # Definition of macros for library, and C startup code. 3 | osedir = $(osrdir)$(DIRSEPSTR)$(OSENVIRONMENT) 4 | 5 | LDLIBS = e:/cc/borland/bcc30/lib/c$(MODEL) 6 | CSTARTUP = e:/cc/borland/bcc30/lib/c0$(MODEL).obj 7 | 8 | CFLAGS += -I$(osedir) -w-pia 9 | -------------------------------------------------------------------------------- /msdos/microsft/msc51/template.mk: -------------------------------------------------------------------------------- 1 | # ** Default build configuration for dmake. 2 | # ** DO NOT PLACE LOCAL DEFINITIONS INTO THIS FILE IT IS AUTO GENERATED 3 | # ** USE "startup/local.mk" for those. 4 | 5 | OS *:= msdos 6 | OSRELEASE *:= microsft 7 | OSENVIRONMENT *:= msc51 8 | -------------------------------------------------------------------------------- /msdos/microsft/msc60/template.mk: -------------------------------------------------------------------------------- 1 | # ** Default build configuration for dmake. 2 | # ** DO NOT PLACE LOCAL DEFINITIONS INTO THIS FILE IT IS AUTO GENERATED 3 | # ** USE "startup/local.mk" for those. 4 | 5 | OS *:= msdos 6 | OSRELEASE *:= microsft 7 | OSENVIRONMENT *:= msc60 8 | -------------------------------------------------------------------------------- /startup/templates/os2/ibm/icc/template.mk: -------------------------------------------------------------------------------- 1 | # ** Default build configuration for dmake. 2 | # ** DO NOT PLACE LOCAL DEFINITIONS INTO THIS FILE IT IS AUTO GENERATED 3 | # ** USE "startup/local.mk" for those. 4 | 5 | OS *:= os2 6 | OSRELEASE *:= ibm 7 | OSENVIRONMENT *:= icc 8 | -------------------------------------------------------------------------------- /startup/templates/unix/386ix/template.mk: -------------------------------------------------------------------------------- 1 | # ** Default build configuration for dmake. 2 | # ** DO NOT PLACE LOCAL DEFINITIONS INTO THIS FILE IT IS AUTO GENERATED 3 | # ** USE "startup/local.mk" for those. 4 | 5 | OS *:= unix 6 | OSRELEASE *:= 386ix 7 | OSENVIRONMENT *:= 8 | -------------------------------------------------------------------------------- /startup/templates/unix/bsd43/template.mk: -------------------------------------------------------------------------------- 1 | # ** Default build configuration for dmake. 2 | # ** DO NOT PLACE LOCAL DEFINITIONS INTO THIS FILE IT IS AUTO GENERATED 3 | # ** USE "startup/local.mk" for those. 4 | 5 | OS *:= unix 6 | OSRELEASE *:= bsd43 7 | OSENVIRONMENT *:= 8 | -------------------------------------------------------------------------------- /startup/templates/unix/solaris/template.mk: -------------------------------------------------------------------------------- 1 | # ** Default build configuration for dmake. 2 | # ** DO NOT PLACE LOCAL DEFINITIONS INTO THIS FILE IT IS AUTO GENERATED 3 | # ** USE "startup/local.mk" for those. 4 | 5 | OS *:= unix 6 | OSRELEASE *:= solaris 7 | OSENVIRONMENT *:= 8 | -------------------------------------------------------------------------------- /startup/templates/unix/sysvr1/template.mk: -------------------------------------------------------------------------------- 1 | # ** Default build configuration for dmake. 2 | # ** DO NOT PLACE LOCAL DEFINITIONS INTO THIS FILE IT IS AUTO GENERATED 3 | # ** USE "startup/local.mk" for those. 4 | 5 | OS *:= unix 6 | OSRELEASE *:= sysvr1 7 | OSENVIRONMENT *:= 8 | -------------------------------------------------------------------------------- /startup/templates/unix/sysvr3/template.mk: -------------------------------------------------------------------------------- 1 | # ** Default build configuration for dmake. 2 | # ** DO NOT PLACE LOCAL DEFINITIONS INTO THIS FILE IT IS AUTO GENERATED 3 | # ** USE "startup/local.mk" for those. 4 | 5 | OS *:= unix 6 | OSRELEASE *:= sysvr3 7 | OSENVIRONMENT *:= 8 | -------------------------------------------------------------------------------- /startup/templates/unix/sysvr4/template.mk: -------------------------------------------------------------------------------- 1 | # ** Default build configuration for dmake. 2 | # ** DO NOT PLACE LOCAL DEFINITIONS INTO THIS FILE IT IS AUTO GENERATED 3 | # ** USE "startup/local.mk" for those. 4 | 5 | OS *:= unix 6 | OSRELEASE *:= sysvr4 7 | OSENVIRONMENT *:= 8 | -------------------------------------------------------------------------------- /startup/templates/unix/xenix/template.mk: -------------------------------------------------------------------------------- 1 | # ** Default build configuration for dmake. 2 | # ** DO NOT PLACE LOCAL DEFINITIONS INTO THIS FILE IT IS AUTO GENERATED 3 | # ** USE "startup/local.mk" for those. 4 | 5 | OS *:= unix 6 | OSRELEASE *:= xenix 7 | OSENVIRONMENT *:= 8 | -------------------------------------------------------------------------------- /unix/Makefile.am: -------------------------------------------------------------------------------- 1 | 2 | noinst_LIBRARIES = libunix.a 3 | 4 | libunix_a_SOURCES = arlib.c dcache.c dirbrk.c rmprq.c ruletab.c runargv.c tempnam.c 5 | 6 | 7 | INCLUDES = -I$(top_srcdir) -I$(top_builddir) -I$(top_srcdir)/unix/@OS_VERSION@/gnu -I$(top_srcdir)/unix -I$(top_srcdir)/unix/@OS_VERSION@ 8 | -------------------------------------------------------------------------------- /win95/microsft/vpp40/template.mk: -------------------------------------------------------------------------------- 1 | # ** Default build configuration for dmake. 2 | # ** DO NOT PLACE LOCAL DEFINITIONS INTO THIS FILE IT IS AUTO GENERATED 3 | # ** USE "startup/local.mk" for those. 4 | 5 | OS *:= win95 6 | OSRELEASE *:= microsft 7 | OSENVIRONMENT *:= vpp40 8 | -------------------------------------------------------------------------------- /winnt/microsft/vpp40/template.mk: -------------------------------------------------------------------------------- 1 | # ** Default build configuration for dmake. 2 | # ** DO NOT PLACE LOCAL DEFINITIONS INTO THIS FILE IT IS AUTO GENERATED 3 | # ** USE "startup/local.mk" for those. 4 | 5 | OS *:= winnt 6 | OSRELEASE *:= microsft 7 | OSENVIRONMENT *:= vpp40 8 | -------------------------------------------------------------------------------- /startup/qssl/macros.mk: -------------------------------------------------------------------------------- 1 | # QNX Specific macro definitions 2 | # 3 | 4 | # Primary suffixes in common use 5 | A *:= .lib # Libraries 6 | 7 | # Standard C-language command names and flags 8 | AS *:= # Don't have an assembler 9 | 10 | AR *:= wlib # archiver 11 | ARFLAGS *= 12 | -------------------------------------------------------------------------------- /startup/template.mk: -------------------------------------------------------------------------------- 1 | # ** Default build configuration for dmake. 2 | # ** DO NOT PLACE LOCAL DEFINITIONS INTO THIS FILE IT IS AUTO GENERATED 3 | # ** USE "startup/local.mk" for those. 4 | 5 | OS *:= xxOSxx 6 | OSRELEASE *:= xxOSRELEASExx 7 | OSENVIRONMENT *:= xxOSENVIRONMENTxx 8 | -------------------------------------------------------------------------------- /startup/templates/unix/bsd43/uw/template.mk: -------------------------------------------------------------------------------- 1 | # ** Default build configuration for dmake. 2 | # ** DO NOT PLACE LOCAL DEFINITIONS INTO THIS FILE IT IS AUTO GENERATED 3 | # ** USE "startup/local.mk" for those. 4 | 5 | OS *:= unix 6 | OSRELEASE *:= bsd43 7 | OSENVIRONMENT *:= uw 8 | -------------------------------------------------------------------------------- /startup/templates/unix/bsd43/vf/template.mk: -------------------------------------------------------------------------------- 1 | # ** Default build configuration for dmake. 2 | # ** DO NOT PLACE LOCAL DEFINITIONS INTO THIS FILE IT IS AUTO GENERATED 3 | # ** USE "startup/local.mk" for those. 4 | 5 | OS *:= unix 6 | OSRELEASE *:= bsd43 7 | OSENVIRONMENT *:= vf 8 | -------------------------------------------------------------------------------- /startup/templates/unix/linux/gnu/template.mk: -------------------------------------------------------------------------------- 1 | # ** Default build configuration for dmake. 2 | # ** DO NOT PLACE LOCAL DEFINITIONS INTO THIS FILE IT IS AUTO GENERATED 3 | # ** USE "startup/local.mk" for those. 4 | 5 | OS *:= unix 6 | OSRELEASE *:= linux 7 | OSENVIRONMENT *:= gnu 8 | -------------------------------------------------------------------------------- /startup/templates/unix/sysvr3/pwd/template.mk: -------------------------------------------------------------------------------- 1 | # ** Default build configuration for dmake. 2 | # ** DO NOT PLACE LOCAL DEFINITIONS INTO THIS FILE IT IS AUTO GENERATED 3 | # ** USE "startup/local.mk" for those. 4 | 5 | OS *:= unix 6 | OSRELEASE *:= sysvr3 7 | OSENVIRONMENT *:= pwd 8 | -------------------------------------------------------------------------------- /startup/templates/unix/xenix/pwd/template.mk: -------------------------------------------------------------------------------- 1 | # ** Default build configuration for dmake. 2 | # ** DO NOT PLACE LOCAL DEFINITIONS INTO THIS FILE IT IS AUTO GENERATED 3 | # ** USE "startup/local.mk" for those. 4 | 5 | OS *:= unix 6 | OSRELEASE *:= xenix 7 | OSENVIRONMENT *:= pwd 8 | -------------------------------------------------------------------------------- /startup/qssl/qnx/macros.mk: -------------------------------------------------------------------------------- 1 | # QNX Specific macro definitions 2 | # 3 | 4 | # Primary suffixes in common use 5 | A *:= .lib # Libraries 6 | 7 | # Standard C-language command names and flags 8 | AS *:= # Don't have an assembler 9 | 10 | AR *:= wlib # archiver 11 | ARFLAGS *= 12 | -------------------------------------------------------------------------------- /startup/templates/unix/solaris/gnu/template.mk: -------------------------------------------------------------------------------- 1 | # ** Default build configuration for dmake. 2 | # ** DO NOT PLACE LOCAL DEFINITIONS INTO THIS FILE IT IS AUTO GENERATED 3 | # ** USE "startup/local.mk" for those. 4 | 5 | OS *:= unix 6 | OSRELEASE *:= solaris 7 | OSENVIRONMENT *:= gnu 8 | -------------------------------------------------------------------------------- /INSTALL: -------------------------------------------------------------------------------- 1 | All installation and configuration information has been moved to the 2 | readme directory, please refer to the files found there for more 3 | information. 4 | 5 | QUICKSTART: 6 | 7 | % ./autogen.sh 8 | % ./configure --prefix=/usr/local 9 | % make 10 | % make check 11 | % make install 12 | -------------------------------------------------------------------------------- /startup/templates/msdos/borland/bcc30/template.mk: -------------------------------------------------------------------------------- 1 | # ** Default build configuration for dmake. 2 | # ** DO NOT PLACE LOCAL DEFINITIONS INTO THIS FILE IT IS AUTO GENERATED 3 | # ** USE "startup/local.mk" for those. 4 | 5 | OS *:= msdos 6 | OSRELEASE *:= borland 7 | OSENVIRONMENT *:= bcc30 8 | -------------------------------------------------------------------------------- /startup/templates/msdos/borland/bcc40/template.mk: -------------------------------------------------------------------------------- 1 | # ** Default build configuration for dmake. 2 | # ** DO NOT PLACE LOCAL DEFINITIONS INTO THIS FILE IT IS AUTO GENERATED 3 | # ** USE "startup/local.mk" for those. 4 | 5 | OS *:= msdos 6 | OSRELEASE *:= borland 7 | OSENVIRONMENT *:= bcc40 8 | -------------------------------------------------------------------------------- /startup/templates/msdos/borland/bcc45/template.mk: -------------------------------------------------------------------------------- 1 | # ** Default build configuration for dmake. 2 | # ** DO NOT PLACE LOCAL DEFINITIONS INTO THIS FILE IT IS AUTO GENERATED 3 | # ** USE "startup/local.mk" for those. 4 | 5 | OS *:= msdos 6 | OSRELEASE *:= borland 7 | OSENVIRONMENT *:= bcc45 8 | -------------------------------------------------------------------------------- /startup/templates/msdos/borland/bcc50/template.mk: -------------------------------------------------------------------------------- 1 | # ** Default build configuration for dmake. 2 | # ** DO NOT PLACE LOCAL DEFINITIONS INTO THIS FILE IT IS AUTO GENERATED 3 | # ** USE "startup/local.mk" for those. 4 | 5 | OS *:= msdos 6 | OSRELEASE *:= borland 7 | OSENVIRONMENT *:= bcc50 8 | -------------------------------------------------------------------------------- /startup/templates/msdos/borland/tcc20/template.mk: -------------------------------------------------------------------------------- 1 | # ** Default build configuration for dmake. 2 | # ** DO NOT PLACE LOCAL DEFINITIONS INTO THIS FILE IT IS AUTO GENERATED 3 | # ** USE "startup/local.mk" for those. 4 | 5 | OS *:= msdos 6 | OSRELEASE *:= borland 7 | OSENVIRONMENT *:= tcc20 8 | -------------------------------------------------------------------------------- /startup/templates/msdos/microsft/msc51/template.mk: -------------------------------------------------------------------------------- 1 | # ** Default build configuration for dmake. 2 | # ** DO NOT PLACE LOCAL DEFINITIONS INTO THIS FILE IT IS AUTO GENERATED 3 | # ** USE "startup/local.mk" for those. 4 | 5 | OS *:= msdos 6 | OSRELEASE *:= microsft 7 | OSENVIRONMENT *:= msc51 8 | -------------------------------------------------------------------------------- /startup/templates/msdos/microsft/msc60/template.mk: -------------------------------------------------------------------------------- 1 | # ** Default build configuration for dmake. 2 | # ** DO NOT PLACE LOCAL DEFINITIONS INTO THIS FILE IT IS AUTO GENERATED 3 | # ** USE "startup/local.mk" for those. 4 | 5 | OS *:= msdos 6 | OSRELEASE *:= microsft 7 | OSENVIRONMENT *:= msc60 8 | -------------------------------------------------------------------------------- /startup/templates/unix/coherent/ver40/template.mk: -------------------------------------------------------------------------------- 1 | # ** Default build configuration for dmake. 2 | # ** DO NOT PLACE LOCAL DEFINITIONS INTO THIS FILE IT IS AUTO GENERATED 3 | # ** USE "startup/local.mk" for those. 4 | 5 | OS *:= unix 6 | OSRELEASE *:= coherent 7 | OSENVIRONMENT *:= ver40 8 | -------------------------------------------------------------------------------- /startup/templates/unix/coherent/ver42/template.mk: -------------------------------------------------------------------------------- 1 | # ** Default build configuration for dmake. 2 | # ** DO NOT PLACE LOCAL DEFINITIONS INTO THIS FILE IT IS AUTO GENERATED 3 | # ** USE "startup/local.mk" for those. 4 | 5 | OS *:= unix 6 | OSRELEASE *:= coherent 7 | OSENVIRONMENT *:= ver42 8 | -------------------------------------------------------------------------------- /startup/templates/win95/borland/bcc50/template.mk: -------------------------------------------------------------------------------- 1 | # ** Default build configuration for dmake. 2 | # ** DO NOT PLACE LOCAL DEFINITIONS INTO THIS FILE IT IS AUTO GENERATED 3 | # ** USE "startup/local.mk" for those. 4 | 5 | OS *:= win95 6 | OSRELEASE *:= borland 7 | OSENVIRONMENT *:= bcc50 8 | -------------------------------------------------------------------------------- /startup/templates/win95/microsft/vpp40/template.mk: -------------------------------------------------------------------------------- 1 | # ** Default build configuration for dmake. 2 | # ** DO NOT PLACE LOCAL DEFINITIONS INTO THIS FILE IT IS AUTO GENERATED 3 | # ** USE "startup/local.mk" for those. 4 | 5 | OS *:= win95 6 | OSRELEASE *:= microsft 7 | OSENVIRONMENT *:= vpp40 8 | -------------------------------------------------------------------------------- /startup/templates/winnt/borland/bcc50/template.mk: -------------------------------------------------------------------------------- 1 | # ** Default build configuration for dmake. 2 | # ** DO NOT PLACE LOCAL DEFINITIONS INTO THIS FILE IT IS AUTO GENERATED 3 | # ** USE "startup/local.mk" for those. 4 | 5 | OS *:= winnt 6 | OSRELEASE *:= borland 7 | OSENVIRONMENT *:= bcc50 8 | -------------------------------------------------------------------------------- /startup/templates/winnt/microsft/vpp40/template.mk: -------------------------------------------------------------------------------- 1 | # ** Default build configuration for dmake. 2 | # ** DO NOT PLACE LOCAL DEFINITIONS INTO THIS FILE IT IS AUTO GENERATED 3 | # ** USE "startup/local.mk" for those. 4 | 5 | OS *:= winnt 6 | OSRELEASE *:= microsft 7 | OSENVIRONMENT *:= vpp40 8 | -------------------------------------------------------------------------------- /win95/microsft/allochnd.cpp: -------------------------------------------------------------------------------- 1 | #ifndef __cplusplus 2 | # error This must be compiled as C++ 3 | #endif 4 | #include 5 | 6 | /* this is a C++ decorated function, make an extern C wrapper */ 7 | 8 | extern "C" _PNH 9 | dm_set_new_handler(_PNH pnh) 10 | { 11 | return _set_new_handler(pnh); 12 | } 13 | -------------------------------------------------------------------------------- /winnt/microsft/allochnd.cpp: -------------------------------------------------------------------------------- 1 | #ifndef __cplusplus 2 | # error This must be compiled as C++ 3 | #endif 4 | #include 5 | 6 | /* this is a C++ decorated function, make an extern C wrapper */ 7 | 8 | extern "C" _PNH 9 | dm_set_new_handler(_PNH pnh) 10 | { 11 | return _set_new_handler(pnh); 12 | } 13 | -------------------------------------------------------------------------------- /dbug/dbug/example3.c: -------------------------------------------------------------------------------- 1 | #include 2 | 3 | main (argc, argv) 4 | int argc; 5 | char *argv[]; 6 | { 7 | # ifdef DEBUG 8 | printf ("argv[0] = %d\n", argv[0]); 9 | # endif 10 | /* 11 | * Rest of program 12 | */ 13 | # ifdef DEBUG 14 | printf ("== done ==\n"); 15 | # endif 16 | } 17 | -------------------------------------------------------------------------------- /startup/unix/linux/macros.mk: -------------------------------------------------------------------------------- 1 | # Define additional Linux specific macros. 2 | # 3 | 4 | # Process environment-specific refinements, if any. 5 | .IF $(OSENVIRONMENT) 6 | .INCLUDE .NOINFER .IGNORE : $(INCFILENAME:d)$(OSENVIRONMENT)$/macros.mk 7 | .ENDIF 8 | 9 | # Make OS-release-specific settings 10 | PRINT *:= lpr 11 | -------------------------------------------------------------------------------- /startup/winnt/mingw/macros.mk: -------------------------------------------------------------------------------- 1 | # Define additional MinGW specific macros. 2 | # 3 | 4 | # Process environment-specific refinements, if any. 5 | .IF $(OSENVIRONMENT) 6 | .INCLUDE .NOINFER .IGNORE : $(INCFILENAME:d)$(OSENVIRONMENT)$/macros.mk 7 | .ENDIF 8 | 9 | # Make OS-release-specific settings 10 | #PRINT *:= lpr 11 | -------------------------------------------------------------------------------- /startup/unix/cygwin/macros.mk: -------------------------------------------------------------------------------- 1 | # Define additional Cygwin specific macros. 2 | # 3 | 4 | # Process environment-specific refinements, if any. 5 | .IF $(OSENVIRONMENT) 6 | .INCLUDE .NOINFER .IGNORE : $(INCFILENAME:d)$(OSENVIRONMENT)$/macros.mk 7 | .ENDIF 8 | 9 | # Make OS-release-specific settings 10 | #PRINT *:= lpr 11 | -------------------------------------------------------------------------------- /startup/unix/macosx/macros.mk: -------------------------------------------------------------------------------- 1 | # Define additional Mac OS X specific macros. 2 | # 3 | 4 | # Process environment-specific refinements, if any. 5 | .IF $(OSENVIRONMENT) 6 | .INCLUDE .NOINFER .IGNORE : $(INCFILENAME:d)$(OSENVIRONMENT)$/macros.mk 7 | .ENDIF 8 | 9 | # Make OS-release-specific settings 10 | PRINT *:= lpr 11 | -------------------------------------------------------------------------------- /readme/public/qssl-qnx.txt: -------------------------------------------------------------------------------- 1 | QNX differs from UNIX only in that the library format is that of MSDOS and 2 | as such the normal stating of library members does not work. QNX versions of 3 | dmake stat the library instead of the members (as does the MSDOS 4 | implementation). Otherwise see the readme/unix file for further unix related 5 | information. 6 | -------------------------------------------------------------------------------- /startup/msdos/recipes.mk: -------------------------------------------------------------------------------- 1 | # Define additional MSDOS specific build recipes. 2 | # 3 | 4 | # Executables 5 | %$E .SWAP : %$O ; $(CC) $(LDFLAGS) -o$@ $< $(LDLIBS) 6 | %$O : %$S ; $(AS) $(ASFLAGS) $(<:s,/,\) 7 | 8 | # Process release-specific refinements, if any. 9 | .INCLUDE .NOINFER .IGNORE : $(INCFILENAME:d)$(OSRELEASE)$/recipes.mk 10 | -------------------------------------------------------------------------------- /startup/unix/bsd43/macros.mk: -------------------------------------------------------------------------------- 1 | # Define additional Berkely UNIX specific macros. 2 | # 3 | 4 | # Process environment-specific refinements, if any. 5 | .IF $(OSENVIRONMENT) 6 | .INCLUDE .NOINFER .IGNORE : $(INCFILENAME:d)$(OSENVIRONMENT)$/macros.mk 7 | .ENDIF 8 | 9 | # Set defaults for local OS release 10 | RANLIB *:= ranlib 11 | PRINT *:= lpr 12 | -------------------------------------------------------------------------------- /startup/win95/recipes.mk: -------------------------------------------------------------------------------- 1 | # Define additional MSDOS specific build recipes. 2 | # 3 | 4 | # Executables 5 | %$E : %$O ; $(CC) $(LDFLAGS) -o$@ $< $(LDLIBS) 6 | %$O : %$S ; $(AS) $(ASFLAGS) $(<:s,/,\) 7 | 8 | # Process release-specific refinements, if any. 9 | .INCLUDE .NOINFER .IGNORE : $(INCFILENAME:d)$(OSRELEASE)$/recipes.mk 10 | -------------------------------------------------------------------------------- /startup/winnt/recipes.mk: -------------------------------------------------------------------------------- 1 | # Define additional MSDOS specific build recipes. 2 | # 3 | 4 | # Executables 5 | %$E : %$O ; $(CC) $(LDFLAGS) -o$@ $< $(LDLIBS) 6 | %$O : %$S ; $(AS) $(ASFLAGS) $(<:s,/,\) 7 | 8 | # Process release-specific refinements, if any. 9 | .INCLUDE .NOINFER .IGNORE : $(INCFILENAME:d)$(OSRELEASE)$/recipes.mk 10 | -------------------------------------------------------------------------------- /dbug/dbug/example2.c: -------------------------------------------------------------------------------- 1 | #include 2 | 3 | int debug = 0; 4 | 5 | main (argc, argv) 6 | int argc; 7 | char *argv[]; 8 | { 9 | /* printf ("argv = %x\n", argv) */ 10 | if (debug) printf ("argv[0] = %d\n", argv[0]); 11 | /* 12 | * Rest of program 13 | */ 14 | #ifdef DEBUG 15 | printf ("== done ==\n"); 16 | #endif 17 | } 18 | -------------------------------------------------------------------------------- /msdos/borland/tcc20/config.mk: -------------------------------------------------------------------------------- 1 | # Definition of macros for library, and C startup code. 2 | osedir = $(osrdir)$(DIRSEPSTR)$(OSENVIRONMENT) 3 | 4 | LDLIBS = e:/cc/borland/tcc20/lib/c$(MODEL) 5 | CSTARTUP = e:/cc/borland/tcc20/lib/c0$(MODEL).obj 6 | 7 | CFLAGS += -I$(osedir) -f- 8 | 9 | # Case of identifiers is significant 10 | NDB_LDFLAGS += -c 11 | -------------------------------------------------------------------------------- /msdos/dosdta.h: -------------------------------------------------------------------------------- 1 | #ifndef _DOSDTA_ 2 | #define _DOSDTA_ 3 | 4 | #include "stdmacs.h" 5 | typedef struct { 6 | char fcb[21]; 7 | char attr; 8 | short time; 9 | short date; 10 | long size; 11 | char name[13]; 12 | } DTA; 13 | 14 | extern DTA *findfirst ANSI((char *, DTA *)); 15 | extern DTA *findnext ANSI((DTA *)); 16 | #endif 17 | -------------------------------------------------------------------------------- /msdos/microsft/msc51/config.mk: -------------------------------------------------------------------------------- 1 | # Definition of macros for library, and C startup code. 2 | osedir = $(osrdir)$(DIRSEPSTR)$(OSENVIRONMENT) 3 | 4 | .IMPORT .IGNORE : MSC_VER 5 | MSC_VER *= 5.1 6 | 7 | CFLAGS += -I$(osedir) -D_MSC_VER=$(MSC_VER:s,.,,)0 8 | 9 | NDB_CFLAGS += -Oscl -Gs 10 | NDB_LDFLAGS += -exe -packc -batch 11 | NDB_LDLIBS += 12 | -------------------------------------------------------------------------------- /msdos/microsft/msc60/config.mk: -------------------------------------------------------------------------------- 1 | # Definition of macros for library, and C startup code. 2 | osedir = $(osrdir)$(DIRSEPSTR)$(OSENVIRONMENT) 3 | 4 | .IMPORT .IGNORE : MSC_VER 5 | MSC_VER *= 6.0 6 | 7 | CFLAGS += -I$(osedir) -D_MSC_VER=$(MSC_VER:s,.,,)0 8 | 9 | NDB_CFLAGS += -Osecgl -Gs 10 | NDB_LDFLAGS += -exe -packc -batch 11 | NDB_LDLIBS += 12 | -------------------------------------------------------------------------------- /os2/ibm/icc/config.mk: -------------------------------------------------------------------------------- 1 | # Definition of macros for library, and C startup code. 2 | osedir = $(osrdir)$(DIRSEPSTR)$(OSENVIRONMENT) 3 | 4 | .IMPORT .IGNORE : MSC_VER 5 | MSC_VER *= 6.0 6 | 7 | CFLAGS += $-I$(osedir) $-Sp1 $-Q $-Fi- 8 | 9 | NDB_CFLAGS += $-O 10 | NDB_LDFLAGS += $-de $-pmtype:vio $-align:16 $-nologo $-m $-stack:32768 11 | NDB_LDLIBS += 12 | -------------------------------------------------------------------------------- /os2/ibm/icc3/config.mk: -------------------------------------------------------------------------------- 1 | # Definition of macros for library, and C startup code. 2 | osedir = $(osrdir)$(DIRSEPSTR)$(OSENVIRONMENT) 3 | 4 | .IMPORT .IGNORE : MSC_VER 5 | MSC_VER *= 6.0 6 | 7 | CFLAGS += $-I$(osedir) $-Sp1 $-Q $-Fi- 8 | 9 | NDB_CFLAGS += $-O 10 | NDB_LDFLAGS += $-de $-pmtype:vio $-align:16 $-nologo $-m $-stack:32768 11 | NDB_LDLIBS += 12 | -------------------------------------------------------------------------------- /dbug/malloc/tostring.h: -------------------------------------------------------------------------------- 1 | /* 2 | * (c) Copyright 1990 Conor P. Cahill (uunet!virtech!cpcahil). 3 | * You may copy, distribute, and use this software as long as this 4 | * copyright statement is not removed. 5 | */ 6 | /* 7 | * $Id: tostring.h,v 1.2 2006-07-25 10:10:32 rt Exp $ 8 | */ 9 | #define B_BIN 2 10 | #define B_DEC 10 11 | #define B_HEX 16 12 | #define B_OCTAL 8 13 | 14 | -------------------------------------------------------------------------------- /unix/bsd43/vf/config.mk: -------------------------------------------------------------------------------- 1 | # This config file adds vfprintf.c and memcpy.c for those systems that 2 | # do not have it. 3 | # 4 | 5 | osredir := $(OS)$(DIRSEPSTR)$(OSRELEASE)$(DIRSEPSTR)$(OSENVIRONMENT) 6 | CFLAGS += -I$(osredir) 7 | 8 | # The following sources are required for BSD4.3 9 | OSDESRC := memcpy.c vfprintf.c 10 | SRC += $(OSDESRC) 11 | .SETDIR=$(osredir) : $(OSDESRC) 12 | -------------------------------------------------------------------------------- /unix/coherent/ver42/config.mk: -------------------------------------------------------------------------------- 1 | # This config file adds vfprintf.c and memcpy.c for those systems that 2 | # do not have it. 3 | # 4 | 5 | osredir := $(OS)$(DIRSEPSTR)$(OSRELEASE)$(DIRSEPSTR)$(OSENVIRONMENT) 6 | CFLAGS += -I$(osredir) 7 | 8 | # The following sources are required for Coherent version 4.2 9 | #OSDESRC := 10 | #SRC += $(OSDESRC) 11 | #.SETDIR=$(osredir) : $(OSDESRC) 12 | -------------------------------------------------------------------------------- /.github/workflows/basic-check.yml: -------------------------------------------------------------------------------- 1 | name: DMAKE-basic-check 2 | 3 | on: 4 | push: 5 | branches: [ master ] 6 | pull_request: 7 | branches: [ master ] 8 | 9 | jobs: 10 | build: 11 | 12 | runs-on: ubuntu-latest 13 | 14 | steps: 15 | - uses: actions/checkout@v2 16 | - run: ./configure 17 | - run: make 18 | - run: make check 19 | - run: make distclean 20 | -------------------------------------------------------------------------------- /unix/coherent/ver40/config.mk: -------------------------------------------------------------------------------- 1 | # This config file adds vfprintf.c and memcpy.c for those systems that 2 | # do not have it. 3 | # 4 | 5 | osredir := $(OS)$(DIRSEPSTR)$(OSRELEASE)$(DIRSEPSTR)$(OSENVIRONMENT) 6 | CFLAGS += -I$(osredir) 7 | 8 | # The following sources are required for coherent version 4.0 9 | OSDESRC := vfprintf.c getcwd.c 10 | SRC += $(OSDESRC) 11 | .SETDIR=$(osredir) : $(OSDESRC) 12 | -------------------------------------------------------------------------------- /startup/unix/bsd43/recipes.mk: -------------------------------------------------------------------------------- 1 | # Define additional Berkeley UNIX specific build rules and recipes. 2 | # 3 | 4 | # Recipe to make archive files. 5 | %$A .GROUP : 6 | $(AR) $(ARFLAGS) $@ $? 7 | $(RM) $(RMFLAGS) $? 8 | $(RANLIB) $@ 9 | 10 | # Process environment-specific refinements, if any. 11 | .IF $(OSENVIRONMENT) 12 | .INCLUDE .NOINFER .IGNORE : $(INCFILENAME:d)$(OSENVIRONMENT)$/recipes.mk 13 | .ENDIF 14 | -------------------------------------------------------------------------------- /dbug/malloc/_changes: -------------------------------------------------------------------------------- 1 | I made the following changes to the malloc package as found in 2 | comp.sources.unix: 3 | 4 | 1. created this file _changes. 5 | 2. moved README to _readme (facilitates transfer to DOS and back to 6 | unix) 7 | 3. renamed testmalloc.c, malloc_chk.c, and malloc_chn.c to testmlc.c, 8 | mlc_chk.c, and mlc_chn.c respectively. Again DOS has trouble with 9 | long basenames in filenames. 10 | -------------------------------------------------------------------------------- /dbug/dbug/factorial.c: -------------------------------------------------------------------------------- 1 | #include 2 | /* User programs should use */ 3 | #include "dbug.h" 4 | 5 | int factorial (value) 6 | register int value; 7 | { 8 | DBUG_ENTER ("factorial"); 9 | DBUG_PRINT ("find", ("find %d factorial", value)); 10 | if (value > 1) { 11 | value *= factorial (value - 1); 12 | } 13 | DBUG_PRINT ("result", ("result is %d", value)); 14 | DBUG_RETURN (value); 15 | } 16 | -------------------------------------------------------------------------------- /tests/README: -------------------------------------------------------------------------------- 1 | DMAKE TESTCASES 2 | =============== 3 | 4 | The testcases in this directory will be executed by "make check" in 5 | this or the top directory. 6 | 7 | Each test can be executed as a standalone script that will test the 8 | first dmake that is found in the path. A different dmake to be tested 9 | can be specified by setting the DMAKEPROG environment variable. 10 | 11 | Example: 12 | $ DMAKEPROG=../dmake ./misc-4 13 | -------------------------------------------------------------------------------- /win95/microsft/vpp40/config.mk: -------------------------------------------------------------------------------- 1 | # Definition of macros for library, and C startup code. 2 | osedir = $(osrdir)$(DIRSEPSTR)$(OSENVIRONMENT) 3 | 4 | .IMPORT .IGNORE : MSC_VER 5 | MSC_VER *= 8.0 6 | 7 | CFLAGS += -I$(osedir) 8 | 9 | NDB_CFLAGS += -Od -GF -Ge 10 | NDB_LDFLAGS += 11 | NDB_LDLIBS += 12 | 13 | # Redefine rule for making our objects, we don't need mv 14 | %$O : %.c ;% $(CC) -c $(CFLAGS) -Fo$@ $< 15 | -------------------------------------------------------------------------------- /winnt/microsft/vpp40/config.mk: -------------------------------------------------------------------------------- 1 | # Definition of macros for library, and C startup code. 2 | osedir = $(osrdir)$(DIRSEPSTR)$(OSENVIRONMENT) 3 | 4 | .IMPORT .IGNORE : MSC_VER 5 | MSC_VER *= 8.0 6 | 7 | CFLAGS += -I$(osedir) 8 | 9 | NDB_CFLAGS += -Od -GF -Ge 10 | NDB_LDFLAGS += 11 | NDB_LDLIBS += 12 | 13 | # Redefine rule for making our objects, we don't need mv 14 | %$O : %.c ;% $(CC) -c $(CFLAGS) -Fo$@ $< 15 | -------------------------------------------------------------------------------- /winnt/borland/bcc50/config.mk: -------------------------------------------------------------------------------- 1 | # Definition of macros for library, and C startup code. 2 | osedir = $(osrdir)$(DIRSEPSTR)$(OSENVIRONMENT) 3 | 4 | # Change the CCROOT variable to reflect the installation directory of your 5 | # C++ compiler. 6 | CCVER *:= c:/cc/borland/$(OSENVIRONMENT) 7 | 8 | # Definitions for compiles and links 9 | CSTARTUP = $(CCVER)/lib/c0x32.obj 10 | LDLIBS = $(CCVER)/lib/cw32 $(CCVER)/lib/import32 11 | 12 | CFLAGS += -A- -w-pro -I$(osedir) 13 | -------------------------------------------------------------------------------- /win95/borland/bcc50/config.mk: -------------------------------------------------------------------------------- 1 | # Definition of macros for library, and C startup code. 2 | osedir = $(osrdir)$(DIRSEPSTR)$(OSENVIRONMENT) 3 | 4 | # Change the CCROOT variable to reflect the installation directory of your 5 | # C++ compiler. 6 | .IMPORT .IGNORE : CCVER 7 | 8 | CCVER *:= c:/cc/borland/$(OSENVIRONMENT) 9 | 10 | # Definitions for compiles and links 11 | CSTARTUP = $(CCVER)/lib/c0x32.obj 12 | LDLIBS = $(CCVER)/lib/cw32 $(CCVER)/lib/import32 13 | 14 | CFLAGS += -A- -w-pro -I$(osedir) 15 | -------------------------------------------------------------------------------- /dbug/readme: -------------------------------------------------------------------------------- 1 | This directory contains two public domain debugging packages. 2 | 3 | 1. Fred Fishes DEBUG macros. 4 | 2. Connor P. Cahills malloc library. 5 | 6 | Descriptions of both can be found in their respective sub-directories. dbug 7 | for the DEBUG macros and malloc for the malloc library. I have left the 8 | malloc distribution intact as it comes from the net except for the changes 9 | noted in the _changes file. 10 | 11 | I thank the authors for making them available for others to use. 12 | 13 | -dennis 14 | -------------------------------------------------------------------------------- /man/readme: -------------------------------------------------------------------------------- 1 | This directory contains the DMAKE manual page. 2 | 3 | The files found here are: 4 | 5 | dmake.tf - troff source for the manual page, you must use GNU groff 6 | to typeset it or copy it as dmake.1 into a directory in 7 | your search path for man pages to view it with the man 8 | command. 9 | 10 | dmake.nc - a typeset version of the manual page containing no control 11 | characters. Generated with: 12 | "groff -mman -rcR=0 -Tlatin1 -P -bcu dmake.tf > dmake.nc" 13 | -------------------------------------------------------------------------------- /dbug/dbug/makeman.sh: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env bash 2 | 3 | gcc -o factorial main.c factorial.c dbug.c 4 | 5 | for i in example?.c main.c factorial.c ; 6 | do 7 | sed -e 's!\\!\\\\!g' $i > ${i/\.c/\.r} 8 | done 9 | 10 | ./factorial 1 2 3 4 5 | cat > output1.r 11 | ./factorial -\#t:o 2 3 | cat > output2.r 12 | ./factorial -\#d:t:o 3 | cat > output3.r 13 | ./factorial -\#d,result:o 4 | cat > output4.r 14 | ./factorial -\#d:f,factorial:F:L:o 3 | cat >output5.r 15 | 16 | #nroff -mm user.r > user.t 17 | #groff -mm user.r > user.ps 18 | groff -mm -rcR=0 -Tlatin1 -P -bcu user.r > dbug.txt 19 | -------------------------------------------------------------------------------- /startup/unix/recipes.mk: -------------------------------------------------------------------------------- 1 | # Define additional UNIX specific build recipes. 2 | # 3 | 4 | # Define additional build targets. 5 | %$E : %.sh; cp $< $@; chmod 0777 $@ 6 | 7 | # This rule tells how to make a non-suffixed executable from its single 8 | # file source. 9 | % : %$O; $(CC) $(LDFLAGS) -o $@ $< $(LDLIBS) 10 | 11 | # This rule tells how to make a.out from it's immediate list of prerequisites. 12 | %.out :; $(CC) $(LDFLAGS) -o $@ $^ $(LDLIBS) 13 | 14 | # Process release-specific refinements, if any. 15 | .INCLUDE .NOINFER .IGNORE : $(INCFILENAME:d)$(OSRELEASE)$/recipes.mk 16 | -------------------------------------------------------------------------------- /startup/tos/macros.mk: -------------------------------------------------------------------------------- 1 | # Define Atari TOS specific macros. 2 | # 3 | 4 | # Process environment-specific refinements, if any. 5 | .IF $(OSENVIRONMENT) 6 | .INCLUDE .NOINFER .IGNORE : $(INCFILENAME:d)$(OSENVIRONMENT)$/macros.mk 7 | .ENDIF 8 | 9 | # Set default to GCC Compiler. 10 | CPP *:= /gnu/lib/cpp 11 | CC *:= gcc 12 | "C++" *:= g++ 13 | AS *:= gas 14 | YACC *:= bison 15 | LEX *:= flex 16 | RM *:= /bin/rm 17 | 18 | # Common flag settings 19 | ARFLAGS *= -rvs 20 | 21 | # Other appropriate macro settings. 22 | A *:= .olb 23 | SHELLFLAGS *:= 24 | GROUPSUFFIX *:= .bat 25 | -------------------------------------------------------------------------------- /unix/bsd43/uw/config.mk: -------------------------------------------------------------------------------- 1 | # This is the BSD 4.3 University of Waterloo (uw) UNIX configuration file 2 | # for DMAKE 3 | # It simply modifies the values of LDLIBS to include libuw.a 4 | # so that vfprintf can be found. 5 | # 6 | 7 | LDLIBS += -luw 8 | osredir := $(OS)$(DIRSEPSTR)$(OSRELEASE)$(DIRSEPSTR)$(OSENVIRONMENT) 9 | CFLAGS += -I$(osredir) 10 | 11 | # install script for UW's /usr/software hierarchy... 12 | install: 13 | mkdir ../bin; strip ./dmake; mv ./dmake ../bin 14 | chmod a+rx ../bin/dmake ../bin 15 | mkdir ../lib; chmod a+rx ../lib 16 | cp $(STARTUPFILE) ../lib 17 | chmod a+r ../lib/startup.mk 18 | -------------------------------------------------------------------------------- /unix/sysvr3/pwd/config.mk: -------------------------------------------------------------------------------- 1 | # This is the Sys VR3 PWD configuration file. It configures SysvR3 unix 2 | # versions of dmake to use a provided version of getcwd rather than the 3 | # standard library version that uses popen to capture the output of pwd. 4 | # 5 | 6 | osredir := $(OS)$(DIRSEPSTR)$(OSRELEASE)$(DIRSEPSTR)$(OSENVIRONMENT) 7 | 8 | # The following are required sources 9 | OSRESRC := getcwd.c 10 | 11 | .IF $(OSRESRC) 12 | SRC += $(OSRESRC) 13 | .SETDIR=$(osredir) : $(OSRESRC) 14 | .END 15 | 16 | .SOURCE.h : $(osredir) 17 | 18 | # Local configuration modifications for CFLAGS, there's local SysV includes 19 | # too. 20 | CFLAGS += -I$(osredir) 21 | -------------------------------------------------------------------------------- /winnt/microsft/vpp40/obj.rsp: -------------------------------------------------------------------------------- 1 | newmode.obj 2 | objects\infer.obj 3 | objects\make.obj 4 | objects\stat.obj 5 | objects\expand.obj 6 | objects\dmstring.obj 7 | objects\hash.obj 8 | objects\dag.obj 9 | objects\dcache.obj 10 | objects\dmake.obj 11 | objects\path.obj 12 | objects\imacs.obj 13 | objects\sysintf.obj 14 | objects\parse.obj 15 | objects\getinp.obj 16 | objects\quit.obj 17 | objects\state.obj 18 | objects\dmdump.obj 19 | objects\macparse.obj 20 | objects\rulparse.obj 21 | objects\percent.obj 22 | objects\function.obj 23 | objects\dstrlwr.obj 24 | objects\arlib.obj 25 | objects\dirbrk.obj 26 | objects\tempnam.obj 27 | objects\ruletab.obj 28 | objects\runargv.obj 29 | objects\rmprq.obj 30 | objects\allochnd.obj 31 | -------------------------------------------------------------------------------- /dbug/dbug/main.c: -------------------------------------------------------------------------------- 1 | #include 2 | /* User programs should use */ 3 | #include "dbug.h" 4 | 5 | int main (argc, argv) 6 | int argc; 7 | char *argv[]; 8 | { 9 | register int result, ix; 10 | extern int factorial (), atoi (); 11 | 12 | DBUG_ENTER ("main"); 13 | DBUG_PROCESS (argv[0]); 14 | for (ix = 1; ix < argc && argv[ix][0] == '-'; ix++) { 15 | switch (argv[ix][1]) { 16 | case '#': 17 | DBUG_PUSH (&(argv[ix][2])); 18 | break; 19 | } 20 | } 21 | for (; ix < argc; ix++) { 22 | DBUG_PRINT ("args", ("argv[%d] = %s", ix, argv[ix])); 23 | result = factorial (atoi (argv[ix])); 24 | printf ("%d\n", result); 25 | } 26 | DBUG_RETURN (0); 27 | } 28 | -------------------------------------------------------------------------------- /win95/microsft/vpp40/obj.rsp: -------------------------------------------------------------------------------- 1 | newmode.obj 2 | objects\infer.obj 3 | objects\make.obj 4 | objects\stat.obj 5 | objects\expand.obj 6 | objects\dmstring.obj 7 | objects\hash.obj 8 | objects\dag.obj 9 | objects\dcache.obj 10 | objects\dmake.obj 11 | objects\path.obj 12 | objects\imacs.obj 13 | objects\sysintf.obj 14 | objects\parse.obj 15 | objects\getinp.obj 16 | objects\quit.obj 17 | objects\state.obj 18 | objects\dmdump.obj 19 | objects\macparse.obj 20 | objects\rulparse.obj 21 | objects\percent.obj 22 | objects\function.obj 23 | objects\switchar.obj 24 | objects\dstrlwr.obj 25 | objects\arlib.obj 26 | objects\dirbrk.obj 27 | objects\ruletab.obj 28 | objects\runargv.obj 29 | objects\rmprq.obj 30 | objects\allochnd.obj 31 | -------------------------------------------------------------------------------- /os2/ibm/icc3/obj.rsp: -------------------------------------------------------------------------------- 1 | objects\dmake.obj+ 2 | objects\infer.obj+ 3 | objects\make.obj+ 4 | objects\stat.obj+ 5 | objects\expand.obj+ 6 | objects\dmstring.obj+ 7 | objects\hash.obj+ 8 | objects\dag.obj+ 9 | objects\path.obj+ 10 | objects\imacs.obj+ 11 | objects\sysintf.obj+ 12 | objects\parse.obj+ 13 | objects\getinp.obj+ 14 | objects\quit.obj+ 15 | objects\state.obj+ 16 | objects\dmdump.obj+ 17 | objects\macparse.obj+ 18 | objects\rulparse.obj+ 19 | objects\percent.obj+ 20 | objects\function.obj+ 21 | objects\ruletab.obj+ 22 | objects\dchdir.obj+ 23 | objects\switchar.obj+ 24 | objects\runargv.obj+ 25 | objects\dirbrk.obj+ 26 | objects\arlib.obj+ 27 | objects\dstrlwr.obj+ 28 | objects\rmprq.obj+ 29 | objects\tempnam.obj 30 | 31 | -------------------------------------------------------------------------------- /unix/xenix/pwd/config.mk: -------------------------------------------------------------------------------- 1 | # This is the Sys VR3 PWD configuration file. It configures SysvR3 unix 2 | # versions of dmake to use a provided version of getcwd rather than the 3 | # standard library version that uses popen to capture the output of pwd. 4 | # 5 | 6 | osredir := $(OS)$(DIRSEPSTR)$(OSRELEASE)$(DIRSEPSTR)$(OSENVIRONMENT) 7 | 8 | # The following are required sources 9 | OSRESRC := getcwd.c 10 | 11 | .IF $(OSRESRC) 12 | SRC += $(OSRESRC) 13 | .SETDIR=$(osredir) : $(OSRESRC) 14 | .END 15 | 16 | .SOURCE.h : $(osredir) 17 | 18 | # Local configuration modifications for CFLAGS, there's local SysV includes 19 | # too. 20 | CFLAGS += -I$(osredir) 21 | 22 | # Xenix needs -lx in order to link successfully. 23 | LDLIBS += -lx 24 | -------------------------------------------------------------------------------- /os2/ibm/icc/obj.rsp: -------------------------------------------------------------------------------- 1 | objects\infer.obj+ 2 | objects\make.obj+ 3 | objects\stat.obj+ 4 | objects\expand.obj+ 5 | objects\dmstring.obj+ 6 | objects\hash.obj+ 7 | objects\dag.obj+ 8 | objects\dmake.obj+ 9 | objects\path.obj+ 10 | objects\imacs.obj+ 11 | objects\sysintf.obj+ 12 | objects\parse.obj+ 13 | objects\getinp.obj+ 14 | objects\quit.obj+ 15 | objects\state.obj+ 16 | objects\dmdump.obj+ 17 | objects\macparse.obj+ 18 | objects\rulparse.obj+ 19 | objects\percent.obj+ 20 | objects\function.obj+ 21 | objects\ruletab.obj+ 22 | objects\dchdir.obj+ 23 | objects\switchar.obj+ 24 | objects\dirlib.obj+ 25 | objects\runargv.obj+ 26 | objects\dirbrk.obj+ 27 | objects\arlib.obj+ 28 | objects\dstrlwr.obj+ 29 | objects\rmprq.obj+ 30 | objects\dcache.obj+ 31 | objects\tempnam.obj 32 | -------------------------------------------------------------------------------- /unix/386ix/ar.h: -------------------------------------------------------------------------------- 1 | /* RCS $Id: ar.h,v 1.1.1.1 2000-09-22 15:33:33 hr Exp $ 2 | -- 3 | -- SYNOPSIS 4 | -- ar header 5 | -- 6 | -- DESCRIPTION 7 | -- Make sure that PORTAR is defined. 8 | -- 9 | -- AUTHOR 10 | -- Dennis Vadura, dvadura@dmake.wticorp.com 11 | -- 12 | -- WWW 13 | -- http://dmake.wticorp.com/ 14 | -- 15 | -- COPYRIGHT 16 | -- Copyright (c) 1996,1997 by WTI Corp. All rights reserved. 17 | -- 18 | -- This program is NOT free software; you can redistribute it and/or 19 | -- modify it under the terms of the Software License Agreement Provided 20 | -- in the file /COPYING. 21 | -- 22 | -- LOG 23 | -- Use cvs log to obtain detailed change logs. 24 | */ 25 | 26 | #define PORTAR 1 27 | #include "/usr/include/ar.h" 28 | -------------------------------------------------------------------------------- /winnt/borland/bcc50/obj.rsp: -------------------------------------------------------------------------------- 1 | c:\cc\borland\bcc50\lib\c0x32.obj 2 | objects\infer.obj 3 | objects\make.obj 4 | objects\stat.obj 5 | objects\expand.obj 6 | objects\dmstring.obj 7 | objects\hash.obj 8 | objects\dag.obj 9 | objects\dcache.obj 10 | objects\dmake.obj 11 | objects\path.obj 12 | objects\imacs.obj 13 | objects\sysintf.obj 14 | objects\parse.obj 15 | objects\getinp.obj 16 | objects\quit.obj 17 | objects\state.obj 18 | objects\dmdump.obj 19 | objects\macparse.obj 20 | objects\rulparse.obj 21 | objects\percent.obj 22 | objects\function.obj 23 | objects\dchdir.obj 24 | objects\dstrlwr.obj 25 | objects\arlib.obj 26 | objects\dirbrk.obj 27 | objects\tempnam.obj 28 | objects\ruletab.obj 29 | objects\utime.obj 30 | objects\runargv.obj 31 | objects\dcache.obj 32 | objects\rmprq.obj 33 | -------------------------------------------------------------------------------- /msdos/startup.h: -------------------------------------------------------------------------------- 1 | /* RCS $Id: startup.h,v 1.2 2006-04-20 12:06:36 hr Exp $ 2 | -- 3 | -- SYNOPSIS 4 | -- Dmake startup header file definition. 5 | -- 6 | -- DESCRIPTION 7 | -- Where we define the default value of MAKESTARTUP. 8 | -- 9 | -- AUTHOR 10 | -- Dennis Vadura, dvadura@dmake.wticorp.com 11 | -- 12 | -- WWW 13 | -- http://dmake.wticorp.com/ 14 | -- 15 | -- COPYRIGHT 16 | -- Copyright (c) 1996,1997 by WTI Corp. All rights reserved. 17 | -- 18 | -- This program is NOT free software; you can redistribute it and/or 19 | -- modify it under the terms of the Software License Agreement Provided 20 | -- in the file /COPYING. 21 | -- 22 | -- LOG 23 | -- Use cvs log to obtain detailed change logs. 24 | */ 25 | 26 | "MAKESTARTUP := $(DMAKEROOT)\\startup.mk", 27 | -------------------------------------------------------------------------------- /msdos/microsft/msc51/obj.rsp: -------------------------------------------------------------------------------- 1 | objects\infer.obj+ 2 | objects\make.obj+ 3 | objects\stat.obj+ 4 | objects\expand.obj+ 5 | objects\dmstring.obj+ 6 | objects\hash.obj+ 7 | objects\dag.obj+ 8 | objects\dmake.obj+ 9 | objects\path.obj+ 10 | objects\imacs.obj+ 11 | objects\sysintf.obj+ 12 | objects\parse.obj+ 13 | objects\getinp.obj+ 14 | objects\quit.obj+ 15 | objects\state.obj+ 16 | objects\dmdump.obj+ 17 | objects\macparse.obj+ 18 | objects\rulparse.obj+ 19 | objects\percent.obj+ 20 | objects\function.obj+ 21 | objects\ruletab.obj+ 22 | objects\dirbrk.obj+ 23 | objects\runargv.obj+ 24 | objects\arlib.obj+ 25 | objects\dchdir.obj+ 26 | objects\switchar.obj+ 27 | objects\rmprq.obj+ 28 | objects\tee.obj+ 29 | objects\find.obj+ 30 | objects\dirlib.obj+ 31 | objects\dstrlwr.obj+ 32 | objects\dcache.obj+ 33 | objects\tempnam.obj 34 | -------------------------------------------------------------------------------- /msdos/microsft/msc60/obj.rsp: -------------------------------------------------------------------------------- 1 | objects\infer.obj+ 2 | objects\make.obj+ 3 | objects\stat.obj+ 4 | objects\expand.obj+ 5 | objects\dmstring.obj+ 6 | objects\hash.obj+ 7 | objects\dag.obj+ 8 | objects\dmake.obj+ 9 | objects\path.obj+ 10 | objects\imacs.obj+ 11 | objects\sysintf.obj+ 12 | objects\parse.obj+ 13 | objects\getinp.obj+ 14 | objects\quit.obj+ 15 | objects\state.obj+ 16 | objects\dmdump.obj+ 17 | objects\macparse.obj+ 18 | objects\rulparse.obj+ 19 | objects\percent.obj+ 20 | objects\function.obj+ 21 | objects\ruletab.obj+ 22 | objects\dirbrk.obj+ 23 | objects\runargv.obj+ 24 | objects\arlib.obj+ 25 | objects\dchdir.obj+ 26 | objects\switchar.obj+ 27 | objects\rmprq.obj+ 28 | objects\tee.obj+ 29 | objects\find.obj+ 30 | objects\dirlib.obj+ 31 | objects\dstrlwr.obj+ 32 | objects\dcache.obj+ 33 | objects\tempnam.obj 34 | -------------------------------------------------------------------------------- /msdos/tee.c: -------------------------------------------------------------------------------- 1 | /* RCS $Id: tee.c,v 1.1.1.1 2000-09-22 15:33:27 hr Exp $ 2 | -- 3 | -- SYNOPSIS 4 | -- Hook_std_writes() dummy call for non swapping MSDOS versions. 5 | -- 6 | -- DESCRIPTION 7 | -- 8 | -- AUTHOR 9 | -- Dennis Vadura, dvadura@dmake.wticorp.com 10 | -- 11 | -- WWW 12 | -- http://dmake.wticorp.com/ 13 | -- 14 | -- COPYRIGHT 15 | -- Copyright (c) 1996,1997 by WTI Corp. All rights reserved. 16 | -- 17 | -- This program is NOT free software; you can redistribute it and/or 18 | -- modify it under the terms of the Software License Agreement Provided 19 | -- in the file /COPYING. 20 | -- 21 | -- LOG 22 | -- Use cvs log to obtain detailed change logs. 23 | */ 24 | 25 | #include "extern.h" 26 | 27 | PUBLIC void 28 | Hook_std_writes( file ) 29 | char *file; 30 | { 31 | } 32 | -------------------------------------------------------------------------------- /msdos/zortech/obj.rsp: -------------------------------------------------------------------------------- 1 | objects\infer.obj+ 2 | objects\make.obj+ 3 | objects\stat.obj+ 4 | objects\expand.obj+ 5 | objects\dmstring.obj+ 6 | objects\hash.obj+ 7 | objects\dag.obj+ 8 | objects\dmake.obj+ 9 | objects\path.obj+ 10 | objects\imacs.obj+ 11 | objects\sysintf.obj+ 12 | objects\parse.obj+ 13 | objects\getinp.obj+ 14 | objects\quit.obj+ 15 | objects\state.obj+ 16 | objects\dmdump.obj+ 17 | objects\macparse.obj+ 18 | objects\rulparse.obj+ 19 | objects\percent.obj+ 20 | objects\function.obj+ 21 | objects\ruletab.obj+ 22 | objects\dirbrk.obj+ 23 | objects\runargv.obj+ 24 | objects\arlib.obj+ 25 | objects\dchdir.obj+ 26 | objects\switchar.obj+ 27 | objects\rmprq.obj+ 28 | objects\tee.obj+ 29 | objects\find.obj+ 30 | objects\dirlib.obj+ 31 | objects\dstrlwr.obj+ 32 | objects\dcache.obj+ 33 | objects\tempnam.obj+ 34 | objects\environ.obj 35 | -------------------------------------------------------------------------------- /win95/borland/bcc50/obj.rsp: -------------------------------------------------------------------------------- 1 | c:\cc\borland\bcc50\lib\c0x32.obj+ 2 | objects\infer.obj+ 3 | objects\make.obj+ 4 | objects\stat.obj+ 5 | objects\expand.obj+ 6 | objects\dmstring.obj+ 7 | objects\hash.obj+ 8 | objects\dag.obj+ 9 | objects\dcache.obj+ 10 | objects\dmake.obj+ 11 | objects\path.obj+ 12 | objects\imacs.obj+ 13 | objects\sysintf.obj+ 14 | objects\parse.obj+ 15 | objects\getinp.obj+ 16 | objects\quit.obj+ 17 | objects\state.obj+ 18 | objects\dmdump.obj+ 19 | objects\macparse.obj+ 20 | objects\rulparse.obj+ 21 | objects\percent.obj+ 22 | objects\function.obj+ 23 | objects\dchdir.obj+ 24 | objects\switchar.obj+ 25 | objects\dstrlwr.obj+ 26 | objects\arlib.obj+ 27 | objects\dirbrk.obj+ 28 | objects\tempnam.obj+ 29 | objects\ruletab.obj+ 30 | objects\utime.obj+ 31 | objects\runargv.obj+ 32 | objects\dcache.obj+ 33 | objects\rmprq.obj 34 | -------------------------------------------------------------------------------- /unix/bsd43/dirent.h: -------------------------------------------------------------------------------- 1 | /* RCS $Id: dirent.h,v 1.1.1.1 2000-09-22 15:33:33 hr Exp $ 2 | -- 3 | -- SYNOPSIS 4 | -- dirent 5 | -- 6 | -- DESCRIPTION 7 | -- Deal with sysV'ish dirent.h on BSD4.3 systems, which have the stuff 8 | -- in sys/dir.h 9 | -- 10 | -- AUTHOR 11 | -- Dennis Vadura, dvadura@dmake.wticorp.com 12 | -- 13 | -- WWW 14 | -- http://dmake.wticorp.com/ 15 | -- 16 | -- COPYRIGHT 17 | -- Copyright (c) 1996,1997 by WTI Corp. All rights reserved. 18 | -- 19 | -- This program is NOT free software; you can redistribute it and/or 20 | -- modify it under the terms of the Software License Agreement Provided 21 | -- in the file /COPYING. 22 | -- 23 | -- LOG 24 | -- Use cvs log to obtain detailed change logs. 25 | */ 26 | 27 | #include 28 | #define dirent direct 29 | -------------------------------------------------------------------------------- /mac/startup.h: -------------------------------------------------------------------------------- 1 | /* RCS $Id: startup.h,v 1.1.1.1 2000-09-22 15:33:27 hr Exp $ 2 | -- 3 | -- SYNOPSIS 4 | -- Default value of MAKESTARTUP. 5 | -- 6 | -- DESCRIPTION 7 | -- Default value is used if the environment variable is not 8 | -- defined. 9 | -- 10 | -- AUTHOR 11 | -- Dennis Vadura, dvadura@dmake.wticorp.com 12 | -- 13 | -- WWW 14 | -- http://dmake.wticorp.com/ 15 | -- 16 | -- COPYRIGHT 17 | -- Copyright (c) 1996,1997 by WTI Corp. All rights reserved. 18 | -- 19 | -- This program is NOT free software; you can redistribute it and/or 20 | -- modify it under the terms of the Software License Agreement Provided 21 | -- in the file /COPYING. 22 | -- 23 | -- LOG 24 | -- Use cvs log to obtain detailed change logs. 25 | */ 26 | 27 | "MAKESTARTUP := $(DMAKEROOT):startup.mk", 28 | 29 | -------------------------------------------------------------------------------- /msdos/microsft/msc51/objswp.rsp: -------------------------------------------------------------------------------- 1 | objects\exec.obj+ 2 | objects\infer.obj+ 3 | objects\make.obj+ 4 | objects\stat.obj+ 5 | objects\expand.obj+ 6 | objects\dmstring.obj+ 7 | objects\hash.obj+ 8 | objects\dag.obj+ 9 | objects\dmake.obj+ 10 | objects\path.obj+ 11 | objects\imacs.obj+ 12 | objects\sysintf.obj+ 13 | objects\parse.obj+ 14 | objects\getinp.obj+ 15 | objects\quit.obj+ 16 | objects\state.obj+ 17 | objects\dmdump.obj+ 18 | objects\macparse.obj+ 19 | objects\rulparse.obj+ 20 | objects\percent.obj+ 21 | objects\function.obj+ 22 | objects\ruletab.obj+ 23 | objects\dirbrk.obj+ 24 | objects\runargv.obj+ 25 | objects\arlib.obj+ 26 | objects\dchdir.obj+ 27 | objects\switchar.obj+ 28 | objects\rmprq.obj+ 29 | objects\spawn.obj+ 30 | objects\find.obj+ 31 | objects\dirlib.obj+ 32 | objects\dstrlwr.obj+ 33 | objects\dcache.obj+ 34 | objects\tempnam.obj 35 | -------------------------------------------------------------------------------- /msdos/microsft/msc60/objswp.rsp: -------------------------------------------------------------------------------- 1 | objects\exec.obj+ 2 | objects\infer.obj+ 3 | objects\make.obj+ 4 | objects\stat.obj+ 5 | objects\expand.obj+ 6 | objects\dmstring.obj+ 7 | objects\hash.obj+ 8 | objects\dag.obj+ 9 | objects\dmake.obj+ 10 | objects\path.obj+ 11 | objects\imacs.obj+ 12 | objects\sysintf.obj+ 13 | objects\parse.obj+ 14 | objects\getinp.obj+ 15 | objects\quit.obj+ 16 | objects\state.obj+ 17 | objects\dmdump.obj+ 18 | objects\macparse.obj+ 19 | objects\rulparse.obj+ 20 | objects\percent.obj+ 21 | objects\function.obj+ 22 | objects\ruletab.obj+ 23 | objects\dirbrk.obj+ 24 | objects\runargv.obj+ 25 | objects\arlib.obj+ 26 | objects\dchdir.obj+ 27 | objects\switchar.obj+ 28 | objects\rmprq.obj+ 29 | objects\spawn.obj+ 30 | objects\find.obj+ 31 | objects\dirlib.obj+ 32 | objects\dstrlwr.obj+ 33 | objects\dcache.obj+ 34 | objects\tempnam.obj 35 | -------------------------------------------------------------------------------- /os2/startup.h: -------------------------------------------------------------------------------- 1 | /* RCS $Id: startup.h,v 1.1.1.1 2000-09-22 15:33:30 hr Exp $ 2 | -- 3 | -- SYNOPSIS 4 | -- Definition of MAKESTARTUP 5 | -- 6 | -- DESCRIPTION 7 | -- Default MAKESTARTUP value defining where dmake locates the 8 | -- startup file. 9 | -- 10 | -- AUTHOR 11 | -- Dennis Vadura, dvadura@dmake.wticorp.com 12 | -- 13 | -- WWW 14 | -- http://dmake.wticorp.com/ 15 | -- 16 | -- COPYRIGHT 17 | -- Copyright (c) 1996,1997 by WTI Corp. All rights reserved. 18 | -- 19 | -- This program is NOT free software; you can redistribute it and/or 20 | -- modify it under the terms of the Software License Agreement Provided 21 | -- in the file /COPYING. 22 | -- 23 | -- LOG 24 | -- Use cvs log to obtain detailed change logs. 25 | */ 26 | 27 | "MAKESTARTUP := $(DMAKEROOT)\\startup.mk", 28 | -------------------------------------------------------------------------------- /unix/startup.h: -------------------------------------------------------------------------------- 1 | /* RCS $Id: startup.h,v 1.1.1.1 2000-09-22 15:33:33 hr Exp $ 2 | -- 3 | -- SYNOPSIS 4 | -- Definition of MAKESTARTUP 5 | -- 6 | -- DESCRIPTION 7 | -- Default MAKESTARTUP value defining where dmake locates the 8 | -- startup file. 9 | -- 10 | -- AUTHOR 11 | -- Dennis Vadura, dvadura@dmake.wticorp.com 12 | -- 13 | -- WWW 14 | -- http://dmake.wticorp.com/ 15 | -- 16 | -- COPYRIGHT 17 | -- Copyright (c) 1996,1997 by WTI Corp. All rights reserved. 18 | -- 19 | -- This program is NOT free software; you can redistribute it and/or 20 | -- modify it under the terms of the Software License Agreement Provided 21 | -- in the file /COPYING. 22 | -- 23 | -- LOG 24 | -- Use cvs log to obtain detailed change logs. 25 | */ 26 | 27 | "MAKESTARTUP := $(DMAKEROOT)/startup.mk", 28 | -------------------------------------------------------------------------------- /msdos/microsft/optoff.h: -------------------------------------------------------------------------------- 1 | /* RCS $Id: optoff.h,v 1.1.1.1 2000-09-22 15:33:29 hr Exp $ 2 | -- 3 | -- SYNOPSIS 4 | -- Turn off microsoft loop optimization. 5 | -- 6 | -- DESCRIPTION 7 | -- This is broken in some pre 600 compilers so just turn it off. 8 | -- 9 | -- AUTHOR 10 | -- Dennis Vadura, dvadura@dmake.wticorp.com 11 | -- 12 | -- WWW 13 | -- http://dmake.wticorp.com/ 14 | -- 15 | -- COPYRIGHT 16 | -- Copyright (c) 1996,1997 by WTI Corp. All rights reserved. 17 | -- 18 | -- This program is NOT free software; you can redistribute it and/or 19 | -- modify it under the terms of the Software License Agreement Provided 20 | -- in the file /COPYING. 21 | -- 22 | -- LOG 23 | -- Use cvs log to obtain detailed change logs. 24 | */ 25 | #if _MSC_VER < 600 26 | # pragma loop_opt(off) 27 | #endif 28 | -------------------------------------------------------------------------------- /qssl/time.h: -------------------------------------------------------------------------------- 1 | /* RCS $Id: time.h,v 1.1.1.1 2000-09-22 15:33:30 hr Exp $ 2 | -- 3 | -- SYNOPSIS 4 | -- time_t 5 | -- 6 | -- DESCRIPTION 7 | -- Fix broken time_t definition. 8 | -- 9 | -- AUTHOR 10 | -- Dennis Vadura, dvadura@dmake.wticorp.com 11 | -- 12 | -- WWW 13 | -- http://dmake.wticorp.com/ 14 | -- 15 | -- COPYRIGHT 16 | -- Copyright (c) 1996,1997 by WTI Corp. All rights reserved. 17 | -- 18 | -- This program is NOT free software; you can redistribute it and/or 19 | -- modify it under the terms of the Software License Agreement Provided 20 | -- in the file /COPYING. 21 | -- 22 | -- LOG 23 | -- Use cvs log to obtain detailed change logs. 24 | */ 25 | 26 | #ifndef TIME_h 27 | #define TIME_h 28 | 29 | typedef long time_t; /* this is the thing we use */ 30 | 31 | #endif TIME_h 32 | 33 | -------------------------------------------------------------------------------- /unix/bsdarm32/limits.h: -------------------------------------------------------------------------------- 1 | /* RCS $Id: limits.h,v 1.1.1.1 2000-09-22 15:33:34 hr Exp $ 2 | -- 3 | -- SYNOPSIS 4 | -- limits 5 | -- 6 | -- DESCRIPTION 7 | -- Compensate for systems that don't have a limits.h header file. 8 | -- 9 | -- AUTHOR 10 | -- Dennis Vadura, dvadura@dmake.wticorp.com 11 | -- 12 | -- WWW 13 | -- http://dmake.wticorp.com/ 14 | -- 15 | -- COPYRIGHT 16 | -- Copyright (c) 1996,1997 by WTI Corp. All rights reserved. 17 | -- 18 | -- This program is NOT free software; you can redistribute it and/or 19 | -- modify it under the terms of the Software License Agreement Provided 20 | -- in the file /COPYING. 21 | -- 22 | -- LOG 23 | -- Use cvs log to obtain detailed change logs. 24 | */ 25 | 26 | #include 27 | #include 28 | #include 29 | 30 | -------------------------------------------------------------------------------- /unix/coherent/time.h: -------------------------------------------------------------------------------- 1 | /* RCS $Id: time.h,v 1.1.1.1 2000-09-22 15:33:34 hr Exp $ 2 | -- 3 | -- SYNOPSIS 4 | -- time_t 5 | -- 6 | -- DESCRIPTION 7 | -- Properly define time_t. 8 | -- 9 | -- AUTHOR 10 | -- Dennis Vadura, dvadura@dmake.wticorp.com 11 | -- 12 | -- WWW 13 | -- http://dmake.wticorp.com/ 14 | -- 15 | -- COPYRIGHT 16 | -- Copyright (c) 1996,1997 by WTI Corp. All rights reserved. 17 | -- 18 | -- This program is NOT free software; you can redistribute it and/or 19 | -- modify it under the terms of the Software License Agreement Provided 20 | -- in the file /COPYING. 21 | -- 22 | -- LOG 23 | -- Use cvs log to obtain detailed change logs. 24 | */ 25 | 26 | #ifndef TIME_h 27 | #define TIME_h 28 | 29 | typedef long time_t; /* this is the thing we use */ 30 | 31 | #endif TIME_h 32 | 33 | -------------------------------------------------------------------------------- /unix/sysvr1/time.h: -------------------------------------------------------------------------------- 1 | /* RCS $Id: time.h,v 1.1.1.1 2000-09-22 15:33:35 hr Exp $ 2 | -- 3 | -- SYNOPSIS 4 | -- time_t 5 | -- 6 | -- DESCRIPTION 7 | -- Properly define time_t. 8 | -- 9 | -- AUTHOR 10 | -- Dennis Vadura, dvadura@dmake.wticorp.com 11 | -- 12 | -- WWW 13 | -- http://dmake.wticorp.com/ 14 | -- 15 | -- COPYRIGHT 16 | -- Copyright (c) 1996,1997 by WTI Corp. All rights reserved. 17 | -- 18 | -- This program is NOT free software; you can redistribute it and/or 19 | -- modify it under the terms of the Software License Agreement Provided 20 | -- in the file /COPYING. 21 | -- 22 | -- LOG 23 | -- Use cvs log to obtain detailed change logs. 24 | */ 25 | 26 | #ifndef TIME_h 27 | #define TIME_h 28 | 29 | typedef long time_t; /* this is the thing we use */ 30 | 31 | #endif TIME_h 32 | 33 | -------------------------------------------------------------------------------- /unix/sysvr3/time.h: -------------------------------------------------------------------------------- 1 | /* RCS $Id: time.h,v 1.1.1.1 2000-09-22 15:33:35 hr Exp $ 2 | -- 3 | -- SYNOPSIS 4 | -- time_t 5 | -- 6 | -- DESCRIPTION 7 | -- Properly define time_t. 8 | -- 9 | -- AUTHOR 10 | -- Dennis Vadura, dvadura@dmake.wticorp.com 11 | -- 12 | -- WWW 13 | -- http://dmake.wticorp.com/ 14 | -- 15 | -- COPYRIGHT 16 | -- Copyright (c) 1996,1997 by WTI Corp. All rights reserved. 17 | -- 18 | -- This program is NOT free software; you can redistribute it and/or 19 | -- modify it under the terms of the Software License Agreement Provided 20 | -- in the file /COPYING. 21 | -- 22 | -- LOG 23 | -- Use cvs log to obtain detailed change logs. 24 | */ 25 | 26 | #ifndef TIME_h 27 | #define TIME_h 28 | 29 | typedef long time_t; /* this is the thing we use */ 30 | 31 | #endif TIME_h 32 | 33 | -------------------------------------------------------------------------------- /unix/xenix/time.h: -------------------------------------------------------------------------------- 1 | /* RCS $Id: time.h,v 1.1.1.1 2000-09-22 15:33:36 hr Exp $ 2 | -- 3 | -- SYNOPSIS 4 | -- time_t 5 | -- 6 | -- DESCRIPTION 7 | -- Properly define time_t. 8 | -- 9 | -- AUTHOR 10 | -- Dennis Vadura, dvadura@dmake.wticorp.com 11 | -- 12 | -- WWW 13 | -- http://dmake.wticorp.com/ 14 | -- 15 | -- COPYRIGHT 16 | -- Copyright (c) 1996,1997 by WTI Corp. All rights reserved. 17 | -- 18 | -- This program is NOT free software; you can redistribute it and/or 19 | -- modify it under the terms of the Software License Agreement Provided 20 | -- in the file /COPYING. 21 | -- 22 | -- LOG 23 | -- Use cvs log to obtain detailed change logs. 24 | */ 25 | 26 | #ifndef TIME_h 27 | #define TIME_h 28 | 29 | typedef long time_t; /* this is the thing we use */ 30 | 31 | #endif TIME_h 32 | 33 | -------------------------------------------------------------------------------- /win95/microsft/optoff.h: -------------------------------------------------------------------------------- 1 | /* RCS $Id: optoff.h,v 1.1.1.1 2000-09-22 15:33:36 hr Exp $ 2 | -- 3 | -- SYNOPSIS 4 | -- Turn off microsoft loop optimization. 5 | -- 6 | -- DESCRIPTION 7 | -- This is broken in some pre 600 compilers so just turn it off. 8 | -- 9 | -- AUTHOR 10 | -- Dennis Vadura, dvadura@dmake.wticorp.com 11 | -- 12 | -- WWW 13 | -- http://dmake.wticorp.com/ 14 | -- 15 | -- COPYRIGHT 16 | -- Copyright (c) 1996,1997 by WTI Corp. All rights reserved. 17 | -- 18 | -- This program is NOT free software; you can redistribute it and/or 19 | -- modify it under the terms of the Software License Agreement Provided 20 | -- in the file /COPYING. 21 | -- 22 | -- LOG 23 | -- Use cvs log to obtain detailed change logs. 24 | */ 25 | #if _MSC_VER < 600 26 | # pragma loop_opt(off) 27 | #endif 28 | -------------------------------------------------------------------------------- /winnt/microsft/optoff.h: -------------------------------------------------------------------------------- 1 | /* RCS $Id: optoff.h,v 1.1.1.1 2000-09-22 15:33:37 hr Exp $ 2 | -- 3 | -- SYNOPSIS 4 | -- Turn off microsoft loop optimization. 5 | -- 6 | -- DESCRIPTION 7 | -- This is broken in some pre 600 compilers so just turn it off. 8 | -- 9 | -- AUTHOR 10 | -- Dennis Vadura, dvadura@dmake.wticorp.com 11 | -- 12 | -- WWW 13 | -- http://dmake.wticorp.com/ 14 | -- 15 | -- COPYRIGHT 16 | -- Copyright (c) 1996,1997 by WTI Corp. All rights reserved. 17 | -- 18 | -- This program is NOT free software; you can redistribute it and/or 19 | -- modify it under the terms of the Software License Agreement Provided 20 | -- in the file /COPYING. 21 | -- 22 | -- LOG 23 | -- Use cvs log to obtain detailed change logs. 24 | */ 25 | #if _MSC_VER < 600 26 | # pragma loop_opt(off) 27 | #endif 28 | -------------------------------------------------------------------------------- /msdos/borland/bcc30/obj.rsp: -------------------------------------------------------------------------------- 1 | d:\cc\borland\bcc30\lib\c0l.obj+ 2 | objects\infer.obj+ 3 | objects\make.obj+ 4 | objects\stat.obj+ 5 | objects\expand.obj+ 6 | objects\dmstring.obj+ 7 | objects\hash.obj+ 8 | objects\dag.obj+ 9 | objects\dmake.obj+ 10 | objects\path.obj+ 11 | objects\imacs.obj+ 12 | objects\sysintf.obj+ 13 | objects\parse.obj+ 14 | objects\getinp.obj+ 15 | objects\quit.obj+ 16 | objects\state.obj+ 17 | objects\dmdump.obj+ 18 | objects\macparse.obj+ 19 | objects\rulparse.obj+ 20 | objects\percent.obj+ 21 | objects\function.obj+ 22 | objects\ruletab.obj+ 23 | objects\dirbrk.obj+ 24 | objects\runargv.obj+ 25 | objects\arlib.obj+ 26 | objects\dchdir.obj+ 27 | objects\switchar.obj+ 28 | objects\rmprq.obj+ 29 | objects\tee.obj+ 30 | objects\dirlib.obj+ 31 | objects\find.obj+ 32 | objects\dcache.obj+ 33 | objects\tempnam.obj+ 34 | objects\utime.obj 35 | -------------------------------------------------------------------------------- /msdos/borland/bcc40/obj.rsp: -------------------------------------------------------------------------------- 1 | e:\cc\borland\bcc40\lib\c0x32.obj+ 2 | objects\infer.obj+ 3 | objects\make.obj+ 4 | objects\stat.obj+ 5 | objects\expand.obj+ 6 | objects\dmstring.obj+ 7 | objects\hash.obj+ 8 | objects\dag.obj+ 9 | objects\dmake.obj+ 10 | objects\path.obj+ 11 | objects\imacs.obj+ 12 | objects\sysintf.obj+ 13 | objects\parse.obj+ 14 | objects\getinp.obj+ 15 | objects\quit.obj+ 16 | objects\state.obj+ 17 | objects\dmdump.obj+ 18 | objects\macparse.obj+ 19 | objects\rulparse.obj+ 20 | objects\percent.obj+ 21 | objects\function.obj+ 22 | objects\ruletab.obj+ 23 | objects\dirbrk.obj+ 24 | objects\runargv.obj+ 25 | objects\arlib.obj+ 26 | objects\dchdir.obj+ 27 | objects\switchar.obj+ 28 | objects\rmprq.obj+ 29 | objects\find.obj+ 30 | objects\tee.obj+ 31 | objects\dirlib.obj+ 32 | objects\dcache.obj+ 33 | objects\tempnam.obj+ 34 | objects\utime.obj 35 | -------------------------------------------------------------------------------- /msdos/borland/bcc45/obj.rsp: -------------------------------------------------------------------------------- 1 | e:\cc\borland\bcc45\lib\c0x32.obj+ 2 | objects\infer.obj+ 3 | objects\make.obj+ 4 | objects\stat.obj+ 5 | objects\expand.obj+ 6 | objects\dmstring.obj+ 7 | objects\hash.obj+ 8 | objects\dag.obj+ 9 | objects\dmake.obj+ 10 | objects\path.obj+ 11 | objects\imacs.obj+ 12 | objects\sysintf.obj+ 13 | objects\parse.obj+ 14 | objects\getinp.obj+ 15 | objects\quit.obj+ 16 | objects\state.obj+ 17 | objects\dmdump.obj+ 18 | objects\macparse.obj+ 19 | objects\rulparse.obj+ 20 | objects\percent.obj+ 21 | objects\function.obj+ 22 | objects\ruletab.obj+ 23 | objects\dirbrk.obj+ 24 | objects\runargv.obj+ 25 | objects\arlib.obj+ 26 | objects\dchdir.obj+ 27 | objects\switchar.obj+ 28 | objects\rmprq.obj+ 29 | objects\find.obj+ 30 | objects\tee.obj+ 31 | objects\dirlib.obj+ 32 | objects\dcache.obj+ 33 | objects\tempnam.obj+ 34 | objects\utime.obj 35 | -------------------------------------------------------------------------------- /msdos/borland/bcc50/obj.rsp: -------------------------------------------------------------------------------- 1 | e:\cc\borland\bcc50\lib\c0x32.obj+ 2 | objects\infer.obj+ 3 | objects\make.obj+ 4 | objects\stat.obj+ 5 | objects\expand.obj+ 6 | objects\dmstring.obj+ 7 | objects\hash.obj+ 8 | objects\dag.obj+ 9 | objects\dmake.obj+ 10 | objects\path.obj+ 11 | objects\imacs.obj+ 12 | objects\sysintf.obj+ 13 | objects\parse.obj+ 14 | objects\getinp.obj+ 15 | objects\quit.obj+ 16 | objects\state.obj+ 17 | objects\dmdump.obj+ 18 | objects\macparse.obj+ 19 | objects\rulparse.obj+ 20 | objects\percent.obj+ 21 | objects\function.obj+ 22 | objects\ruletab.obj+ 23 | objects\dirbrk.obj+ 24 | objects\runargv.obj+ 25 | objects\arlib.obj+ 26 | objects\dchdir.obj+ 27 | objects\switchar.obj+ 28 | objects\rmprq.obj+ 29 | objects\find.obj+ 30 | objects\tee.obj+ 31 | objects\dirlib.obj+ 32 | objects\dcache.obj+ 33 | objects\tempnam.obj+ 34 | objects\utime.obj 35 | -------------------------------------------------------------------------------- /msdos/zortech/objswp.rsp: -------------------------------------------------------------------------------- 1 | _swapl.obj+ 2 | objects\infer.obj+ 3 | objects\make.obj+ 4 | objects\stat.obj+ 5 | objects\expand.obj+ 6 | objects\dmstring.obj+ 7 | objects\hash.obj+ 8 | objects\dag.obj+ 9 | objects\dmake.obj+ 10 | objects\path.obj+ 11 | objects\imacs.obj+ 12 | objects\sysintf.obj+ 13 | objects\parse.obj+ 14 | objects\getinp.obj+ 15 | objects\quit.obj+ 16 | objects\state.obj+ 17 | objects\dmdump.obj+ 18 | objects\macparse.obj+ 19 | objects\rulparse.obj+ 20 | objects\percent.obj+ 21 | objects\function.obj+ 22 | objects\ruletab.obj+ 23 | objects\dirbrk.obj+ 24 | objects\runargv.obj+ 25 | objects\arlib.obj+ 26 | objects\dchdir.obj+ 27 | objects\switchar.obj+ 28 | objects\rmprq.obj+ 29 | objects\tee.obj+ 30 | objects\find.obj+ 31 | objects\dirlib.obj+ 32 | objects\dstrlwr.obj+ 33 | objects\dcache.obj+ 34 | objects\tempnam.obj+ 35 | objects\environ.obj 36 | -------------------------------------------------------------------------------- /unix/386ix/config.mk: -------------------------------------------------------------------------------- 1 | # This is the 386IX UNIX configuration file for DMAKE 2 | # It simply modifies the values of SRC, and checks to see if 3 | # OSENVIRONMENT is defined. If so it includes the appropriate 4 | # config.mk file. 5 | # 6 | # It also sets the values of .SOURCE.c and .SOURCE.h to include the local 7 | # directory. 8 | # 9 | osrdir := $(OS)$(DIRSEPSTR)$(OSRELEASE) 10 | 11 | # The following are required sources 12 | OSDSRC := 13 | .IF $(OSDSRC) 14 | SRC += $(OSDSRC) 15 | .SETDIR=$(osrdir) : $(OSDSRC) 16 | .END 17 | 18 | .SOURCE.h : $(osrdir) 19 | 20 | # Local configuration modifications for CFLAGS, there's local SysV includes 21 | # too. 22 | CFLAGS += -I$(osrdir) 23 | 24 | # See if we modify anything in the lower levels. 25 | .IF $(OSENVIRONMENT) != $(NULL) 26 | .INCLUDE .IGNORE : $(osrdir)$(DIRSEPSTR)$(OSENVIRONMENT)$(DIRSEPSTR)config.mk 27 | .END 28 | -------------------------------------------------------------------------------- /unix/coherent/config.mk: -------------------------------------------------------------------------------- 1 | # This is the COHERENT configuration file for DMAKE 2 | # It simply modifies the values of SRC, and checks to see if 3 | # OSENVIRONMENT is defined. If so it includes the appropriate 4 | # config.mk file. 5 | # 6 | # It also sets the values of .SOURCE.c and .SOURCE.h to include the local 7 | # directory. 8 | # 9 | osrdir := $(OS)$(DIRSEPSTR)$(OSRELEASE) 10 | 11 | # The following are required sources 12 | .IF $(OSDSRC) 13 | SRC += $(OSDSRC) 14 | .SETDIR=$(osrdir) : $(OSDSRC) 15 | .END 16 | 17 | .SOURCE.h : $(osrdir) 18 | 19 | # Local configuration modifications for CFLAGS, there's local SysV includes 20 | # too. 21 | CFLAGS += -I$(osrdir) -Dvoid=int 22 | 23 | # See if we modify anything in the lower levels. 24 | .IF $(OSENVIRONMENT) != $(NULL) 25 | .INCLUDE .IGNORE : $(osrdir)$(DIRSEPSTR)$(OSENVIRONMENT)$(DIRSEPSTR)config.mk 26 | .END 27 | -------------------------------------------------------------------------------- /unix/linux/config.mk: -------------------------------------------------------------------------------- 1 | # This is the SysV R3 UNIX configuration file for DMAKE 2 | # It simply modifies the values of SRC, and checks to see if 3 | # OSENVIRONMENT is defined. If so it includes the appropriate 4 | # config.mk file. 5 | # 6 | # It also sets the values of .SOURCE.c and .SOURCE.h to include the local 7 | # directory. 8 | # 9 | osrdir := $(OS)$(DIRSEPSTR)$(OSRELEASE) 10 | 11 | # The following are required sources 12 | OSDSRC := 13 | .IF $(OSDSRC) 14 | SRC += $(OSDSRC) 15 | .SETDIR=$(osrdir) : $(OSDSRC) 16 | .END 17 | 18 | .SOURCE.h : $(osrdir) 19 | 20 | # Local configuration modifications for CFLAGS, there's local SysV includes 21 | # too. 22 | CFLAGS += -I$(osrdir) 23 | 24 | # See if we modify anything in the lower levels. 25 | .IF $(OSENVIRONMENT) != $(NULL) 26 | .INCLUDE .IGNORE : $(osrdir)$(DIRSEPSTR)$(OSENVIRONMENT)$(DIRSEPSTR)config.mk 27 | .END 28 | -------------------------------------------------------------------------------- /unix/macosx/config.mk: -------------------------------------------------------------------------------- 1 | # This is the SysV R3 UNIX configuration file for DMAKE 2 | # It simply modifies the values of SRC, and checks to see if 3 | # OSENVIRONMENT is defined. If so it includes the appropriate 4 | # config.mk file. 5 | # 6 | # It also sets the values of .SOURCE.c and .SOURCE.h to include the local 7 | # directory. 8 | # 9 | osrdir := $(OS)$(DIRSEPSTR)$(OSRELEASE) 10 | 11 | # The following are required sources 12 | OSDSRC := 13 | .IF $(OSDSRC) 14 | SRC += $(OSDSRC) 15 | .SETDIR=$(osrdir) : $(OSDSRC) 16 | .END 17 | 18 | .SOURCE.h : $(osrdir) 19 | 20 | # Local configuration modifications for CFLAGS, there's local SysV includes 21 | # too. 22 | CFLAGS += -I$(osrdir) 23 | 24 | # See if we modify anything in the lower levels. 25 | .IF $(OSENVIRONMENT) != $(NULL) 26 | .INCLUDE .IGNORE : $(osrdir)$(DIRSEPSTR)$(OSENVIRONMENT)$(DIRSEPSTR)config.mk 27 | .END 28 | -------------------------------------------------------------------------------- /unix/sysvr3/config.mk: -------------------------------------------------------------------------------- 1 | # This is the SysV R3 UNIX configuration file for DMAKE 2 | # It simply modifies the values of SRC, and checks to see if 3 | # OSENVIRONMENT is defined. If so it includes the appropriate 4 | # config.mk file. 5 | # 6 | # It also sets the values of .SOURCE.c and .SOURCE.h to include the local 7 | # directory. 8 | # 9 | osrdir := $(OS)$(DIRSEPSTR)$(OSRELEASE) 10 | 11 | # The following are required sources 12 | OSDSRC := 13 | .IF $(OSDSRC) 14 | SRC += $(OSDSRC) 15 | .SETDIR=$(osrdir) : $(OSDSRC) 16 | .END 17 | 18 | .SOURCE.h : $(osrdir) 19 | 20 | # Local configuration modifications for CFLAGS, there's local SysV includes 21 | # too. 22 | CFLAGS += -I$(osrdir) 23 | 24 | # See if we modify anything in the lower levels. 25 | .IF $(OSENVIRONMENT) != $(NULL) 26 | .INCLUDE .IGNORE : $(osrdir)$(DIRSEPSTR)$(OSENVIRONMENT)$(DIRSEPSTR)config.mk 27 | .END 28 | -------------------------------------------------------------------------------- /unix/sysvr4/config.mk: -------------------------------------------------------------------------------- 1 | # This is the SysV R4 UNIX configuration file for DMAKE 2 | # It simply modifies the values of SRC, and checks to see if 3 | # OSENVIRONMENT is defined. If so it includes the appropriate 4 | # config.mk file. 5 | # 6 | # It also sets the values of .SOURCE.c and .SOURCE.h to include the local 7 | # directory. 8 | # 9 | osrdir := $(OS)$(DIRSEPSTR)$(OSRELEASE) 10 | 11 | # The following are required sources 12 | OSDSRC := 13 | .IF $(OSDSRC) 14 | SRC += $(OSDSRC) 15 | .SETDIR=$(osrdir) : $(OSDSRC) 16 | .END 17 | 18 | .SOURCE.h : $(osrdir) 19 | 20 | # Local configuration modifications for CFLAGS, there's local SysV includes 21 | # too. 22 | CFLAGS += -I$(osrdir) 23 | 24 | # See if we modify anything in the lower levels. 25 | .IF $(OSENVIRONMENT) != $(NULL) 26 | .INCLUDE .IGNORE : $(osrdir)$(DIRSEPSTR)$(OSENVIRONMENT)$(DIRSEPSTR)config.mk 27 | .END 28 | -------------------------------------------------------------------------------- /tos/startup.h: -------------------------------------------------------------------------------- 1 | /* RCS $Id: startup.h,v 1.2 2006-04-20 12:18:14 hr Exp $ 2 | -- 3 | -- SYNOPSIS 4 | -- Definition of MAKESTARTUP 5 | -- 6 | -- DESCRIPTION 7 | -- Default MAKESTARTUP value defining where dmake locates the 8 | -- startup file. 9 | -- 10 | -- AUTHOR 11 | -- Dennis Vadura, dvadura@dmake.wticorp.com 12 | -- 13 | -- WWW 14 | -- http://dmake.wticorp.com/ 15 | -- 16 | -- COPYRIGHT 17 | -- Copyright (c) 1996,1997 by WTI Corp. All rights reserved. 18 | -- 19 | -- This program is NOT free software; you can redistribute it and/or 20 | -- modify it under the terms of the Software License Agreement Provided 21 | -- in the file /COPYING. 22 | -- 23 | -- LOG 24 | -- Use cvs log to obtain detailed change logs. 25 | */ 26 | 27 | "DMAKEROOT *:= $(ROOTDIR)/etc/startup", 28 | "MAKESTARTUP := $(DMAKEROOT)/startup.mk", 29 | -------------------------------------------------------------------------------- /win95/startup.h: -------------------------------------------------------------------------------- 1 | /* RCS $Id: startup.h,v 1.2 2006-04-20 12:23:16 hr Exp $ 2 | -- 3 | -- SYNOPSIS 4 | -- Definition of MAKESTARTUP 5 | -- 6 | -- DESCRIPTION 7 | -- Default MAKESTARTUP value defining where dmake locates the 8 | -- startup file. 9 | -- 10 | -- AUTHOR 11 | -- Dennis Vadura, dvadura@dmake.wticorp.com 12 | -- 13 | -- WWW 14 | -- http://dmake.wticorp.com/ 15 | -- 16 | -- COPYRIGHT 17 | -- Copyright (c) 1996,1997 by WTI Corp. All rights reserved. 18 | -- 19 | -- This program is NOT free software; you can redistribute it and/or 20 | -- modify it under the terms of the Software License Agreement Provided 21 | -- in the file /COPYING. 22 | -- 23 | -- LOG 24 | -- Use cvs log to obtain detailed change logs. 25 | */ 26 | 27 | "DMAKEROOT *= $(ABSMAKECMD:d)startup", 28 | "MAKESTARTUP := $(DMAKEROOT)\\startup.mk", 29 | -------------------------------------------------------------------------------- /unix/bsdarm32/dirent.h: -------------------------------------------------------------------------------- 1 | /* RCS $Id: dirent.h,v 1.1.1.1 2000-09-22 15:33:34 hr Exp $ 2 | -- 3 | -- SYNOPSIS 4 | -- dirent 5 | -- 6 | -- DESCRIPTION 7 | -- Deal with sysV'ish dirent.h on BSD4.3 systems, which have the stuff 8 | -- in sys/dir.h 9 | -- 10 | -- AUTHOR 11 | -- Dennis Vadura, dvadura@dmake.wticorp.com 12 | -- 13 | -- WWW 14 | -- http://dmake.wticorp.com/ 15 | -- 16 | -- COPYRIGHT 17 | -- Copyright (c) 1996,1997 by WTI Corp. All rights reserved. 18 | -- 19 | -- This program is NOT free software; you can redistribute it and/or 20 | -- modify it under the terms of the Software License Agreement Provided 21 | -- in the file /COPYING. 22 | -- 23 | -- LOG 24 | -- Use cvs log to obtain detailed change logs. 25 | */ 26 | 27 | #include 28 | #include 29 | #define dirent direct 30 | 31 | -------------------------------------------------------------------------------- /unix/xenix/config.mk: -------------------------------------------------------------------------------- 1 | # This is the SysV R3 UNIX configuration file for DMAKE 2 | # It simply modifies the values of SRC, and checks to see if 3 | # OSENVIRONMENT is defined. If so it includes the appropriate 4 | # config.mk file. 5 | # 6 | # It also sets the values of .SOURCE.c and .SOURCE.h to include the local 7 | # directory. 8 | # 9 | osrdir := $(OS)$(DIRSEPSTR)$(OSRELEASE) 10 | 11 | # The following are required sources 12 | OSDSRC := 13 | .IF $(OSDSRC) 14 | SRC += $(OSDSRC) 15 | .SETDIR=$(osrdir) : $(OSDSRC) 16 | .END 17 | 18 | .SOURCE.h : $(osrdir) 19 | 20 | # Local configuration modifications for CFLAGS, there's local SysV includes 21 | # too. 22 | CFLAGS += -I$(osrdir) -DM_XENIX 23 | 24 | # See if we modify anything in the lower levels. 25 | .IF $(OSENVIRONMENT) != $(NULL) 26 | .INCLUDE .IGNORE : $(osrdir)$(DIRSEPSTR)$(OSENVIRONMENT)$(DIRSEPSTR)config.mk 27 | .END 28 | -------------------------------------------------------------------------------- /winnt/startup.h: -------------------------------------------------------------------------------- 1 | /* RCS $Id: startup.h,v 1.2 2006-04-20 12:25:19 hr Exp $ 2 | -- 3 | -- SYNOPSIS 4 | -- Definition of MAKESTARTUP 5 | -- 6 | -- DESCRIPTION 7 | -- Default MAKESTARTUP value defining where dmake locates the 8 | -- startup file. 9 | -- 10 | -- AUTHOR 11 | -- Dennis Vadura, dvadura@dmake.wticorp.com 12 | -- 13 | -- WWW 14 | -- http://dmake.wticorp.com/ 15 | -- 16 | -- COPYRIGHT 17 | -- Copyright (c) 1996,1997 by WTI Corp. All rights reserved. 18 | -- 19 | -- This program is NOT free software; you can redistribute it and/or 20 | -- modify it under the terms of the Software License Agreement Provided 21 | -- in the file /COPYING. 22 | -- 23 | -- LOG 24 | -- Use cvs log to obtain detailed change logs. 25 | */ 26 | 27 | "DMAKEROOT *= $(ABSMAKECMD:d)startup", 28 | "MAKESTARTUP := $(DMAKEROOT)\\startup.mk", 29 | 30 | -------------------------------------------------------------------------------- /unix/sysvr1/config.mk: -------------------------------------------------------------------------------- 1 | # This is the SysV R3 UNIX configuration file for DMAKE 2 | # It simply modifies the values of SRC, and checks to see if 3 | # OSENVIRONMENT is defined. If so it includes the appropriate 4 | # config.mk file. 5 | # 6 | # It also sets the values of .SOURCE.c and .SOURCE.h to include the local 7 | # directory. 8 | # 9 | osrdir := $(OS)$(DIRSEPSTR)$(OSRELEASE) 10 | 11 | # The following are required sources 12 | OSDSRC := vfprintf.c 13 | 14 | .IF $(OSDSRC) 15 | SRC += $(OSDSRC) 16 | .SETDIR=$(osrdir) : $(OSDSRC) 17 | .END 18 | 19 | .SOURCE.h : $(osrdir) 20 | 21 | # Local configuration modifications for CFLAGS, there's local SysV includes 22 | # too. 23 | CFLAGS += -I$(osrdir) 24 | 25 | # See if we modify anything in the lower levels. 26 | .IF $(OSENVIRONMENT) != $(NULL) 27 | .INCLUDE .IGNORE : $(osrdir)$(DIRSEPSTR)$(OSENVIRONMENT)$(DIRSEPSTR)config.mk 28 | .END 29 | -------------------------------------------------------------------------------- /qssl/startup.h: -------------------------------------------------------------------------------- 1 | /* RCS $Id: startup.h,v 1.2 2006-04-20 12:09:40 hr Exp $ 2 | -- 3 | -- SYNOPSIS 4 | -- Definition of MAKESTARTUP 5 | -- 6 | -- DESCRIPTION 7 | -- Default MAKESTARTUP value defining where dmake locates the 8 | -- startup file. 9 | -- 10 | -- AUTHOR 11 | -- Dennis Vadura, dvadura@dmake.wticorp.com 12 | -- 13 | -- WWW 14 | -- http://dmake.wticorp.com/ 15 | -- 16 | -- COPYRIGHT 17 | -- Copyright (c) 1996,1997 by WTI Corp. All rights reserved. 18 | -- 19 | -- This program is NOT free software; you can redistribute it and/or 20 | -- modify it under the terms of the Software License Agreement Provided 21 | -- in the file /COPYING. 22 | -- 23 | -- LOG 24 | -- Use cvs log to obtain detailed change logs. 25 | */ 26 | 27 | "DMAKEROOT *:= $(ROOTDIR)/usr/local/lib/dmake/startup", 28 | "MAKESTARTUP := $(DMAKEROOT)/startup.mk", 29 | -------------------------------------------------------------------------------- /unix/386ix/time.h: -------------------------------------------------------------------------------- 1 | /* RCS $Id: time.h,v 1.1.1.1 2000-09-22 15:33:33 hr Exp $ 2 | -- 3 | -- SYNOPSIS 4 | -- time_t 5 | -- 6 | -- DESCRIPTION 7 | -- Properly define time_t. 8 | -- 9 | -- AUTHOR 10 | -- Dennis Vadura, dvadura@dmake.wticorp.com 11 | -- 12 | -- WWW 13 | -- http://dmake.wticorp.com/ 14 | -- 15 | -- COPYRIGHT 16 | -- Copyright (c) 1996,1997 by WTI Corp. All rights reserved. 17 | -- 18 | -- This program is NOT free software; you can redistribute it and/or 19 | -- modify it under the terms of the Software License Agreement Provided 20 | -- in the file /COPYING. 21 | -- 22 | -- LOG 23 | -- Use cvs log to obtain detailed change logs. 24 | */ 25 | 26 | /* 27 | ** Berkeley get this wrong! 28 | */ 29 | #ifndef TIME_h 30 | #define TIME_h 31 | 32 | typedef long time_t; /* this is the thing we use */ 33 | 34 | #endif TIME_h 35 | 36 | -------------------------------------------------------------------------------- /msdos/borland/bcc30/objswp.rsp: -------------------------------------------------------------------------------- 1 | e:\cc\borland\bcc30\lib\c0l.obj+ 2 | objects\exec.obj+ 3 | objects\infer.obj+ 4 | objects\make.obj+ 5 | objects\stat.obj+ 6 | objects\expand.obj+ 7 | objects\dmstring.obj+ 8 | objects\hash.obj+ 9 | objects\dag.obj+ 10 | objects\dmake.obj+ 11 | objects\path.obj+ 12 | objects\imacs.obj+ 13 | objects\sysintf.obj+ 14 | objects\parse.obj+ 15 | objects\getinp.obj+ 16 | objects\quit.obj+ 17 | objects\state.obj+ 18 | objects\dmdump.obj+ 19 | objects\macparse.obj+ 20 | objects\rulparse.obj+ 21 | objects\percent.obj+ 22 | objects\function.obj+ 23 | objects\ruletab.obj+ 24 | objects\dirbrk.obj+ 25 | objects\runargv.obj+ 26 | objects\arlib.obj+ 27 | objects\dchdir.obj+ 28 | objects\switchar.obj+ 29 | objects\rmprq.obj+ 30 | objects\spawn.obj+ 31 | objects\find.obj+ 32 | objects\dirlib.obj+ 33 | objects\dstrlwr.obj+ 34 | objects\dcache.obj+ 35 | objects\tempnam.obj+ 36 | objects\utime.obj 37 | -------------------------------------------------------------------------------- /msdos/borland/bcc40/objswp.rsp: -------------------------------------------------------------------------------- 1 | e:\cc\borland\bcc40\lib\c0l.obj+ 2 | objects\exec.obj+ 3 | objects\infer.obj+ 4 | objects\make.obj+ 5 | objects\stat.obj+ 6 | objects\expand.obj+ 7 | objects\dmstring.obj+ 8 | objects\hash.obj+ 9 | objects\dag.obj+ 10 | objects\dmake.obj+ 11 | objects\path.obj+ 12 | objects\imacs.obj+ 13 | objects\sysintf.obj+ 14 | objects\parse.obj+ 15 | objects\getinp.obj+ 16 | objects\quit.obj+ 17 | objects\state.obj+ 18 | objects\dmdump.obj+ 19 | objects\macparse.obj+ 20 | objects\rulparse.obj+ 21 | objects\percent.obj+ 22 | objects\function.obj+ 23 | objects\ruletab.obj+ 24 | objects\dirbrk.obj+ 25 | objects\runargv.obj+ 26 | objects\arlib.obj+ 27 | objects\dchdir.obj+ 28 | objects\switchar.obj+ 29 | objects\rmprq.obj+ 30 | objects\spawn.obj+ 31 | objects\find.obj+ 32 | objects\dirlib.obj+ 33 | objects\dstrlwr.obj+ 34 | objects\dcache.obj+ 35 | objects\tempnam.obj+ 36 | objects\utime.obj 37 | -------------------------------------------------------------------------------- /msdos/borland/bcc45/objswp.rsp: -------------------------------------------------------------------------------- 1 | e:\cc\borland\bcc40\lib\c0l.obj+ 2 | objects\exec.obj+ 3 | objects\infer.obj+ 4 | objects\make.obj+ 5 | objects\stat.obj+ 6 | objects\expand.obj+ 7 | objects\dmstring.obj+ 8 | objects\hash.obj+ 9 | objects\dag.obj+ 10 | objects\dmake.obj+ 11 | objects\path.obj+ 12 | objects\imacs.obj+ 13 | objects\sysintf.obj+ 14 | objects\parse.obj+ 15 | objects\getinp.obj+ 16 | objects\quit.obj+ 17 | objects\state.obj+ 18 | objects\dmdump.obj+ 19 | objects\macparse.obj+ 20 | objects\rulparse.obj+ 21 | objects\percent.obj+ 22 | objects\function.obj+ 23 | objects\ruletab.obj+ 24 | objects\dirbrk.obj+ 25 | objects\runargv.obj+ 26 | objects\arlib.obj+ 27 | objects\dchdir.obj+ 28 | objects\switchar.obj+ 29 | objects\rmprq.obj+ 30 | objects\spawn.obj+ 31 | objects\find.obj+ 32 | objects\dirlib.obj+ 33 | objects\dstrlwr.obj+ 34 | objects\dcache.obj+ 35 | objects\tempnam.obj+ 36 | objects\utime.obj 37 | -------------------------------------------------------------------------------- /msdos/borland/bcc50/objswp.rsp: -------------------------------------------------------------------------------- 1 | e:\cc\borland\bcc40\lib\c0l.obj+ 2 | objects\exec.obj+ 3 | objects\infer.obj+ 4 | objects\make.obj+ 5 | objects\stat.obj+ 6 | objects\expand.obj+ 7 | objects\dmstring.obj+ 8 | objects\hash.obj+ 9 | objects\dag.obj+ 10 | objects\dmake.obj+ 11 | objects\path.obj+ 12 | objects\imacs.obj+ 13 | objects\sysintf.obj+ 14 | objects\parse.obj+ 15 | objects\getinp.obj+ 16 | objects\quit.obj+ 17 | objects\state.obj+ 18 | objects\dmdump.obj+ 19 | objects\macparse.obj+ 20 | objects\rulparse.obj+ 21 | objects\percent.obj+ 22 | objects\function.obj+ 23 | objects\ruletab.obj+ 24 | objects\dirbrk.obj+ 25 | objects\runargv.obj+ 26 | objects\arlib.obj+ 27 | objects\dchdir.obj+ 28 | objects\switchar.obj+ 29 | objects\rmprq.obj+ 30 | objects\spawn.obj+ 31 | objects\find.obj+ 32 | objects\dirlib.obj+ 33 | objects\dstrlwr.obj+ 34 | objects\dcache.obj+ 35 | objects\tempnam.obj+ 36 | objects\utime.obj 37 | -------------------------------------------------------------------------------- /msdos/borland/tcc20/objswp.rsp: -------------------------------------------------------------------------------- 1 | e:\cc\borland\tcc20\lib\c0l.obj+ 2 | objects\exec.obj+ 3 | objects\infer.obj+ 4 | objects\make.obj+ 5 | objects\stat.obj+ 6 | objects\expand.obj+ 7 | objects\dmstring.obj+ 8 | objects\hash.obj+ 9 | objects\dag.obj+ 10 | objects\dmake.obj+ 11 | objects\path.obj+ 12 | objects\imacs.obj+ 13 | objects\sysintf.obj+ 14 | objects\parse.obj+ 15 | objects\getinp.obj+ 16 | objects\quit.obj+ 17 | objects\state.obj+ 18 | objects\dmdump.obj+ 19 | objects\macparse.obj+ 20 | objects\rulparse.obj+ 21 | objects\percent.obj+ 22 | objects\function.obj+ 23 | objects\ruletab.obj+ 24 | objects\dirbrk.obj+ 25 | objects\runargv.obj+ 26 | objects\arlib.obj+ 27 | objects\dchdir.obj+ 28 | objects\switchar.obj+ 29 | objects\rmprq.obj+ 30 | objects\spawn.obj+ 31 | objects\find.obj+ 32 | objects\dirlib.obj+ 33 | objects\dstrlwr.obj+ 34 | objects\dcache.obj+ 35 | objects\tempnam.obj+ 36 | objects\utime.obj 37 | -------------------------------------------------------------------------------- /unix/bsd43/config.mk: -------------------------------------------------------------------------------- 1 | # This is the BSD 4.3 UNIX configuration file for DMAKE 2 | # It simply modifies the values of SRC, and checks to see if 3 | # OSENVIRONMENT is defined. If so it includes the appropriate 4 | # config.mk file. 5 | # 6 | # It also sets the values of .SOURCE.c and .SOURCE.h to include the local 7 | # directory. 8 | # 9 | osrdir := $(OS)$(DIRSEPSTR)$(OSRELEASE) 10 | 11 | # The following sources are required for BSD4.3 12 | OSDSRC := putenv.c tempnam.c utime.c setvbuf.c 13 | .IF $(OSDSRC) 14 | SRC += $(OSDSRC) 15 | .SETDIR=$(osrdir) : $(OSDSRC) 16 | .END 17 | 18 | .SOURCE.h : $(osrdir) 19 | 20 | # Local configuration modifications for CFLAGS, there's local BSD includes 21 | # too. 22 | CFLAGS += -I$(osrdir) 23 | 24 | # See if we modify anything in the lower levels. 25 | .IF $(OSENVIRONMENT) != $(NULL) 26 | .INCLUDE .IGNORE : $(osrdir)$(DIRSEPSTR)$(OSENVIRONMENT)$(DIRSEPSTR)config.mk 27 | .END 28 | -------------------------------------------------------------------------------- /unix/bsdarm32/config.mk: -------------------------------------------------------------------------------- 1 | # This is the BSD 4.3 UNIX configuration file for DMAKE 2 | # It simply modifies the values of SRC, and checks to see if 3 | # OSENVIRONMENT is defined. If so it includes the appropriate 4 | # config.mk file. 5 | # 6 | # It also sets the values of .SOURCE.c and .SOURCE.h to include the local 7 | # directory. 8 | # 9 | osrdir := $(OS)$(DIRSEPSTR)$(OSRELEASE) 10 | 11 | # The following sources are required for BSD4.3 12 | OSDSRC := putenv.c tempnam.c utime.c setvbuf.c 13 | .IF $(OSDSRC) 14 | SRC += $(OSDSRC) 15 | .SETDIR=$(osrdir) : $(OSDSRC) 16 | .END 17 | 18 | .SOURCE.h : $(osrdir) 19 | 20 | # Local configuration modifications for CFLAGS, there's local BSD includes 21 | # too. 22 | CFLAGS += -I$(osrdir) 23 | 24 | # See if we modify anything in the lower levels. 25 | .IF $(OSENVIRONMENT) != $(NULL) 26 | .INCLUDE .IGNORE : $(osrdir)$(DIRSEPSTR)$(OSENVIRONMENT)$(DIRSEPSTR)config.mk 27 | .END 28 | -------------------------------------------------------------------------------- /unix/solaris/config.mk: -------------------------------------------------------------------------------- 1 | # This is the BSD 4.3 UNIX configuration file for DMAKE 2 | # It simply modifies the values of SRC, and checks to see if 3 | # OSENVIRONMENT is defined. If so it includes the appropriate 4 | # config.mk file. 5 | # 6 | # It also sets the values of .SOURCE.c and .SOURCE.h to include the local 7 | # directory. 8 | # 9 | osrdir := $(OS)$(DIRSEPSTR)$(OSRELEASE) 10 | 11 | # The following sources are required for Solaris 2.1 or greater 12 | OSDSRC := tempnam.c getcwd.c 13 | .IF $(OSDSRC) 14 | SRC += $(OSDSRC) 15 | .SETDIR=$(osrdir) : $(OSDSRC) 16 | .END 17 | 18 | .SOURCE.h : $(osrdir) 19 | 20 | # Local configuration modifications for CFLAGS, there's local BSD includes 21 | # too. 22 | CFLAGS += -I$(osrdir) -DSolaris 23 | 24 | # See if we modify anything in the lower levels. 25 | .IF $(OSENVIRONMENT) != $(NULL) 26 | .INCLUDE .IGNORE : $(osrdir)$(DIRSEPSTR)$(OSENVIRONMENT)$(DIRSEPSTR)config.mk 27 | .END 28 | -------------------------------------------------------------------------------- /unix/bsd43/limits.h: -------------------------------------------------------------------------------- 1 | /* RCS $Id: limits.h,v 1.1.1.1 2000-09-22 15:33:33 hr Exp $ 2 | -- 3 | -- SYNOPSIS 4 | -- limits 5 | -- 6 | -- DESCRIPTION 7 | -- Compensate for systems that don't have a limits.h header file. 8 | -- 9 | -- AUTHOR 10 | -- Dennis Vadura, dvadura@dmake.wticorp.com 11 | -- 12 | -- WWW 13 | -- http://dmake.wticorp.com/ 14 | -- 15 | -- COPYRIGHT 16 | -- Copyright (c) 1996,1997 by WTI Corp. All rights reserved. 17 | -- 18 | -- This program is NOT free software; you can redistribute it and/or 19 | -- modify it under the terms of the Software License Agreement Provided 20 | -- in the file /COPYING. 21 | -- 22 | -- LOG 23 | -- Use cvs log to obtain detailed change logs. 24 | */ 25 | 26 | #include 27 | #include 28 | #include 29 | 30 | #define NAME_MAX MAXNAMLEN 31 | #define PATH_MAX MAXPATHLEN 32 | #define CHILD_MAX 20 33 | -------------------------------------------------------------------------------- /unix/bsd43/vf/memcpy.c: -------------------------------------------------------------------------------- 1 | /* RCS $Id: memcpy.c,v 1.1.1.1 2000-09-22 15:33:34 hr Exp $ 2 | -- 3 | -- SYNOPSIS 4 | -- memcpy 5 | -- 6 | -- DESCRIPTION 7 | -- BSD didn't have this in the library many moons ago. 8 | -- 9 | -- AUTHOR 10 | -- Dennis Vadura, dvadura@dmake.wticorp.com 11 | -- 12 | -- WWW 13 | -- http://dmake.wticorp.com/ 14 | -- 15 | -- COPYRIGHT 16 | -- Copyright (c) 1996,1997 by WTI Corp. All rights reserved. 17 | -- 18 | -- This program is NOT free software; you can redistribute it and/or 19 | -- modify it under the terms of the Software License Agreement Provided 20 | -- in the file /COPYING. 21 | -- 22 | -- LOG 23 | -- Use cvs log to obtain detailed change logs. 24 | */ 25 | 26 | char * 27 | memcpy(t, f, n) 28 | register char *t, *f; 29 | register n; 30 | { 31 | register char *p = t; 32 | 33 | while( --n >= 0 ) *t++ = *f++; 34 | 35 | return (p); 36 | } 37 | -------------------------------------------------------------------------------- /startup/os2/ibm/macros.mk: -------------------------------------------------------------------------------- 1 | # OS/2 1.3 and 2.1 specific customization. 2 | 3 | # Standard C-language command names and flags 4 | CC *:= icc # C compiler 5 | CPP *:= # C-preprocessor 6 | CFLAGS *= # C compiler flags 7 | "C++" *:= # C++ Compiler 8 | "C++FLAGS" *= # C++ Compiler flags 9 | 10 | AS *:= masm # Assembler and flags 11 | ASFLAGS *= 12 | LD *= link386 # Loader and flags 13 | LDFLAGS *= 14 | LDLIBS *= # Default libraries 15 | AR *:= lib # archiver 16 | ARFLAGS *= ???? 17 | 18 | # Definition of Print command for this system. 19 | PRINT *= print 20 | 21 | # Language and Parser generation Tools and their flags 22 | YACC *:= yacc # standard yacc 23 | YFLAGS *= 24 | LEX *:= lex # standard lex 25 | LFLAGS *= 26 | 27 | # Other Compilers, Tools and their flags 28 | PC *:= ??? # pascal compiler 29 | RC *:= ??? # ratfor compiler 30 | FC *:= ??? # fortran compiler 31 | -------------------------------------------------------------------------------- /startup/msdos/zortech/macros.mk: -------------------------------------------------------------------------------- 1 | # MSDOS Zortech-C environment customization. 2 | 3 | # Standard C-language command names and flags 4 | CC *:= ztc # C compiler 5 | CPP *:= # C-preprocessor 6 | CFLAGS *= # C compiler flags 7 | "C++" *:= # C++ Compiler 8 | "C++FLAGS" *= # C++ Compiler flags 9 | 10 | AS *:= masm # Assembler and flags 11 | ASFLAGS *= 12 | LD *= blink # Loader and flags 13 | LDFLAGS *= 14 | LDLIBS *= # Default libraries 15 | AR *:= ???? # archiver 16 | ARFLAGS *= ???? 17 | 18 | # Definition of Print command for this system. 19 | PRINT *= print 20 | 21 | # Language and Parser generation Tools and their flags 22 | YACC *:= yacc # standard yacc 23 | YFLAGS *= 24 | LEX *:= lex # standard lex 25 | LFLAGS *= 26 | 27 | # Other Compilers, Tools and their flags 28 | PC *:= ??? # pascal compiler 29 | RC *:= ??? # ratfor compiler 30 | FC *:= ??? # fortran compiler 31 | -------------------------------------------------------------------------------- /tests/targets-17: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | 3 | # 08.10.2006 Volker Quetschke 4 | # Check that empty dynamic prerequisites are handled correctly. 5 | # (issue 70210) 6 | 7 | : ${DMAKEPROG:=dmake} 8 | file1="mfile1.mk" 9 | tmpfiles="$file1" 10 | STARTDIR="`pwd`"; WORKDIR="$0-OUTPUT" 11 | CLEANUP="eval (cd $STARTDIR; rm -rf $WORKDIR)" 12 | $CLEANUP # Zap remnants of any failed run 13 | mkdir "$WORKDIR"; cd "$WORKDIR" 14 | 15 | trap "{ echo 'trapped signal - removing temporary files' ; $CLEANUP ; }" 1 2 3 15 16 | 17 | # Remember to quote variables in generated makefiles( $ -> \$ ). 18 | cat > $file1 <&1 ` 29 | result1=$? 30 | 31 | 32 | if test $result1 -eq 0 ; then 33 | echo "Success - Cleaning up" 34 | $CLEANUP 35 | else 36 | echo "Failure! dmake reported:" 37 | echo "$output1" 38 | fi 39 | exit $result1 40 | -------------------------------------------------------------------------------- /msdos/dirent.h: -------------------------------------------------------------------------------- 1 | /* DIRLIB.H by M. J. Weinstein Released to public domain 1-Jan-89 */ 2 | 3 | #ifndef _DIRLIB_h_ 4 | #define _DIRLIB_h_ 5 | 6 | #include 7 | #include "stdmacs.h" 8 | #include "dosdta.h" 9 | 10 | #define MAXNAMLEN 15 11 | 12 | struct dirent { 13 | long d_ino; 14 | unsigned short d_reclen; 15 | unsigned short d_namlen; 16 | char d_name[MAXNAMLEN+1]; 17 | }; 18 | 19 | typedef struct { 20 | DTA dd_dta; /* disk transfer area for this dir. */ 21 | short dd_stat; /* status return from last lookup */ 22 | char dd_name[1]; /* full name of file -- struct is extended */ 23 | } DIR; 24 | 25 | extern DIR *opendir ANSI((char *)); 26 | extern struct dirent *readdir ANSI((DIR *)); 27 | extern long telldir ANSI((DIR *)); 28 | extern void seekdir ANSI((DIR *, long)); 29 | extern void closedir ANSI((DIR *)); 30 | 31 | #define rewinddir(dirp) seekdir(dirp,0L) 32 | #endif 33 | -------------------------------------------------------------------------------- /tests/recipes-1: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | 3 | # 01.06.2005 Volker Quetschke 4 | # Tests for line continuation in recipes. 5 | # (issue 37053) 6 | 7 | : ${DMAKEPROG:=dmake} 8 | file1="mymakefile.mk" 9 | tmpfiles="$file1" 10 | STARTDIR="`pwd`"; WORKDIR="$0-OUTPUT" 11 | CLEANUP="eval (cd $STARTDIR; rm -rf $WORKDIR)" 12 | $CLEANUP # Zap remnants of any failed run 13 | mkdir "$WORKDIR"; cd "$WORKDIR" 14 | 15 | trap "{ echo 'trapped signal - removing temporary files' ; $CLEANUP ; }" 1 2 3 15 16 | 17 | # Remember to quote variables in generated makefiles( $ -> \$ ). 18 | cat > $file1 < \$ ). 18 | cat > $file1 <= "122" 26 | +@echo "true" 27 | .ELSE 28 | +@echo "false" 29 | .ENDIF 30 | 31 | EOT 32 | 33 | output=`eval ../${DMAKEPROG} -r -f $file1` 34 | result=$? 35 | 36 | if test "$output" != "false"; then 37 | result=1 38 | fi 39 | 40 | test $result -eq 0 && echo "Success - Cleaning up" && $CLEANUP 41 | test $result -ne 0 && echo "Failure!" 42 | exit $result 43 | -------------------------------------------------------------------------------- /qssl/sysintf.h: -------------------------------------------------------------------------------- 1 | /* RCS $Id: sysintf.h,v 1.2 2007-01-18 09:37:51 vg Exp $ 2 | -- 3 | -- SYNOPSIS 4 | -- Interfaces for sysintf.c 5 | -- 6 | -- DESCRIPTION 7 | -- Abstractions of functions in sysintf.c 8 | -- 9 | -- AUTHOR 10 | -- Dennis Vadura, dvadura@dmake.wticorp.com 11 | -- 12 | -- WWW 13 | -- http://dmake.wticorp.com/ 14 | -- 15 | -- COPYRIGHT 16 | -- Copyright (c) 1996,1997 by WTI Corp. All rights reserved. 17 | -- 18 | -- This program is NOT free software; you can redistribute it and/or 19 | -- modify it under the terms of the Software License Agreement Provided 20 | -- in the file /COPYING. 21 | -- 22 | -- LOG 23 | -- Use cvs log to obtain detailed change logs. 24 | */ 25 | 26 | #define DMSTAT stat 27 | #define VOID_LCACHE(l,m) 28 | #define Hook_std_writes(A) 29 | #define GETPID getpid() 30 | 31 | /* 32 | ** standard C items 33 | */ 34 | 35 | /* 36 | ** DOS interface standard items 37 | */ 38 | #define getswitchar() '-' 39 | 40 | /* 41 | ** make parameters 42 | */ 43 | -------------------------------------------------------------------------------- /os2/dchdir.c: -------------------------------------------------------------------------------- 1 | /* RCS $Id: dchdir.c,v 1.1.1.1 2000-09-22 15:33:30 hr Exp $ 2 | -- 3 | -- SYNOPSIS 4 | -- Change directory. 5 | -- 6 | -- DESCRIPTION 7 | -- Under DOS change the current drive as well as the current directory. 8 | -- 9 | -- AUTHOR 10 | -- Dennis Vadura, dvadura@dmake.wticorp.com 11 | -- 12 | -- WWW 13 | -- http://dmake.wticorp.com/ 14 | -- 15 | -- COPYRIGHT 16 | -- Copyright (c) 1996,1997 by WTI Corp. All rights reserved. 17 | -- 18 | -- This program is NOT free software; you can redistribute it and/or 19 | -- modify it under the terms of the Software License Agreement Provided 20 | -- in the file /COPYING. 21 | -- 22 | -- LOG 23 | -- Use cvs log to obtain detailed change logs. 24 | */ 25 | 26 | #include 27 | #include "extern.h" 28 | 29 | PUBLIC int 30 | _dchdir(path) 31 | char *path; 32 | { 33 | int res; 34 | 35 | res = _chdir(path); 36 | 37 | if (res == 0 && path[1] == ':') 38 | DosSelectDisk((*path & ~0x20) - '@'); 39 | 40 | return (res); 41 | } 42 | -------------------------------------------------------------------------------- /startup/msdos/borland/macros.mk: -------------------------------------------------------------------------------- 1 | # MSDOS Borland-C environment customization. 2 | 3 | .IF $(OSENVIRONMENT) 4 | .INCLUDE .IGNORE .NOINFER : $(INCFILENAME:d)$(OSENVIRONMENT)$/macros.mk 5 | .ENDIF 6 | 7 | # Standard C-language command names and flags 8 | CPP *:= # C-preprocessor 9 | CFLAGS *= # C compiler flags 10 | "C++" *:= # C++ Compiler 11 | "C++FLAGS" *= # C++ Compiler flags 12 | 13 | AS *:= tasm # Assembler and flags 14 | ASFLAGS *= 15 | LD *= tlink # Loader and flags 16 | LDFLAGS *= 17 | LDLIBS *= # Default libraries 18 | AR *:= tlib # archiver 19 | ARFLAGS *= ???? 20 | 21 | # Definition of Print command for this system. 22 | PRINT *= print 23 | 24 | # Language and Parser generation Tools and their flags 25 | YACC *:= yacc # standard yacc 26 | YFLAGS *= 27 | LEX *:= lex # standard lex 28 | LFLAGS *= 29 | 30 | # Other Compilers, Tools and their flags 31 | PC *:= tpc # pascal compiler 32 | RC *:= ??? # ratfor compiler 33 | FC *:= ??? # fortran compiler 34 | -------------------------------------------------------------------------------- /tests/misc-21: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | 3 | # 13.10.2007 Volker Quetschke 4 | # Check that SHELLCMDQUOTE adds the characters to the command. 5 | # issue 81252 6 | 7 | : ${DMAKEPROG:=dmake} 8 | file1="mfile1.mk" 9 | tmpfiles="$file1" 10 | STARTDIR="`pwd`"; WORKDIR="$0-OUTPUT" 11 | CLEANUP="eval (cd $STARTDIR; rm -rf $WORKDIR)" 12 | $CLEANUP # Zap remnants of any failed run 13 | mkdir "$WORKDIR"; cd "$WORKDIR" 14 | 15 | trap "{ echo 'trapped signal - removing temporary files' ; $CLEANUP ; }" 1 2 3 15 16 | 17 | # Remember to quote variables in generated makefiles ( $ -> \$ ). 18 | cat > $file1 < \$ ). 18 | cat > $file1 <&1 ` 29 | result1=$? 30 | 31 | if test $output1 = "WRITTENTODISK" ; then 32 | dummy=1 33 | # OK 34 | else 35 | echo "Wrong result: $output1" 36 | result1=1 37 | fi 38 | 39 | test $result1 -eq 0 && echo "Success - Cleaning up" && $CLEANUP 40 | test $result1 -ne 0 && echo "Failure!" 41 | exit $result1 42 | -------------------------------------------------------------------------------- /tests/recipes-2: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | 3 | # 24.07.2006 Volker Quetschke 4 | # Simple tests for group recipes. 5 | # (issue 64583) 6 | 7 | : ${DMAKEPROG:=dmake} 8 | file1="mymakefile.mk" 9 | tmpfiles="$file1" 10 | STARTDIR="`pwd`"; WORKDIR="$0-OUTPUT" 11 | CLEANUP="eval (cd $STARTDIR; rm -rf $WORKDIR)" 12 | $CLEANUP # Zap remnants of any failed run 13 | mkdir "$WORKDIR"; cd "$WORKDIR" 14 | 15 | trap "{ echo 'trapped signal - removing temporary files' ; $CLEANUP ; }" 1 2 3 15 16 | 17 | # Remember to quote variables in generated makefiles( $ -> \$ ). 18 | cat > $file1 < \$ ). 19 | cat > $file1 </COPYING. 21 | -- 22 | -- LOG 23 | -- Use cvs log to obtain detailed change logs. 24 | */ 25 | 26 | #include 27 | 28 | setvbuf(fp, bp, type, len_unused) 29 | FILE* fp; 30 | char* bp; 31 | int type; 32 | int len_unused; 33 | { 34 | switch (type) { 35 | case _IOLBF: setlinebuf(fp); return; 36 | case _IONBF: setbuf(fp, NULL); return; 37 | default: setbuf(fp, bp); return; 38 | } 39 | } 40 | 41 | -------------------------------------------------------------------------------- /startup/win95/borland/macros.mk: -------------------------------------------------------------------------------- 1 | # MSDOS Borland-C environment customization. 2 | 3 | .IF $(OSENVIRONMENT) 4 | .INCLUDE .IGNORE .NOINFER : $(INCFILENAME:d)$(OSENVIRONMENT)$/macros.mk 5 | .ENDIF 6 | 7 | # Standard C-language command names and flags 8 | CPP *:= # C-preprocessor 9 | CC *:= bcc32 10 | CFLAGS *= # C compiler flags 11 | "C++" *:= # C++ Compiler 12 | "C++FLAGS" *= # C++ Compiler flags 13 | 14 | AS *:= tasm # Assembler and flags 15 | ASFLAGS *= 16 | LD *= tlink32 # Loader and flags 17 | LDFLAGS *= 18 | LDLIBS *= # Default libraries 19 | AR *:= tlib # archiver 20 | ARFLAGS *= ???? 21 | 22 | # Definition of Print command for this system. 23 | PRINT *= print 24 | 25 | # Language and Parser generation Tools and their flags 26 | YACC *:= yacc # standard yacc 27 | YFLAGS *= 28 | LEX *:= lex # standard lex 29 | LFLAGS *= 30 | 31 | # Other Compilers, Tools and their flags 32 | PC *:= tpc # pascal compiler 33 | RC *:= ??? # ratfor compiler 34 | FC *:= ??? # fortran compiler 35 | -------------------------------------------------------------------------------- /startup/winnt/borland/macros.mk: -------------------------------------------------------------------------------- 1 | # MSDOS Borland-C environment customization. 2 | 3 | .IF $(OSENVIRONMENT) 4 | .INCLUDE .IGNORE .NOINFER : $(INCFILENAME:d)$(OSENVIRONMENT)$/macros.mk 5 | .ENDIF 6 | 7 | # Standard C-language command names and flags 8 | CPP *:= # C-preprocessor 9 | CC *:= bcc32 10 | CFLAGS *= # C compiler flags 11 | "C++" *:= # C++ Compiler 12 | "C++FLAGS" *= # C++ Compiler flags 13 | 14 | AS *:= tasm # Assembler and flags 15 | ASFLAGS *= 16 | LD *= tlink32 # Loader and flags 17 | LDFLAGS *= 18 | LDLIBS *= # Default libraries 19 | AR *:= tlib # archiver 20 | ARFLAGS *= ???? 21 | 22 | # Definition of Print command for this system. 23 | PRINT *= print 24 | 25 | # Language and Parser generation Tools and their flags 26 | YACC *:= yacc # standard yacc 27 | YFLAGS *= 28 | LEX *:= lex # standard lex 29 | LFLAGS *= 30 | 31 | # Other Compilers, Tools and their flags 32 | PC *:= tpc # pascal compiler 33 | RC *:= ??? # ratfor compiler 34 | FC *:= ??? # fortran compiler 35 | -------------------------------------------------------------------------------- /tests/misc-12: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | 3 | # 22.06.2006 Volker Quetschke 4 | # Conditional expressions failed before with line continuations. 5 | # (issue 66659) 6 | 7 | : ${DMAKEPROG:=dmake} 8 | file1="mfile1.mk" 9 | tmpfiles="$file1" 10 | STARTDIR="`pwd`"; WORKDIR="$0-OUTPUT" 11 | CLEANUP="eval (cd $STARTDIR; rm -rf $WORKDIR)" 12 | $CLEANUP # Zap remnants of any failed run 13 | mkdir "$WORKDIR"; cd "$WORKDIR" 14 | 15 | trap "{ echo 'trapped signal - removing temporary files' ; $CLEANUP ; }" 1 2 3 15 16 | 17 | # Remember to quote variables in generated makefiles ( $ -> \$ ). 18 | # Also quote line continuations ( \ -> \\ ). 19 | cat > $file1 < \$ ). 19 | # Check that we don't issue an error. 20 | cat > $file1 <&1 ` 29 | result1=$? 30 | 31 | if test $result1 -eq 0 ; then 32 | echo "Success - Cleaning up" 33 | $CLEANUP 34 | result=0 35 | else 36 | echo "Failure! dmake failed with error." 37 | result=1 38 | fi 39 | exit $result 40 | -------------------------------------------------------------------------------- /tests/recipes-4: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | 3 | # 29.07.2006 Volker Quetschke 4 | # Test builtin echo command. 5 | # (issue 67589) 6 | 7 | : ${DMAKEPROG:=dmake} 8 | file1="mymakefile.mk" 9 | tmpfiles="$file1" 10 | STARTDIR="`pwd`"; WORKDIR="$0-OUTPUT" 11 | CLEANUP="eval (cd $STARTDIR; rm -rf $WORKDIR)" 12 | $CLEANUP # Zap remnants of any failed run 13 | mkdir "$WORKDIR"; cd "$WORKDIR" 14 | 15 | trap "{ echo 'trapped signal - removing temporary files' ; $CLEANUP ; }" 1 2 3 15 16 | 17 | # Remember to quote variables in generated makefiles( $ -> \$ ). 18 | cat > $file1 < \$ ). 20 | cat > $file1 < $file2 29 | +echo A\$(shell cat $file2)A 30 | EOT 31 | 32 | ../${DMAKEPROG} -P2 -r -f $file1 33 | result=$? 34 | 35 | test $result -eq 0 && echo "Success - Cleaning up" && $CLEANUP 36 | test $result -ne 0 && echo "Failure!" 37 | exit $result 38 | -------------------------------------------------------------------------------- /startup/msdos/microsft/macros.mk: -------------------------------------------------------------------------------- 1 | # MSDOS Microsoft-C environment customization. 2 | 3 | .IF $(OSENVIRONMENT) 4 | .INCLUDE .IGNORE .NOINFER : $(INCFILENAME:d)$(OSENVIRONMENT)$/macros.mk 5 | .ENDIF 6 | 7 | # Standard C-language command names and flags 8 | CC *:= cl # C compiler 9 | CPP *:= # C-preprocessor 10 | CFLAGS *= # C compiler flags 11 | "C++" *:= # C++ Compiler 12 | "C++FLAGS" *= # C++ Compiler flags 13 | 14 | AS *:= masm # Assembler and flags 15 | ASFLAGS *= 16 | LD *= link # Loader and flags 17 | LDFLAGS *= 18 | LDLIBS *= # Default libraries 19 | AR *:= lib # archiver 20 | ARFLAGS *= ???? 21 | 22 | # Definition of Print command for this system. 23 | PRINT *= print 24 | 25 | # Language and Parser generation Tools and their flags 26 | YACC *:= yacc # standard yacc 27 | YFLAGS *= 28 | LEX *:= lex # standard lex 29 | LFLAGS *= 30 | 31 | # Other Compilers, Tools and their flags 32 | PC *:= ??? # pascal compiler 33 | RC *:= ??? # ratfor compiler 34 | FC *:= ??? # fortran compiler 35 | -------------------------------------------------------------------------------- /tests/recipes-7: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | 3 | # 01.12.2006 Volker Quetschke 4 | # Test that the '-' recipe switch is honored. 5 | # (issue 72210) 6 | 7 | : ${DMAKEPROG:=dmake} 8 | file1="mymakefile.mk" 9 | tmpfiles="$file1" 10 | STARTDIR="`pwd`"; WORKDIR="$0-OUTPUT" 11 | CLEANUP="eval (cd $STARTDIR; rm -rf $WORKDIR)" 12 | $CLEANUP # Zap remnants of any failed run 13 | mkdir "$WORKDIR"; cd "$WORKDIR" 14 | 15 | trap "{ echo 'trapped signal - removing temporary files' ; $CLEANUP ; }" 1 2 3 15 16 | 17 | # Remember to quote variables in generated makefiles( $ -> \$ ). 18 | cat > $file1 < /dev/null` 31 | result=$? 32 | if test $result -eq 0 -a "$output" != "OK"; then 33 | echo "Wrong result: $output" 34 | result=1 35 | fi 36 | 37 | 38 | test $result -eq 0 && echo "Success - Cleaning up" && $CLEANUP 39 | test $result -ne 0 && echo "Failure!" 40 | exit $result 41 | -------------------------------------------------------------------------------- /mac/sysintf.h: -------------------------------------------------------------------------------- 1 | /* RCS $Id: sysintf.h,v 1.2 2007-01-18 09:33:25 vg Exp $ 2 | -- 3 | -- SYNOPSIS 4 | -- Assorted bits of system interface 5 | -- 6 | -- DESCRIPTION 7 | -- This file is used to abstract away some of the functions in 8 | -- sysintf.c. 9 | -- 10 | -- AUTHOR 11 | -- Dennis Vadura, dvadura@dmake.wticorp.com 12 | -- 13 | -- WWW 14 | -- http://dmake.wticorp.com/ 15 | -- 16 | -- COPYRIGHT 17 | -- Copyright (c) 1996,1997 by WTI Corp. All rights reserved. 18 | -- 19 | -- This program is NOT free software; you can redistribute it and/or 20 | -- modify it under the terms of the Software License Agreement Provided 21 | -- in the file /COPYING. 22 | -- 23 | -- LOG 24 | -- Use cvs log to obtain detailed change logs. 25 | */ 26 | #define DMSTAT stat 27 | #define VOID_LCACHE(l,m) 28 | #define Hook_std_writes(A) 29 | #define GETPID 1 30 | 31 | /* for directory cache */ 32 | #define CacheStat(A,B) really_dostat(A) 33 | 34 | /* 35 | ** standard C items 36 | */ 37 | 38 | /* 39 | ** Mac interface standard items 40 | */ 41 | #define getswitchar() '-' 42 | -------------------------------------------------------------------------------- /mac/rmprq.c: -------------------------------------------------------------------------------- 1 | /* RCS $Id: rmprq.c,v 1.1.1.1 2000-09-22 15:33:27 hr Exp $ 2 | -- 3 | -- SYNOPSIS 4 | -- Remove prerequisites code. 5 | -- 6 | -- DESCRIPTION 7 | -- This code is different for The Mac and for UNIX and parallel make 8 | -- architectures since the parallel case requires the rm's to be 9 | -- run in parallel, whereas The Mac guarantees to run them sequentially. 10 | -- 11 | -- AUTHOR 12 | -- Dennis Vadura, dvadura@dmake.wticorp.com 13 | -- 14 | -- WWW 15 | -- http://dmake.wticorp.com/ 16 | -- 17 | -- COPYRIGHT 18 | -- Copyright (c) 1996,1997 by WTI Corp. All rights reserved. 19 | -- 20 | -- This program is NOT free software; you can redistribute it and/or 21 | -- modify it under the terms of the Software License Agreement Provided 22 | -- in the file /COPYING. 23 | -- 24 | -- LOG 25 | -- Use cvs log to obtain detailed change logs. 26 | */ 27 | 28 | #include "extern.h" 29 | 30 | PUBLIC void 31 | Remove_prq( tcp ) 32 | CELLPTR tcp; 33 | { 34 | tcp->ce_flag &= ~(F_MADE|F_VISITED); 35 | tcp->ce_time = 0L; 36 | 37 | Make( tcp, tcp ); 38 | } 39 | -------------------------------------------------------------------------------- /tests/recipes-3: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | 3 | # 29.07.2006 Volker Quetschke 4 | # Test builtin commands. 5 | # (issue 67589) 6 | 7 | : ${DMAKEPROG:=dmake} 8 | file1="mymakefile.mk" 9 | tmpfiles="$file1" 10 | STARTDIR="`pwd`"; WORKDIR="$0-OUTPUT" 11 | CLEANUP="eval (cd $STARTDIR; rm -rf $WORKDIR)" 12 | $CLEANUP # Zap remnants of any failed run 13 | mkdir "$WORKDIR"; cd "$WORKDIR" 14 | 15 | trap "{ echo 'trapped signal - removing temporary files' ; $CLEANUP ; }" 1 2 3 15 16 | 17 | # Remember to quote variables in generated makefiles( $ -> \$ ). 18 | cat > $file1 < \$ ). 18 | cat > $file1 <&1 ` 29 | result1=$? 30 | 31 | if test $result1 = 0 -a "$output1" = "abcd"; then 32 | echo "OK" 33 | else 34 | echo "Wrong result: $output1" 35 | echo 36 | result1=1 37 | fi 38 | 39 | if test $result1 -eq 0 ; then 40 | echo "Success - Cleaning up" 41 | $CLEANUP 42 | exit 43 | else 44 | echo "Failure!" 45 | exit 1 46 | fi 47 | -------------------------------------------------------------------------------- /dstdarg.h: -------------------------------------------------------------------------------- 1 | /* RCS $Id: dstdarg.h,v 1.1.1.1 2000-09-22 15:33:25 hr Exp $ 2 | -- 3 | -- SYNOPSIS 4 | -- 5 | -- DESCRIPTION 6 | -- 7 | -- AUTHOR 8 | -- Dennis Vadura, dvadura@dmake.wticorp.com 9 | -- 10 | -- WWW 11 | -- http://dmake.wticorp.com/ 12 | -- 13 | -- COPYRIGHT 14 | -- Copyright (c) 1996,1997 by WTI Corp. All rights reserved. 15 | -- 16 | -- This program is NOT free software; you can redistribute it and/or 17 | -- modify it under the terms of the Software License Agreement Provided 18 | -- in the file /COPYING. 19 | -- 20 | -- LOG 21 | -- Use cvs log to obtain detailed change logs. 22 | */ 23 | #include 24 | 25 | #define ARG(a,b) a 26 | 27 | #if __STDC__ || defined(__TURBOC__) || defined(__IBMC__) 28 | # define va_alist_type ... 29 | # ifdef va_alist 30 | # undef va_alist 31 | # endif 32 | # define va_alist 33 | # define DARG(a,b) 34 | #else 35 | # ifdef va_alist 36 | # define va_alist_type int 37 | # define DARG(a,b) a b; 38 | # else 39 | # define va_alist_type ... 40 | # define va_alist 41 | # define DARG(a,b) 42 | # endif 43 | #endif 44 | -------------------------------------------------------------------------------- /tests/misc-2: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | 3 | # 01.09.2005 Volker Quetschke 4 | # Tests if dmake can work with makefiles with DOS lineendings. 5 | # (issue 52238) 6 | 7 | : ${DMAKEPROG:=dmake} 8 | file1="mymakefile.mk" 9 | file2="mymakefile_dos.mk" 10 | tmpfiles="$file1 $file2" 11 | STARTDIR="`pwd`"; WORKDIR="$0-OUTPUT" 12 | CLEANUP="eval (cd $STARTDIR; rm -rf $WORKDIR)" 13 | $CLEANUP # Zap remnants of any failed run 14 | mkdir "$WORKDIR"; cd "$WORKDIR" 15 | 16 | trap "{ echo 'trapped signal - removing temporary files' ; $CLEANUP ; }" 1 2 3 15 17 | 18 | # Remember to quote variables in generated makefiles( $ -> \$ ). 19 | cat > $file1 < $file2 35 | $AWK '{print $0"\r"}' $file1 > $file2 36 | 37 | ../${DMAKEPROG} -r -f $file2 38 | result=$? 39 | 40 | test $result -eq 0 && echo "Success - Cleaning up" && $CLEANUP 41 | test $result -ne 0 && echo "Failure!" 42 | exit $result 43 | -------------------------------------------------------------------------------- /tests/function_macros-6: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | 3 | # 22.07.2006 Volker Quetschke 4 | # Verifies that $(nil expression) expand expression but returns "". 5 | # (issue 67585) 6 | 7 | : ${DMAKEPROG:=dmake} 8 | file1="makefile.mk" 9 | tmpfiles="$file1" 10 | STARTDIR="`pwd`"; WORKDIR="$0-OUTPUT" 11 | CLEANUP="eval (cd $STARTDIR; rm -rf $WORKDIR)" 12 | $CLEANUP # Zap remnants of any failed run 13 | mkdir "$WORKDIR"; cd "$WORKDIR" 14 | 15 | trap "{ echo 'trapped signal - removing temporary files' ; $CLEANUP ; }" 1 2 3 15 16 | 17 | # Remember to quote variables in generated makefiles( $ -> \$ ). 18 | cat > $file1 <&1 ` 32 | result1=$? 33 | 34 | if test $output1 = "XOKX" ; then 35 | dummy=1 36 | # OK 37 | else 38 | echo "Wrong result: $output1" 39 | result1=1 40 | fi 41 | 42 | test $result1 -eq 0 && echo "Success - Cleaning up" && $CLEANUP 43 | test $result1 -ne 0 && echo "Failure!" 44 | exit $result1 45 | -------------------------------------------------------------------------------- /tos/sysintf.h: -------------------------------------------------------------------------------- 1 | /* RCS $Id: sysintf.h,v 1.2 2007-01-18 09:43:39 vg Exp $ 2 | -- 3 | -- SYNOPSIS 4 | -- Interfaces for sysintf.c 5 | -- 6 | -- DESCRIPTION 7 | -- Abstractions of functions in sysintf.c 8 | -- 9 | -- AUTHOR 10 | -- Dennis Vadura, dvadura@dmake.wticorp.com 11 | -- 12 | -- WWW 13 | -- http://dmake.wticorp.com/ 14 | -- 15 | -- COPYRIGHT 16 | -- Copyright (c) 1996,1997 by WTI Corp. All rights reserved. 17 | -- 18 | -- This program is NOT free software; you can redistribute it and/or 19 | -- modify it under the terms of the Software License Agreement Provided 20 | -- in the file /COPYING. 21 | -- 22 | -- LOG 23 | -- Use cvs log to obtain detailed change logs. 24 | */ 25 | 26 | #define DMSTAT stat 27 | #define VOID_LCACHE(l,m) (void) void_lcache(l,m) 28 | #define Hook_std_writes(A) 29 | #define GETPID getpid() 30 | 31 | /* for directory cache */ 32 | #define CacheStat(A,B) really_dostat(A) 33 | 34 | /* 35 | ** standard C items 36 | */ 37 | 38 | /* 39 | ** DOS interface standard items 40 | */ 41 | #define getswitchar() '-' 42 | 43 | /* 44 | ** make parameters 45 | */ 46 | -------------------------------------------------------------------------------- /unix/coherent/ver40/getcwd.c: -------------------------------------------------------------------------------- 1 | /* RCS $Id: getcwd.c,v 1.1.1.1 2000-09-22 15:33:34 hr Exp $ 2 | -- 3 | -- SYNOPSIS 4 | -- getcwd 5 | -- 6 | -- DESCRIPTION 7 | -- Wrapper for getcwd. 8 | -- 9 | -- AUTHOR 10 | -- Dennis Vadura, dvadura@dmake.wticorp.com 11 | -- 12 | -- WWW 13 | -- http://dmake.wticorp.com/ 14 | -- 15 | -- COPYRIGHT 16 | -- Copyright (c) 1996,1997 by WTI Corp. All rights reserved. 17 | -- 18 | -- This program is NOT free software; you can redistribute it and/or 19 | -- modify it under the terms of the Software License Agreement Provided 20 | -- in the file /COPYING. 21 | -- 22 | -- LOG 23 | -- Use cvs log to obtain detailed change logs. 24 | */ 25 | 26 | #if __STDC__ 27 | char *getcwd(char *buffer, int length) 28 | #else 29 | char *getcwd (buffer, length) 30 | char *buffer; 31 | int length; 32 | #endif 33 | { 34 | extern char *getwd(); 35 | 36 | char *dir; 37 | dir = getwd(); 38 | if (dir) 39 | { 40 | strncpy(buffer,dir,length); 41 | return buffer; 42 | } 43 | else 44 | { 45 | *buffer = 0; 46 | return (char *) 0; 47 | } 48 | } 49 | 50 | -------------------------------------------------------------------------------- /tests/misc-8: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | 3 | # 26.02.2006 Volker Quetschke 4 | # Test if dmake complains about circular dependencies when using 5 | # infered .INCLUDE targets 6 | # (issue 62118) 7 | 8 | : ${DMAKEPROG:=dmake} 9 | file1="mfile1.mk" 10 | file2="mytarget.dpcc" 11 | tmpfiles="$file1 $file2" 12 | STARTDIR="`pwd`"; WORKDIR="$0-OUTPUT" 13 | CLEANUP="eval (cd $STARTDIR; rm -rf $WORKDIR)" 14 | $CLEANUP # Zap remnants of any failed run 15 | mkdir "$WORKDIR"; cd "$WORKDIR" 16 | 17 | trap "{ echo 'trapped signal - removing temporary files' ; $CLEANUP ; }" 1 2 3 15 18 | 19 | # Remember to quote variables in generated makefiles( $ -> \$ ). 20 | cat > $file1 < \$@ 28 | 29 | .INCLUDE : mytarget.dpcc 30 | 31 | ALL : mytarget.dpcc 32 | 33 | EOT 34 | 35 | output=`eval ../${DMAKEPROG} -r -f $file1` 36 | result=$? 37 | 38 | test $result -eq 0 && echo "Success - Cleaning up" && $CLEANUP 39 | test $result -ne 0 && echo "Failure! Invalid circular dependency detected." 40 | exit $result 41 | -------------------------------------------------------------------------------- /tests/targets-9: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | 3 | # 14.06.2006 Volker Quetschke 4 | # Prior to dmake 4.5 only one %-target per target-definition worked reliably. 5 | # (issue 48087) 6 | 7 | : ${DMAKEPROG:=dmake} 8 | file1="mfile1.mk" 9 | tmpfiles="$file1" 10 | 11 | trap '{ echo "trapped signal - removing temporary files" ; rm -rf $tmpfiles ; }' 1 2 3 15 12 | 13 | # Remove files from prior failed run 14 | rm -rf $tmpfiles 15 | 16 | # Remember to quote variables in generated makefiles( $ -> \$ ). 17 | # Check that we warn. 18 | cat > $file1 <&1 ` 30 | result1=$? 31 | 32 | if echo $output1 | grep 'Warning: -- Prior to dmake 4.5 only one' > /dev/null 2>&1 ; then 33 | dummy=1 34 | # OK 35 | else 36 | echo "Test 1: Wrong result: $output1" 37 | echo 38 | result1=1 39 | fi 40 | 41 | if test $result1 -eq 0 ; then 42 | echo "Success - Cleaning up" 43 | rm -rf $tmpfiles 44 | result=0 45 | else 46 | echo "Failure!" 47 | result=1 48 | fi 49 | exit $result 50 | -------------------------------------------------------------------------------- /startup/winnt/msvc6/macros.mk: -------------------------------------------------------------------------------- 1 | # MSDOS Microsoft-C environment customization. 2 | 3 | .IF $(OSENVIRONMENT) 4 | .INCLUDE .IGNORE .NOINFER : $(INCFILENAME:d)$(OSENVIRONMENT)$/macros.mk 5 | .ENDIF 6 | 7 | # Standard C-language command names and flags 8 | CC *:= cl # C compiler 9 | CPP *:= # C-preprocessor 10 | CFLAGS *= # C compiler flags 11 | "C++" *:= # C++ Compiler 12 | "C++FLAGS" *= # C++ Compiler flags 13 | 14 | AS *:= masm # Assembler and flags 15 | ASFLAGS *= 16 | LD *= link # Loader and flags 17 | LDFLAGS *= 18 | LDLIBS *= # Default libraries 19 | AR *:= lib # archiver 20 | ARFLAGS *= ???? 21 | 22 | # Definition of Print command for this system. 23 | PRINT *= print 24 | 25 | # Language and Parser generation Tools and their flags 26 | YACC *:= yacc # standard yacc 27 | YFLAGS *= 28 | LEX *:= lex # standard lex 29 | LFLAGS *= 30 | 31 | # Other Compilers, Tools and their flags 32 | PC *:= ??? # pascal compiler 33 | RC *:= ??? # ratfor compiler 34 | FC *:= ??? # fortran compiler 35 | 36 | # Directory cache configuration. 37 | .DIRCACHE *:= no 38 | -------------------------------------------------------------------------------- /tests/targets-25: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | 3 | # 03.08.2007 Volker Quetschke 4 | # Check that the .PRECIOUS attribute works. 5 | # (issue 80352) 6 | 7 | : ${DMAKEPROG:=dmake} 8 | file1="mfile1.mk" 9 | tmpfiles="$file1 $file2" 10 | STARTDIR="`pwd`"; WORKDIR="$0-OUTPUT" 11 | CLEANUP="eval (cd $STARTDIR; rm -rf $WORKDIR)" 12 | $CLEANUP # Zap remnants of any failed run 13 | mkdir "$WORKDIR"; cd "$WORKDIR" 14 | 15 | trap "{ echo 'trapped signal - removing temporary files' ; $CLEANUP ; }" 1 2 3 15 16 | 17 | # Remember to quote variables in generated makefiles( $ -> \$ ). 18 | cat > $file1 <&1 ` 36 | result1=$? 37 | 38 | if test "$output1" != "Done"; then 39 | echo "Wrong result: $output1" 40 | result1=1 41 | else 42 | echo "OK" 43 | fi 44 | 45 | if test $result1 -eq 0 ; then 46 | echo "Success - Cleaning up" 47 | $CLEANUP 48 | exit 49 | else 50 | echo "Failure!" 51 | exit 1 52 | fi 53 | -------------------------------------------------------------------------------- /startup/winnt/microsft/macros.mk: -------------------------------------------------------------------------------- 1 | # MSDOS Microsoft-C environment customization. 2 | 3 | .IF $(OSENVIRONMENT) 4 | .INCLUDE .IGNORE .NOINFER : $(INCFILENAME:d)$(OSENVIRONMENT)$/macros.mk 5 | .ENDIF 6 | 7 | # Standard C-language command names and flags 8 | CC *:= cl # C compiler 9 | CPP *:= # C-preprocessor 10 | CFLAGS *= # C compiler flags 11 | "C++" *:= # C++ Compiler 12 | "C++FLAGS" *= # C++ Compiler flags 13 | 14 | AS *:= masm # Assembler and flags 15 | ASFLAGS *= 16 | LD *= link # Loader and flags 17 | LDFLAGS *= 18 | LDLIBS *= # Default libraries 19 | AR *:= lib # archiver 20 | ARFLAGS *= ???? 21 | 22 | # Definition of Print command for this system. 23 | PRINT *= print 24 | 25 | # Language and Parser generation Tools and their flags 26 | YACC *:= yacc # standard yacc 27 | YFLAGS *= 28 | LEX *:= lex # standard lex 29 | LFLAGS *= 30 | 31 | # Other Compilers, Tools and their flags 32 | PC *:= ??? # pascal compiler 33 | RC *:= ??? # ratfor compiler 34 | FC *:= ??? # fortran compiler 35 | 36 | # Directory cache configuration. 37 | .DIRCACHE *:= no 38 | -------------------------------------------------------------------------------- /tests/misc-14: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | 3 | # 07.10.2006 Volker Quetschke 4 | # Check if the line of the error is issued 5 | # (issue 70027) 6 | 7 | : ${DMAKEPROG:=dmake} 8 | file1="mfile1.mk" 9 | tmpfiles="$file1" 10 | STARTDIR="`pwd`"; WORKDIR="$0-OUTPUT" 11 | CLEANUP="eval (cd $STARTDIR; rm -rf $WORKDIR)" 12 | $CLEANUP # Zap remnants of any failed run 13 | mkdir "$WORKDIR"; cd "$WORKDIR" 14 | 15 | trap "{ echo 'trapped signal - removing temporary files' ; $CLEANUP ; }" 1 2 3 15 16 | 17 | # Remember to quote variables in generated makefiles ( $ -> \$ ). 18 | # Also quote line continuations ( \ -> \\ ). 19 | cat > $file1 <&1` 31 | result=$? 32 | 33 | if echo "$output" | grep 'line .: Error: --' > /dev/null 2>&1 ; then 34 | dummy=1 35 | result=0 36 | # OK 37 | else 38 | echo "Test 1: Wrong result: $output" 39 | echo 40 | result=1 41 | fi 42 | 43 | test $result -eq 0 && echo "Success - Cleaning up" && $CLEANUP 44 | test $result -ne 0 && echo "Failure!" 45 | exit $result 46 | -------------------------------------------------------------------------------- /startup/win95/microsft/macros.mk: -------------------------------------------------------------------------------- 1 | # MSDOS Microsoft-C environment customization. 2 | 3 | .IF $(OSENVIRONMENT) 4 | .INCLUDE .IGNORE .NOINFER : $(INCFILENAME:d)$(OSENVIRONMENT)$/macros.mk 5 | .ENDIF 6 | 7 | # Standard C-language command names and flags 8 | CC *:= cl # C compiler 9 | CPP *:= # C-preprocessor 10 | CFLAGS *= # C compiler flags 11 | "C++" *:= # C++ Compiler 12 | "C++FLAGS" *= # C++ Compiler flags 13 | 14 | AS *:= masm # Assembler and flags 15 | ASFLAGS *= 16 | LD *= link # Loader and flags 17 | LDFLAGS *= 18 | LDLIBS *= # Default libraries 19 | AR *:= lib # archiver 20 | ARFLAGS *= ???? 21 | 22 | # Definition of Print command for this system. 23 | PRINT *= print 24 | 25 | # Language and Parser generation Tools and their flags 26 | YACC *:= yacc # standard yacc 27 | YFLAGS *= 28 | LEX *:= lex # standard lex 29 | LFLAGS *= 30 | 31 | # Other Compilers, Tools and their flags 32 | PC *:= ??? # pascal compiler 33 | RC *:= ??? # ratfor compiler 34 | FC *:= ??? # fortran compiler 35 | 36 | 37 | # Directory cache configuration. 38 | .DIRCACHE *:= no 39 | -------------------------------------------------------------------------------- /tests/targets-16: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | 3 | # 08.10.2006 Volker Quetschke 4 | # Check that $ in dynamic prerequisites are handled correctly. 5 | # (issue 70168) 6 | 7 | : ${DMAKEPROG:=dmake} 8 | file1="mfile1.mk" 9 | tmpfiles="$file1" 10 | STARTDIR="`pwd`"; WORKDIR="$0-OUTPUT" 11 | CLEANUP="eval (cd $STARTDIR; rm -rf $WORKDIR)" 12 | $CLEANUP # Zap remnants of any failed run 13 | mkdir "$WORKDIR"; cd "$WORKDIR" 14 | 15 | trap "{ echo 'trapped signal - removing temporary files' ; $CLEANUP ; }" 1 2 3 15 16 | 17 | # Remember to quote variables in generated makefiles( $ -> \$ ). 18 | # Check that we set AAA to set_AAA. 19 | cat > $file1 <&1 ` 40 | result1=$? 41 | 42 | 43 | if test $result1 -eq 0 ; then 44 | echo "Success - Cleaning up" 45 | $CLEANUP 46 | else 47 | echo "Failure! dmake reported:" 48 | echo "$output1" 49 | fi 50 | exit $result1 51 | -------------------------------------------------------------------------------- /unix/bsdarm32/string.h: -------------------------------------------------------------------------------- 1 | /* RCS $Id: string.h,v 1.1.1.1 2000-09-22 15:33:34 hr Exp $ 2 | -- 3 | -- SYNOPSIS 4 | -- string function headers 5 | -- 6 | -- DESCRIPTION 7 | -- Supply correct definitions for certain string functions. 8 | -- 9 | -- AUTHOR 10 | -- Dennis Vadura, dvadura@dmake.wticorp.com 11 | -- 12 | -- WWW 13 | -- http://dmake.wticorp.com/ 14 | -- 15 | -- COPYRIGHT 16 | -- Copyright (c) 1996,1997 by WTI Corp. All rights reserved. 17 | -- 18 | -- This program is NOT free software; you can redistribute it and/or 19 | -- modify it under the terms of the Software License Agreement Provided 20 | -- in the file /COPYING. 21 | -- 22 | -- LOG 23 | -- Use cvs log to obtain detailed change logs. 24 | */ 25 | 26 | 27 | /* 28 | ** BSD does this wrong 29 | */ 30 | #include 31 | 32 | #include "stdmacs.h" 33 | extern char* strpbrk ANSI((const char* src, const char* any)); 34 | 35 | #ifndef DBUG 36 | #define strchr(str,c) index(str,c) 37 | #define strrchr(str,c) rindex(str,c) 38 | #else 39 | char *strchr ANSI((char*, char)); 40 | char *strrchr ANSI((char*, char)); 41 | #endif 42 | 43 | -------------------------------------------------------------------------------- /tests/misc-3: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | 3 | # 17.09.2005 Volker Quetschke 4 | # Test for line continuation in comments. 5 | # (issue 49461) 6 | 7 | : ${DMAKEPROG:=dmake} 8 | file1="mymakefile.mk" 9 | tmpfiles="$file1" 10 | STARTDIR="`pwd`"; WORKDIR="$0-OUTPUT" 11 | CLEANUP="eval (cd $STARTDIR; rm -rf $WORKDIR)" 12 | $CLEANUP # Zap remnants of any failed run 13 | mkdir "$WORKDIR"; cd "$WORKDIR" 14 | 15 | trap "{ echo 'trapped signal - removing temporary files' ; $CLEANUP ; }" 1 2 3 15 16 | 17 | # Remember to quote variables in generated makefiles( $ -> \$ ). 18 | cat > $file1 < \$ ). 18 | cat > $file1 < \$ ). 19 | cat > $file1 </COPYING. 21 | -- 22 | -- LOG 23 | -- Use cvs log to obtain detailed change logs. 24 | */ 25 | #ifndef STRING_h 26 | #define STRING_h 27 | 28 | /* 29 | ** BSD does this wrong 30 | */ 31 | #include 32 | 33 | #include "stdmacs.h" 34 | extern char* strpbrk ANSI((char* src, char* any)); 35 | 36 | #ifndef DBUG 37 | #define strchr(str,c) index(str,c) 38 | #define strrchr(str,c) rindex(str,c) 39 | #else 40 | char *strchr ANSI((char*, char)); 41 | char *strrchr ANSI((char*, char)); 42 | #endif 43 | #endif 44 | -------------------------------------------------------------------------------- /dbug/malloc/calloc.c: -------------------------------------------------------------------------------- 1 | /* 2 | * (c) Copyright 1990 Conor P. Cahill (uunet!virtech!cpcahil). 3 | * You may copy, distribute, and use this software as long as this 4 | * copyright statement is not removed. 5 | */ 6 | #include 7 | 8 | /* 9 | * Function: calloc() 10 | * 11 | * Purpose: to allocate and nullify a data area 12 | * 13 | * Arguments: nelem - number of elements 14 | * elsize - size of each element 15 | * 16 | * Returns: NULL - if malloc fails 17 | * or pointer to allocated space 18 | * 19 | * Narrative: determine size of area to malloc 20 | * malloc area. 21 | * if malloc succeeds 22 | * fill area with nulls 23 | * return ptr to malloc'd region 24 | */ 25 | #ifndef lint 26 | static char rcs_header[] = "$Id: calloc.c,v 1.2 2006-07-25 10:07:11 rt Exp $"; 27 | #endif 28 | 29 | char * 30 | calloc(nelem,elsize) 31 | unsigned int nelem; 32 | unsigned int elsize; 33 | { 34 | char * malloc(); 35 | char * memset(); 36 | char * ptr; 37 | unsigned int size; 38 | 39 | size = elsize * nelem; 40 | 41 | if( (ptr = malloc(size)) != NULL) 42 | { 43 | (void) memset(ptr,'\0',(int)size); 44 | } 45 | 46 | return(ptr); 47 | } 48 | 49 | 50 | -------------------------------------------------------------------------------- /msdos/exec.h: -------------------------------------------------------------------------------- 1 | /* RCS $Id: exec.h,v 1.1.1.1 2000-09-22 15:33:27 hr Exp $ 2 | -- 3 | -- SYNOPSIS 4 | -- Internal version of exec for dmake. 5 | -- 6 | -- DESCRIPTION 7 | -- External defines for the exec.c code. 8 | -- 9 | -- AUTHOR 10 | -- Dennis Vadura, dvadura@dmake.wticorp.com 11 | -- 12 | -- WWW 13 | -- http://dmake.wticorp.com/ 14 | -- 15 | -- COPYRIGHT 16 | -- Copyright (c) 1996,1997 by WTI Corp. All rights reserved. 17 | -- 18 | -- This program is NOT free software; you can redistribute it and/or 19 | -- modify it under the terms of the Software License Agreement Provided 20 | -- in the file /COPYING. 21 | -- 22 | -- LOG 23 | -- Use cvs log to obtain detailed change logs. 24 | */ 25 | #ifndef _EXEC_h_ 26 | #define _EXEC_h_ 27 | 28 | #ifndef ANSI 29 | #if defined(__STDC__) || defined(__TURBOC__) 30 | #define ANSI(x) x 31 | #else 32 | #define ANSI(x) () 33 | #endif 34 | #endif 35 | 36 | extern int exec ANSI((int, char far *, char far *, unsigned int, char far *)); 37 | 38 | #ifndef MK_FP 39 | #define MK_FP(seg,ofs) \ 40 | ((void far *) (((unsigned long)(seg) << 16) | (unsigned)(ofs))) 41 | #endif 42 | 43 | #endif 44 | -------------------------------------------------------------------------------- /tests/misc-17: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | 3 | # 19.11.2006 Volker Quetschke 4 | # Check that a global .SEQUENTIAL attribute enforces MAXPROCESS=1. 5 | # (issue 71704) 6 | 7 | : ${DMAKEPROG:=dmake} 8 | file1="mfile1.mk" 9 | file2="my.inc" 10 | tmpfiles="$file1 $file2" 11 | STARTDIR="`pwd`"; WORKDIR="$0-OUTPUT" 12 | CLEANUP="eval (cd $STARTDIR; rm -rf $WORKDIR)" 13 | $CLEANUP # Zap remnants of any failed run 14 | mkdir "$WORKDIR"; cd "$WORKDIR" 15 | 16 | trap "{ echo 'trapped signal - removing temporary files' ; $CLEANUP ; }" 1 2 3 15 17 | 18 | # Remember to quote variables in generated makefiles( $ -> \$ ). 19 | cat > $file1 < my.inc 25 | 26 | .INCLUDE : my.inc 27 | 28 | all: 29 | @+echo "MYMAXPROCESS:\$(MYMAXPROCESS):" 30 | 31 | EOT 32 | 33 | output=`eval ../${DMAKEPROG} -S -P2 -rf $file1 all` 34 | result=$? 35 | 36 | if test "$output" != "MYMAXPROCESS:1:"; then 37 | echo "Wrong result: $output - expecting: MYMAXPROCESS:1:" 38 | result=1 39 | fi 40 | 41 | test $result -eq 0 && echo "Success - Cleaning up" && $CLEANUP 42 | test $result -ne 0 && echo "Failure!" 43 | exit $result 44 | -------------------------------------------------------------------------------- /unix/386ix/stdlib.h: -------------------------------------------------------------------------------- 1 | /* RCS $Id: stdlib.h,v 1.1.1.1 2000-09-22 15:33:33 hr Exp $ 2 | -- 3 | -- SYNOPSIS 4 | -- stdlib interface 5 | -- 6 | -- DESCRIPTION 7 | -- Specially needed pieces of interface to the standard C lib. 8 | -- 9 | -- AUTHOR 10 | -- Dennis Vadura, dvadura@dmake.wticorp.com 11 | -- 12 | -- WWW 13 | -- http://dmake.wticorp.com/ 14 | -- 15 | -- COPYRIGHT 16 | -- Copyright (c) 1996,1997 by WTI Corp. All rights reserved. 17 | -- 18 | -- This program is NOT free software; you can redistribute it and/or 19 | -- modify it under the terms of the Software License Agreement Provided 20 | -- in the file /COPYING. 21 | -- 22 | -- LOG 23 | -- Use cvs log to obtain detailed change logs. 24 | */ 25 | 26 | #ifndef _STDLIB_INCLUDED_ 27 | #define _STDLIB_INCLUDED_ 28 | 29 | extern /*GOTO*/ _exit(); 30 | extern /*GOTO*/ exit(); 31 | extern /*GOTO*/ abort(); 32 | extern int system(); 33 | extern char *getenv(); 34 | extern char *calloc(); 35 | extern char *malloc(); 36 | extern char *realloc(); 37 | extern free(); 38 | extern int errno; 39 | 40 | #ifndef EIO 41 | # include 42 | #endif 43 | 44 | #endif /* _STDLIB_INCLUDED_ */ 45 | -------------------------------------------------------------------------------- /unix/bsd43/stdlib.h: -------------------------------------------------------------------------------- 1 | /* RCS $Id: stdlib.h,v 1.1.1.1 2000-09-22 15:33:34 hr Exp $ 2 | -- 3 | -- SYNOPSIS 4 | -- stdlib interface 5 | -- 6 | -- DESCRIPTION 7 | -- Specially needed pieces of interface to the standard C lib. 8 | -- 9 | -- AUTHOR 10 | -- Dennis Vadura, dvadura@dmake.wticorp.com 11 | -- 12 | -- WWW 13 | -- http://dmake.wticorp.com/ 14 | -- 15 | -- COPYRIGHT 16 | -- Copyright (c) 1996,1997 by WTI Corp. All rights reserved. 17 | -- 18 | -- This program is NOT free software; you can redistribute it and/or 19 | -- modify it under the terms of the Software License Agreement Provided 20 | -- in the file /COPYING. 21 | -- 22 | -- LOG 23 | -- Use cvs log to obtain detailed change logs. 24 | */ 25 | 26 | #ifndef _STDLIB_INCLUDED_ 27 | #define _STDLIB_INCLUDED_ 28 | 29 | extern /*GOTO*/ _exit(); 30 | extern /*GOTO*/ exit(); 31 | extern /*GOTO*/ abort(); 32 | extern int system(); 33 | extern char *getenv(); 34 | extern char *calloc(); 35 | extern char *malloc(); 36 | extern char *realloc(); 37 | extern free(); 38 | extern int errno; 39 | 40 | #ifndef EIO 41 | # include 42 | #endif 43 | 44 | #endif /* _STDLIB_INCLUDED_ */ 45 | -------------------------------------------------------------------------------- /tests/function_macros-3: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | 3 | # 04.09.2005 Volker Quetschke 4 | # Tests $(shell ..) function macro when using two concurrend processes. 5 | # (issue 53148) 6 | 7 | : ${DMAKEPROG:=dmake} 8 | file1="makefile.mk" 9 | file2="stdout.txt" 10 | tmpfiles="$file1 $file2" 11 | STARTDIR="`pwd`"; WORKDIR="$0-OUTPUT" 12 | CLEANUP="eval (cd $STARTDIR; rm -rf $WORKDIR)" 13 | $CLEANUP # Zap remnants of any failed run 14 | mkdir "$WORKDIR"; cd "$WORKDIR" 15 | 16 | trap "{ echo 'trapped signal - removing temporary files' ; $CLEANUP ; }" 1 2 3 15 17 | 18 | # Remember to quote variables in generated makefiles( $ -> \$ ). 19 | cat > $file1 < $file2 31 | EOT 32 | 33 | ../${DMAKEPROG} -P2 -r -f $file1 34 | result=$? 35 | if test "`cat $file2`" != "AXshellexecXA"; then 36 | echo "Wrong result: `cat $file2`, AXshellexecXA expected!" 37 | result=1 38 | fi 39 | 40 | test $result -eq 0 && echo "Success - Cleaning up" && $CLEANUP 41 | test $result -ne 0 && echo "Failure!" 42 | exit $result 43 | -------------------------------------------------------------------------------- /unix/bsdarm32/stdlib.h: -------------------------------------------------------------------------------- 1 | /* RCS $Id: stdlib.h,v 1.1.1.1 2000-09-22 15:33:34 hr Exp $ 2 | -- 3 | -- SYNOPSIS 4 | -- stdlib interface 5 | -- 6 | -- DESCRIPTION 7 | -- Specially needed pieces of interface to the standard C lib. 8 | -- 9 | -- AUTHOR 10 | -- Dennis Vadura, dvadura@dmake.wticorp.com 11 | -- 12 | -- WWW 13 | -- http://dmake.wticorp.com/ 14 | -- 15 | -- COPYRIGHT 16 | -- Copyright (c) 1996,1997 by WTI Corp. All rights reserved. 17 | -- 18 | -- This program is NOT free software; you can redistribute it and/or 19 | -- modify it under the terms of the Software License Agreement Provided 20 | -- in the file /COPYING. 21 | -- 22 | -- LOG 23 | -- Use cvs log to obtain detailed change logs. 24 | */ 25 | 26 | #ifndef _STDLIB_INCLUDED_ 27 | #define _STDLIB_INCLUDED_ 28 | 29 | extern /*GOTO*/ _exit(); 30 | extern /*GOTO*/ exit(); 31 | extern /*GOTO*/ abort(); 32 | extern int system(); 33 | extern char *getenv(); 34 | extern char *calloc(); 35 | extern char *malloc(); 36 | extern char *realloc(); 37 | extern free(); 38 | extern int errno; 39 | 40 | #ifndef EIO 41 | # include 42 | #endif 43 | 44 | #endif /* _STDLIB_INCLUDED_ */ 45 | -------------------------------------------------------------------------------- /unix/coherent/stdlib.h: -------------------------------------------------------------------------------- 1 | /* RCS $Id: stdlib.h,v 1.1.1.1 2000-09-22 15:33:34 hr Exp $ 2 | -- 3 | -- SYNOPSIS 4 | -- stdlib interface 5 | -- 6 | -- DESCRIPTION 7 | -- Specially needed pieces of interface to the standard C lib. 8 | -- 9 | -- AUTHOR 10 | -- Dennis Vadura, dvadura@dmake.wticorp.com 11 | -- 12 | -- WWW 13 | -- http://dmake.wticorp.com/ 14 | -- 15 | -- COPYRIGHT 16 | -- Copyright (c) 1996,1997 by WTI Corp. All rights reserved. 17 | -- 18 | -- This program is NOT free software; you can redistribute it and/or 19 | -- modify it under the terms of the Software License Agreement Provided 20 | -- in the file /COPYING. 21 | -- 22 | -- LOG 23 | -- Use cvs log to obtain detailed change logs. 24 | */ 25 | 26 | #ifndef _STDLIB_INCLUDED_ 27 | #define _STDLIB_INCLUDED_ 28 | 29 | extern /*GOTO*/ _exit(); 30 | extern /*GOTO*/ exit(); 31 | extern /*GOTO*/ abort(); 32 | extern int system(); 33 | extern char *getenv(); 34 | extern char *calloc(); 35 | extern char *malloc(); 36 | extern char *realloc(); 37 | extern free(); 38 | extern int errno; 39 | 40 | #ifndef EIO 41 | # include 42 | #endif 43 | 44 | #endif /* _STDLIB_INCLUDED_ */ 45 | -------------------------------------------------------------------------------- /unix/sysvr1/stdlib.h: -------------------------------------------------------------------------------- 1 | /* RCS $Id: stdlib.h,v 1.1.1.1 2000-09-22 15:33:35 hr Exp $ 2 | -- 3 | -- SYNOPSIS 4 | -- stdlib interface 5 | -- 6 | -- DESCRIPTION 7 | -- Specially needed pieces of interface to the standard C lib. 8 | -- 9 | -- AUTHOR 10 | -- Dennis Vadura, dvadura@dmake.wticorp.com 11 | -- 12 | -- WWW 13 | -- http://dmake.wticorp.com/ 14 | -- 15 | -- COPYRIGHT 16 | -- Copyright (c) 1996,1997 by WTI Corp. All rights reserved. 17 | -- 18 | -- This program is NOT free software; you can redistribute it and/or 19 | -- modify it under the terms of the Software License Agreement Provided 20 | -- in the file /COPYING. 21 | -- 22 | -- LOG 23 | -- Use cvs log to obtain detailed change logs. 24 | */ 25 | 26 | #ifndef _STDLIB_INCLUDED_ 27 | #define _STDLIB_INCLUDED_ 28 | 29 | extern /*GOTO*/ _exit(); 30 | extern /*GOTO*/ exit(); 31 | extern /*GOTO*/ abort(); 32 | extern int system(); 33 | extern char *getenv(); 34 | extern char *calloc(); 35 | extern char *malloc(); 36 | extern char *realloc(); 37 | extern free(); 38 | extern int errno; 39 | 40 | #ifndef EIO 41 | # include 42 | #endif 43 | 44 | #endif /* _STDLIB_INCLUDED_ */ 45 | -------------------------------------------------------------------------------- /tests/misc-1: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | 3 | # 04.06.2005 Volker Quetschke 4 | # Test for a bug that dmake complained about a continuation char followed 5 | # by a newline. This could happen if \ was used in an imported 6 | # environment variable. 7 | # This bug was 8 | 9 | : ${DMAKEPROG:=dmake} 10 | file1="mymakefile.mk" 11 | tmpfiles="$file1" 12 | STARTDIR="`pwd`"; WORKDIR="$0-OUTPUT" 13 | CLEANUP="eval (cd $STARTDIR; rm -rf $WORKDIR)" 14 | $CLEANUP # Zap remnants of any failed run 15 | mkdir "$WORKDIR"; cd "$WORKDIR" 16 | 17 | trap "{ echo 'trapped signal - removing temporary files' ; $CLEANUP ; }" 1 2 3 15 18 | 19 | # Remember to quote variables in generated makefiles ( $ -> \$ ). 20 | # Also quote line continuations ( \ -> \\ ). 21 | cat > $file1 < 6 | #include 7 | 8 | #ifndef BUFSIZ 9 | #include 10 | #endif 11 | 12 | #ifndef va_dcl 13 | #include 14 | #endif 15 | 16 | int 17 | vsprintf(str, fmt, ap) 18 | char *str, *fmt; 19 | va_list ap; 20 | { 21 | FILE f; 22 | int len; 23 | 24 | f._flag = _IOWRT+_IOMYBUF; 25 | f._ptr = (char *)str; /* My copy of BSD stdio.h has this as (char *) 26 | * with a comment that it should be 27 | * (unsigned char *). Since this code is 28 | * intended for use on a vanilla BSD system, 29 | * we'll stick with (char *) for now. 30 | */ 31 | f._cnt = 32767; 32 | len = _doprnt(fmt, ap, &f); 33 | *f._ptr = 0; 34 | return (len); 35 | } 36 | 37 | int 38 | vfprintf(iop, fmt, ap) 39 | FILE *iop; 40 | char *fmt; 41 | va_list ap; 42 | { 43 | int len; 44 | 45 | len = _doprnt(fmt, ap, iop); 46 | return (ferror(iop) ? EOF : len); 47 | } 48 | 49 | int 50 | vprintf(fmt, ap) 51 | char *fmt; 52 | va_list ap; 53 | { 54 | int len; 55 | 56 | len = _doprnt(fmt, ap, stdout); 57 | return (ferror(stdout) ? EOF : len); 58 | } 59 | -------------------------------------------------------------------------------- /tests/Makefile.am: -------------------------------------------------------------------------------- 1 | ## Makefile for the tests subdirectory of dmake. 2 | 3 | TESTS = infra-0 function_macros-1 function_macros-2 function_macros-3 \ 4 | function_macros-4 function_macros-5 function_macros-6 \ 5 | function_macros-7 function_macros-8 function_macros-9 \ 6 | function_macros-10 \ 7 | macros-1 macros-2 macros-3 macros-4 macros-5 macros-6 macros-7 \ 8 | macros-8 macros-9 macros-10 macros-11 \ 9 | recipes-1 recipes-2 recipes-3 recipes-4 recipes-5 recipes-6 \ 10 | recipes-7 recipes-8 recipes-9 \ 11 | misc-1 misc-2 misc-3 misc-4 misc-5 misc-6 misc-7 misc-8 misc-9 \ 12 | misc-10 misc-11 misc-12 misc-13 misc-14 misc-15 misc-16 misc-17 \ 13 | misc-18 misc-19 misc-20 misc-21 \ 14 | targets-1 targets-2 targets-3 targets-4 targets-5 targets-6 \ 15 | targets-7 targets-8 targets-10 targets-11 targets-12 \ 16 | targets-13 targets-14 targets-15 targets-16 targets-17 targets-18 \ 17 | targets-19 targets-20 targets-21 targets-22 targets-23 targets-24 \ 18 | targets-25 targets-26 targets-27 targets-28 targets-29 targets-30 19 | 20 | TESTS_ENVIRONMENT = DMAKEPROG="../dmake" 21 | 22 | EXTRA_DIST = $(TESTS) 23 | -------------------------------------------------------------------------------- /tests/targets-21: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | 3 | # 12.07.2007 Volker Quetschke 4 | # Another %-target testcase. 5 | # (issue 78837) 6 | 7 | : ${DMAKEPROG:=dmake} 8 | file1="mfile1.mk" 9 | file2="aaa.aaa" 10 | tmpfiles="$file1 $file2" 11 | STARTDIR="`pwd`"; WORKDIR="$0-OUTPUT" 12 | CLEANUP="eval (cd $STARTDIR; rm -rf $WORKDIR)" 13 | $CLEANUP # Zap remnants of any failed run 14 | mkdir "$WORKDIR"; cd "$WORKDIR" 15 | 16 | trap "{ echo 'trapped signal - removing temporary files' ; $CLEANUP ; }" 1 2 3 15 17 | 18 | # Create test environment 19 | touch aaa.aaa 20 | 21 | # Remember to quote variables in generated makefiles( $ -> \$ ). 22 | cat > $file1 <&1 ` 40 | result1=$? 41 | 42 | if test "$output1" != "building aaa.bbb"; then 43 | echo "Wrong result: $output1" 44 | result1=1 45 | else 46 | echo "OK" 47 | fi 48 | 49 | if test $result1 -eq 0 ; then 50 | echo "Success - Cleaning up" 51 | $CLEANUP 52 | exit 53 | else 54 | echo "Failure!" 55 | exit 1 56 | fi 57 | -------------------------------------------------------------------------------- /tests/targets-8: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | 3 | # 13.06.2006 Volker Quetschke 4 | # .SETDIR used to fail for multiple percent targets. 5 | # (issue 64431) 6 | 7 | : ${DMAKEPROG:=dmake} 8 | file1="mfile1.mk" 9 | tmpfiles="$file1" 10 | STARTDIR="`pwd`"; WORKDIR="$0-OUTPUT" 11 | CLEANUP="eval (cd $STARTDIR; rm -rf $WORKDIR)" 12 | $CLEANUP # Zap remnants of any failed run 13 | mkdir "$WORKDIR"; cd "$WORKDIR" 14 | 15 | trap "{ echo 'trapped signal - removing temporary files' ; $CLEANUP ; }" 1 2 3 15 16 | 17 | # Remember to quote variables in generated makefiles( $ -> \$ ). 18 | # Expect xxx.1 and xxx.2 to be build 19 | # that gets build. 20 | cat > $file1 <&1 ` 32 | result1=$? 33 | 34 | if echo $output1 | grep 'OKOK' > /dev/null 2>&1 ; then 35 | dummy=1 36 | # OK 37 | else 38 | echo "Test 1: Wrong result: $output1" 39 | echo 40 | result1=1 41 | fi 42 | 43 | if test $result1 -eq 0 ; then 44 | echo "Success - Cleaning up" 45 | $CLEANUP 46 | result=0 47 | else 48 | echo "Failure!" 49 | result=1 50 | fi 51 | exit $result 52 | -------------------------------------------------------------------------------- /unix/config.mk: -------------------------------------------------------------------------------- 1 | # This is an OS specific configuration file 2 | # It assumes that OBJDIR, TARGET and DEBUG are previously defined. 3 | # It defines CFLAGS, LDARGS, CPPFLAGS, STARTUPFILE, LDOBJS 4 | # PRINTER, PRINTFLAGS 5 | # It augments SRC, OBJDIR, TARGET, CFLAGS, LDLIBS 6 | # 7 | PRINTER = hw 8 | PRINTFLAGS = -P$(PRINTER) 9 | STARTUPFILE = $(OS)/startup.mk 10 | CPPFLAGS = $(CFLAGS) 11 | LDOBJS = $(CSTARTUP) $(OBJDIR)/{$(<:f)} 12 | LDARGS = $(LDFLAGS) -o $@ $(LDOBJS) $(LDLIBS) 13 | 14 | # Debug flags 15 | DB_CFLAGS = -g -DDBUG 16 | DB_LDFLAGS = -g 17 | DB_LDLIBS = 18 | 19 | # NO Debug flags 20 | NDB_CFLAGS = -O 21 | NDB_LDFLAGS = -O 22 | NDB_LDLIBS = 23 | 24 | # Local configuration modifications for CFLAGS. 25 | CFLAGS += -I$(OS) 26 | 27 | # Sources that must be defined for each different version 28 | OSSRC := arlib.c dirbrk.c rmprq.c ruletab.c runargv.c dcache.c 29 | SRC += $(OSSRC) 30 | .SETDIR=$(OS) : $(OSSRC) 31 | 32 | # Set source dirs so that we can find files named in this 33 | # config file. 34 | .SOURCE.h : $(OS) 35 | 36 | # See if we modify anything in the lower levels. 37 | .IF $(OSRELEASE) != $(NULL) 38 | .INCLUDE .IGNORE : $(OS)$(DIRSEPSTR)$(OSRELEASE)$(DIRSEPSTR)config.mk 39 | .END 40 | -------------------------------------------------------------------------------- /tests/targets-12: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | 3 | # 10.07.2006 Volker Quetschke 4 | # Check that dmake warns if it encounters .SUFFIXES 5 | # (issue 66567) 6 | 7 | : ${DMAKEPROG:=dmake} 8 | file1="mfile1.mk" 9 | tmpfiles="$file1" 10 | STARTDIR="`pwd`"; WORKDIR="$0-OUTPUT" 11 | CLEANUP="eval (cd $STARTDIR; rm -rf $WORKDIR)" 12 | $CLEANUP # Zap remnants of any failed run 13 | mkdir "$WORKDIR"; cd "$WORKDIR" 14 | 15 | trap "{ echo 'trapped signal - removing temporary files' ; $CLEANUP ; }" 1 2 3 15 16 | 17 | # Remember to quote variables in generated makefiles( $ -> \$ ). 18 | # Check that we issue a warning. 19 | cat > $file1 <&1 ` 29 | result1=$? 30 | 31 | if echo $output1 | grep 'Warning: -- The .SUFFIXES' > /dev/null 2>&1 ; then 32 | dummy=1 33 | # OK 34 | else 35 | echo "Test 1: Wrong result: $output1" 36 | echo 37 | result1=1 38 | fi 39 | 40 | if test $result1 -eq 0 ; then 41 | echo "Success - Cleaning up" 42 | $CLEANUP 43 | result=0 44 | else 45 | echo "Failure! dmake failed to issue a warning." 46 | result=1 47 | fi 48 | exit $result 49 | -------------------------------------------------------------------------------- /winnt/dchdir.c: -------------------------------------------------------------------------------- 1 | /* RCS $Id: dchdir.c,v 1.1.1.1 2000-09-22 15:33:37 hr Exp $ 2 | -- 3 | -- SYNOPSIS 4 | -- Change directory. 5 | -- 6 | -- DESCRIPTION 7 | -- Under DOS change the current drive as well as the current directory. 8 | -- 9 | -- AUTHOR 10 | -- Dennis Vadura, dvadura@dmake.wticorp.com 11 | -- 12 | -- WWW 13 | -- http://dmake.wticorp.com/ 14 | -- 15 | -- COPYRIGHT 16 | -- Copyright (c) 1996,1997 by WTI Corp. All rights reserved. 17 | -- 18 | -- This program is NOT free software; you can redistribute it and/or 19 | -- modify it under the terms of the Software License Agreement Provided 20 | -- in the file /COPYING. 21 | -- 22 | -- LOG 23 | -- Use cvs log to obtain detailed change logs. 24 | */ 25 | 26 | #include 27 | #include 28 | #include "extern.h" 29 | 30 | PUBLIC int 31 | dchdir(path) 32 | char *path; 33 | { 34 | int res; 35 | 36 | res = chdir(path); 37 | 38 | if (res != -1 && path[1] == ':') { 39 | unsigned new_drive; 40 | 41 | /* for WIN32 just use the _chdrive library call */ 42 | new_drive = (*path & ~0x20) - 'A' + 1; 43 | _chdrive(new_drive); 44 | } 45 | 46 | return (res); 47 | } 48 | -------------------------------------------------------------------------------- /msdos/dchdir.c: -------------------------------------------------------------------------------- 1 | /* RCS $Id: dchdir.c,v 1.1.1.1 2000-09-22 15:33:27 hr Exp $ 2 | -- 3 | -- SYNOPSIS 4 | -- Change directory. 5 | -- 6 | -- DESCRIPTION 7 | -- Under DOS change the current drive as well as the current directory. 8 | -- 9 | -- AUTHOR 10 | -- Dennis Vadura, dvadura@dmake.wticorp.com 11 | -- 12 | -- WWW 13 | -- http://dmake.wticorp.com/ 14 | -- 15 | -- COPYRIGHT 16 | -- Copyright (c) 1996,1997 by WTI Corp. All rights reserved. 17 | -- 18 | -- This program is NOT free software; you can redistribute it and/or 19 | -- modify it under the terms of the Software License Agreement Provided 20 | -- in the file /COPYING. 21 | -- 22 | -- LOG 23 | -- Use cvs log to obtain detailed change logs. 24 | */ 25 | 26 | #include 27 | #include "extern.h" 28 | 29 | PUBLIC int 30 | dchdir(path) 31 | char *path; 32 | { 33 | int res; 34 | 35 | res = chdir(path); 36 | 37 | if (res != -1 && path[1] == ':') { 38 | union REGS reg; 39 | 40 | /* we must change the logged drive, since the chdir worked. */ 41 | reg.h.ah = 0x0E; 42 | reg.h.dl = (*path & ~0x20) - 'A' + 1; 43 | intdos(®, ®); 44 | } 45 | 46 | return (res); 47 | } 48 | -------------------------------------------------------------------------------- /tests/targets-22: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | 3 | # 12.07.2007 Volker Quetschke 4 | # Check that intermediate targets are marked removable. 5 | # (issue 80143) 6 | 7 | : ${DMAKEPROG:=dmake} 8 | file1="mfile1.mk" 9 | file2="aaa.aaa" 10 | tmpfiles="$file1 $file2" 11 | STARTDIR="`pwd`"; WORKDIR="$0-OUTPUT" 12 | CLEANUP="eval (cd $STARTDIR; rm -rf $WORKDIR)" 13 | $CLEANUP # Zap remnants of any failed run 14 | mkdir "$WORKDIR"; cd "$WORKDIR" 15 | 16 | trap "{ echo 'trapped signal - removing temporary files' ; $CLEANUP ; }" 1 2 3 15 17 | 18 | # Create test environment 19 | touch aaa.aaa 20 | 21 | # Remember to quote variables in generated makefiles( $ -> \$ ). 22 | cat > $file1 <&1 ` 40 | result1=$? 41 | 42 | if test "$output1" != "remove xx.b"; then 43 | echo "Wrong result: $output1" 44 | result1=1 45 | else 46 | echo "OK" 47 | fi 48 | 49 | if test $result1 -eq 0 ; then 50 | echo "Success - Cleaning up" 51 | $CLEANUP 52 | exit 53 | else 54 | echo "Failure!" 55 | exit 1 56 | fi 57 | -------------------------------------------------------------------------------- /winnt/microsft/sysintf.h: -------------------------------------------------------------------------------- 1 | /* RCS $Id: sysintf.h,v 1.3 2007-01-18 09:52:02 vg Exp $ 2 | -- 3 | -- SYNOPSIS 4 | -- Interfaces for sysintf.c 5 | -- 6 | -- DESCRIPTION 7 | -- Abstractions of functions in sysintf.c 8 | -- 9 | -- AUTHOR 10 | -- Dennis Vadura, dvadura@dmake.wticorp.com 11 | -- 12 | -- WWW 13 | -- http://dmake.wticorp.com/ 14 | -- 15 | -- COPYRIGHT 16 | -- Copyright (c) 1996,1997 by WTI Corp. All rights reserved. 17 | -- 18 | -- This program is NOT free software; you can redistribute it and/or 19 | -- modify it under the terms of the Software License Agreement Provided 20 | -- in the file /COPYING. 21 | -- 22 | -- LOG 23 | -- Use cvs log to obtain detailed change logs. 24 | */ 25 | 26 | #define DMSTAT stat 27 | #define VOID_LCACHE(l,m) 28 | #define GETPID _psp 29 | #define Hook_std_writes(A) 30 | 31 | extern char * tempnam(); 32 | extern char * getcwd(); 33 | 34 | /* 35 | ** standard C items 36 | */ 37 | 38 | /* 39 | ** make parameters 40 | */ 41 | #ifdef _POSIX_NAME_MAX 42 | #undef _POSIX_NAME_MAX 43 | #endif 44 | #define _POSIX_NAME_MAX _MAX_FNAME 45 | 46 | #ifdef _POSIX_PATH_MAX 47 | #undef _POSIX_PATH_MAX 48 | #endif 49 | #define _POSIX_PATH_MAX _MAX_PATH 50 | -------------------------------------------------------------------------------- /win95/dchdir.c: -------------------------------------------------------------------------------- 1 | /* RCS $Id: dchdir.c,v 1.1.1.1 2000-09-22 15:33:36 hr Exp $ 2 | -- 3 | -- SYNOPSIS 4 | -- Change directory. 5 | -- 6 | -- DESCRIPTION 7 | -- Under DOS change the current drive as well as the current directory. 8 | -- 9 | -- AUTHOR 10 | -- Dennis Vadura, dvadura@dmake.wticorp.com 11 | -- 12 | -- WWW 13 | -- http://dmake.wticorp.com/ 14 | -- 15 | -- COPYRIGHT 16 | -- Copyright (c) 1996,1997 by WTI Corp. All rights reserved. 17 | -- 18 | -- This program is NOT free software; you can redistribute it and/or 19 | -- modify it under the terms of the Software License Agreement Provided 20 | -- in the file /COPYING. 21 | -- 22 | -- LOG 23 | -- Use cvs log to obtain detailed change logs. 24 | */ 25 | 26 | #if 0 27 | #include 28 | #endif 29 | #include 30 | #include "extern.h" 31 | 32 | PUBLIC int 33 | dchdir(path) 34 | char *path; 35 | { 36 | int res; 37 | 38 | res = chdir(path); 39 | 40 | if (res != -1 && path[1] == ':') { 41 | unsigned new_drive; 42 | 43 | /* for WIN32 just use the _chdrive library call */ 44 | new_drive = (*path & ~0x20) - 'A' + 1; 45 | _chdrive(new_drive); 46 | } 47 | 48 | return (res); 49 | } 50 | -------------------------------------------------------------------------------- /mac/dirbrk.c: -------------------------------------------------------------------------------- 1 | /* RCS $Id: dirbrk.c,v 1.1.1.1 2000-09-22 15:33:27 hr Exp $ 2 | -- 3 | -- SYNOPSIS 4 | -- Define the directory separator string. 5 | -- 6 | -- DESCRIPTION 7 | -- Define this string for any character that may appear in a path name 8 | -- and can be used as a directory separator. 9 | -- 10 | -- AUTHOR 11 | -- Dennis Vadura, dvadura@dmake.wticorp.com 12 | -- 13 | -- WWW 14 | -- http://dmake.wticorp.com/ 15 | -- 16 | -- COPYRIGHT 17 | -- Copyright (c) 1996,1997 by WTI Corp. All rights reserved. 18 | -- 19 | -- This program is NOT free software; you can redistribute it and/or 20 | -- modify it under the terms of the Software License Agreement Provided 21 | -- in the file /COPYING. 22 | -- 23 | -- LOG 24 | -- Use cvs log to obtain detailed change logs. 25 | */ 26 | 27 | #include "extern.h" 28 | 29 | /* mac only uses ':' */ 30 | char* DirBrkStr = ":"; 31 | 32 | /* 33 | ** Return TRUE if the name is the full specification of a path name to a file 34 | ** starting at the root of the file system, otherwise return FALSE 35 | */ 36 | PUBLIC int 37 | If_root_path(name) 38 | char *name; 39 | { 40 | return( (strchr(name, ':') != NIL(char)) && 41 | (name[0] != ':') ); 42 | } 43 | -------------------------------------------------------------------------------- /os2/dirent.h: -------------------------------------------------------------------------------- 1 | /* DIRLIB.H by M. J. Weinstein Released to public domain 1-Jan-89 */ 2 | 3 | #ifndef _DIRLIB_h_ 4 | #define _DIRLIB_h_ 5 | 6 | #define INCL_DOSFILEMGR 7 | #include 8 | #include 9 | #include 10 | #include "stdmacs.h" 11 | 12 | #define MAXNAMLEN _MAX_FNAME 13 | 14 | struct dirent { 15 | long d_ino; 16 | unsigned short d_reclen; 17 | unsigned short d_namlen; 18 | char d_name[MAXNAMLEN+1]; 19 | }; 20 | 21 | typedef struct { 22 | HDIR dd_handle; /* Handle for FindFirst/Next */ 23 | FILEFINDBUF3 dd_dta; /* Disk transfer area for this dir. */ 24 | ULONG dd_count; /* Count for FindFirst/Next */ 25 | APIRET dd_stat; /* Status return from last lookup */ 26 | char dd_name[1]; /* Full name of file -- struct is extended */ 27 | } DIR; 28 | 29 | extern DIR *opendir ANSI((char *)); 30 | extern struct dirent *readdir ANSI((DIR *)); 31 | extern long telldir ANSI((DIR *)); 32 | extern void seekdir ANSI((DIR *, long)); 33 | extern void closedir ANSI((DIR *)); 34 | 35 | #define rewinddir(dirp) seekdir(dirp,0L) 36 | #endif 37 | -------------------------------------------------------------------------------- /msdos/sysintf.h: -------------------------------------------------------------------------------- 1 | /* RCS $Id: sysintf.h,v 1.2 2007-01-18 09:34:40 vg Exp $ 2 | -- 3 | -- SYNOPSIS 4 | -- Interfaces for sysintf.c 5 | -- 6 | -- DESCRIPTION 7 | -- Abstractions of functions in sysintf.c 8 | -- 9 | -- AUTHOR 10 | -- Dennis Vadura, dvadura@dmake.wticorp.com 11 | -- 12 | -- WWW 13 | -- http://dmake.wticorp.com/ 14 | -- 15 | -- COPYRIGHT 16 | -- Copyright (c) 1996,1997 by WTI Corp. All rights reserved. 17 | -- 18 | -- This program is NOT free software; you can redistribute it and/or 19 | -- modify it under the terms of the Software License Agreement Provided 20 | -- in the file /COPYING. 21 | -- 22 | -- LOG 23 | -- Use cvs log to obtain detailed change logs. 24 | */ 25 | #define DMSTAT stat 26 | #define VOID_LCACHE(l,m) 27 | #define GETPID _psp 28 | 29 | extern char * tempnam(); 30 | extern char * getcwd(); 31 | 32 | /* 33 | ** standard C items 34 | */ 35 | 36 | /* 37 | ** DOS interface standard items 38 | */ 39 | #define chdir(p) dchdir(p) 40 | 41 | /* 42 | ** make parameters 43 | */ 44 | #ifdef _POSIX_NAME_MAX 45 | #undef _POSIX_NAME_MAX 46 | #endif 47 | #define _POSIX_NAME_MAX 12 48 | 49 | #ifdef _POSIX_PATH_MAX 50 | #undef _POSIX_PATH_MAX 51 | #endif 52 | #define _POSIX_PATH_MAX 64 53 | -------------------------------------------------------------------------------- /tests/misc-16: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | 3 | # 17.11.2006 Volker Quetschke 4 | # Check that parallel builds $(shell ...) only waits its own target and 5 | # not for all previous recipe lines. 6 | # (issue 61856) 7 | 8 | : ${DMAKEPROG:=dmake} 9 | file1="mfile1.mk" 10 | file2="mytarget.dpcc" 11 | tmpfiles="$file1 $file2" 12 | STARTDIR="`pwd`"; WORKDIR="$0-OUTPUT" 13 | CLEANUP="eval (cd $STARTDIR; rm -rf $WORKDIR)" 14 | $CLEANUP # Zap remnants of any failed run 15 | mkdir "$WORKDIR"; cd "$WORKDIR" 16 | 17 | trap "{ echo 'trapped signal - removing temporary files' ; $CLEANUP ; }" 1 2 3 15 18 | 19 | # Remember to quote variables in generated makefiles( $ -> \$ ). 20 | cat > $file1 </COPYING. 27 | -- 28 | -- LOG 29 | -- Use cvs log to obtain detailed change logs. 30 | */ 31 | 32 | #include "extern.h" 33 | 34 | 35 | 36 | /* 37 | * Put envp in environ and call dmake's main(). 38 | */ 39 | #undef main 40 | void main(int argc, char **argv, char **envp) { 41 | environ = envp; 42 | dmakemain (argc, argv); 43 | } /* void main () */ 44 | -------------------------------------------------------------------------------- /msdos/dirbrk.c: -------------------------------------------------------------------------------- 1 | /* RCS $Id: dirbrk.c,v 1.1.1.1 2000-09-22 15:33:27 hr Exp $ 2 | -- 3 | -- SYNOPSIS 4 | -- Define the directory separator string. 5 | -- 6 | -- DESCRIPTION 7 | -- Define this string for any character that may appear in a path name 8 | -- and can be used as a directory separator. 9 | -- 10 | -- AUTHOR 11 | -- Dennis Vadura, dvadura@dmake.wticorp.com 12 | -- 13 | -- WWW 14 | -- http://dmake.wticorp.com/ 15 | -- 16 | -- COPYRIGHT 17 | -- Copyright (c) 1996,1997 by WTI Corp. All rights reserved. 18 | -- 19 | -- This program is NOT free software; you can redistribute it and/or 20 | -- modify it under the terms of the Software License Agreement Provided 21 | -- in the file /COPYING. 22 | -- 23 | -- LOG 24 | -- Use cvs log to obtain detailed change logs. 25 | */ 26 | 27 | #include "extern.h" 28 | 29 | /* dos uses /, \, and : */ 30 | char* DirBrkStr = "/\\:"; 31 | 32 | /* 33 | ** Return TRUE if the name is the full specification of a path name to a file 34 | ** starting at the root of the file system, otherwise return FALSE 35 | */ 36 | PUBLIC int 37 | If_root_path(name) 38 | char *name; 39 | { 40 | return( (strchr(DirBrkStr, *name) != NIL(char)) || 41 | (isalpha(*name) && name[1] == ':') ); 42 | } 43 | -------------------------------------------------------------------------------- /startup/mac/macros.mk: -------------------------------------------------------------------------------- 1 | # Define MPW MAC specific macros. 2 | # Assumes CodeWarrior for Mac 5.0 C, change as needed. 3 | # 4 | 5 | A *:= .lib 6 | S *:= .s 7 | V *:= v 8 | TMPDIR *:= $(TempFolder) 9 | 10 | # import library definitions 11 | .IMPORT .IGNORE : CLibraries Libraries 12 | 13 | # Set arguments for the SHELL. Since we can't execute sub-processes, 14 | # these variables are not important, except for some makefiles that check 15 | # for some values to determine the platform. 16 | SHELL *:= "{MPW}MPW Shell" 17 | SHELLFLAGS *:= 18 | GROUPFLAGS *:= 19 | SHELLMETAS *:= 20 | 21 | # Define toolkit macros 22 | CC *:= MWCPPC 23 | AS *:= PPCAsm 24 | LD *:= MWLinkPPC 25 | AR *:= 26 | ARFLAGS *:= 27 | RM *:= delete 28 | RMFLAGS *:= 29 | MV *:= rename 30 | YTAB *:= 31 | LEXYY *:= 32 | 33 | LDLIBS *= "{SharedLibraries}StdCLib" "{SharedLibraries}InterfaceLib" \ 34 | "{PPCLibraries}StdCRuntime.o" "{PPCLibraries}PPCCRuntime.o" \ 35 | "{Libraries}MathLib.o" "{PPCLibraries}PPCToolLibs.o" 36 | 37 | # Disable the print command 38 | PRINT *= 39 | 40 | # Make certain to disable defining how to make executables. 41 | __.EXECS !:= 42 | -------------------------------------------------------------------------------- /tests/targets-3: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | 3 | # 03.06.2006 Volker Quetschke 4 | # . targets were silently ignored despite the illegal syntax. 5 | # (issue 65360) 6 | 7 | : ${DMAKEPROG:=dmake} 8 | file1="mfile1.mk" 9 | tmpfiles="$file1" 10 | STARTDIR="`pwd`"; WORKDIR="$0-OUTPUT" 11 | CLEANUP="eval (cd $STARTDIR; rm -rf $WORKDIR)" 12 | $CLEANUP # Zap remnants of any failed run 13 | mkdir "$WORKDIR"; cd "$WORKDIR" 14 | 15 | trap "{ echo 'trapped signal - removing temporary files' ; $CLEANUP ; }" 1 2 3 15 16 | 17 | # Remember to quote variables in generated makefiles( $ -> \$ ). 18 | # Testcase 1 - Check that warning is issued if . targets are ignored 19 | cat > $file1 <&1 ` 31 | result1=$? 32 | 33 | if echo $output1 | grep 'Warning: -- Ignoring AUGMAKE meta-target' > /dev/null 2>&1 ; then 34 | result1=0 35 | else 36 | echo "Test 1: Wrong result: $output1" 37 | echo 38 | result1=1 39 | fi 40 | 41 | if test $result1 -eq 0 ; then 42 | echo "Success - Cleaning up" 43 | $CLEANUP 44 | exit 45 | result=0 46 | else 47 | echo "Failure!" 48 | result=1 49 | fi 50 | exit $result 51 | -------------------------------------------------------------------------------- /qssl/stdlib.h: -------------------------------------------------------------------------------- 1 | /* RCS $Id: stdlib.h,v 1.1.1.1 2000-09-22 15:33:30 hr Exp $ 2 | -- 3 | -- SYNOPSIS 4 | -- stdlib interface 5 | -- 6 | -- DESCRIPTION 7 | -- Specially needed pieces of interface to the standard C lib. 8 | -- 9 | -- AUTHOR 10 | -- Dennis Vadura, dvadura@dmake.wticorp.com 11 | -- 12 | -- WWW 13 | -- http://dmake.wticorp.com/ 14 | -- 15 | -- COPYRIGHT 16 | -- Copyright (c) 1996,1997 by WTI Corp. All rights reserved. 17 | -- 18 | -- This program is NOT free software; you can redistribute it and/or 19 | -- modify it under the terms of the Software License Agreement Provided 20 | -- in the file /COPYING. 21 | -- 22 | -- LOG 23 | -- Use cvs log to obtain detailed change logs. 24 | */ 25 | #ifndef _STDLIB_INCLUDED_ 26 | #define _STDLIB_INCLUDED_ 27 | 28 | extern /*GOTO*/ _exit(); 29 | extern /*GOTO*/ exit(); 30 | extern /*GOTO*/ abort(); 31 | extern int system(); 32 | extern char *getenv(); 33 | extern char *calloc(); 34 | extern char *malloc(); 35 | extern char *realloc(); 36 | 37 | #ifndef _AIX 38 | /* The AIX compiler dies on illegal redefinition of free */ 39 | extern free(); 40 | #endif 41 | 42 | extern int errno; 43 | 44 | #ifndef EIO 45 | # include 46 | #endif 47 | 48 | #endif /* _STDLIB_INCLUDED_ */ 49 | -------------------------------------------------------------------------------- /tests/targets-23: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | 3 | # 03.08.2007 Volker Quetschke 4 | # Check that a %-target without prereq has precedence over one with 5 | # prerequisite. 6 | # (issue 80144) 7 | 8 | : ${DMAKEPROG:=dmake} 9 | file1="mfile1.mk" 10 | file2="aaa.aaa" 11 | tmpfiles="$file1 $file2" 12 | STARTDIR="`pwd`"; WORKDIR="$0-OUTPUT" 13 | CLEANUP="eval (cd $STARTDIR; rm -rf $WORKDIR)" 14 | $CLEANUP # Zap remnants of any failed run 15 | mkdir "$WORKDIR"; cd "$WORKDIR" 16 | 17 | trap "{ echo 'trapped signal - removing temporary files' ; $CLEANUP ; }" 1 2 3 15 18 | 19 | # Create test environment 20 | touch aaa.aaa 21 | 22 | # Remember to quote variables in generated makefiles( $ -> \$ ). 23 | cat > $file1 <&1 ` 41 | result1=$? 42 | 43 | if test "$output1" != "Right choice"; then 44 | echo "Wrong result: $output1" 45 | result1=1 46 | else 47 | echo "OK" 48 | fi 49 | 50 | if test $result1 -eq 0 ; then 51 | echo "Success - Cleaning up" 52 | $CLEANUP 53 | exit 54 | else 55 | echo "Failure!" 56 | exit 1 57 | fi 58 | -------------------------------------------------------------------------------- /unix/sysintf.h: -------------------------------------------------------------------------------- 1 | /* RCS $Id: sysintf.h,v 1.4 2007-10-15 15:53:38 ihi Exp $ 2 | -- 3 | -- SYNOPSIS 4 | -- Interfaces for sysintf.c 5 | -- 6 | -- DESCRIPTION 7 | -- Abstractions of functions in sysintf.c 8 | -- 9 | -- AUTHOR 10 | -- Dennis Vadura, dvadura@dmake.wticorp.com 11 | -- 12 | -- WWW 13 | -- http://dmake.wticorp.com/ 14 | -- 15 | -- COPYRIGHT 16 | -- Copyright (c) 1996,1997 by WTI Corp. All rights reserved. 17 | -- 18 | -- This program is NOT free software; you can redistribute it and/or 19 | -- modify it under the terms of the Software License Agreement Provided 20 | -- in the file /COPYING. 21 | -- 22 | -- LOG 23 | -- Use cvs log to obtain detailed change logs. 24 | */ 25 | 26 | #ifdef _WIN32 27 | # error This is unix/sysintf.h , this can not be included on Win32 28 | #endif 29 | #define DMSTAT stat 30 | #define VOID_LCACHE(l,m) (void) void_lcache(l,m) 31 | #define Hook_std_writes(A) 32 | #define GETPID getpid() 33 | 34 | #ifndef S_IFDIR 35 | #define S_IFDIR 0040000 36 | #endif 37 | 38 | #ifndef S_IFMT 39 | #define S_IFMT 0170000 40 | #endif 41 | 42 | /* 43 | ** standard C items 44 | */ 45 | 46 | /* 47 | ** DOS interface standard items 48 | */ 49 | #define getswitchar() '-' 50 | 51 | /* 52 | ** Make parameters 53 | */ 54 | -------------------------------------------------------------------------------- /tests/targets-14: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | 3 | # 16.07.2006 Volker Quetschke 4 | # Check that evaluating an empty macro and thereby initializing it does not 5 | # prevent the *= and *:= operator from assigning a new value. 6 | # (issue 67166) 7 | 8 | : ${DMAKEPROG:=dmake} 9 | file1="mfile1.mk" 10 | tmpfiles="$file1" 11 | STARTDIR="`pwd`"; WORKDIR="$0-OUTPUT" 12 | CLEANUP="eval (cd $STARTDIR; rm -rf $WORKDIR)" 13 | $CLEANUP # Zap remnants of any failed run 14 | mkdir "$WORKDIR"; cd "$WORKDIR" 15 | 16 | trap "{ echo 'trapped signal - removing temporary files' ; $CLEANUP ; }" 1 2 3 15 17 | 18 | # Remember to quote variables in generated makefiles( $ -> \$ ). 19 | # Check that we set AAA to set_AAA. 20 | cat > $file1 <&1 ` 35 | result1=$? 36 | 37 | if test $output1 = "set_AAA" ; then 38 | dummy=1 39 | # OK 40 | else 41 | echo "Test 1: Wrong result: $output1" 42 | echo 43 | result1=1 44 | fi 45 | 46 | if test $result1 -eq 0 ; then 47 | echo "Success - Cleaning up" 48 | $CLEANUP 49 | result=0 50 | else 51 | echo "Failure! Unexpected result." 52 | result=1 53 | fi 54 | exit $result 55 | -------------------------------------------------------------------------------- /unix/xenix/stdlib.h: -------------------------------------------------------------------------------- 1 | /* RCS $Id: stdlib.h,v 1.1.1.1 2000-09-22 15:33:36 hr Exp $ 2 | -- 3 | -- SYNOPSIS 4 | -- stdlib interface 5 | -- 6 | -- DESCRIPTION 7 | -- Specially needed pieces of interface to the standard C lib. 8 | -- 9 | -- AUTHOR 10 | -- Dennis Vadura, dvadura@dmake.wticorp.com 11 | -- 12 | -- WWW 13 | -- http://dmake.wticorp.com/ 14 | -- 15 | -- COPYRIGHT 16 | -- Copyright (c) 1996,1997 by WTI Corp. All rights reserved. 17 | -- 18 | -- This program is NOT free software; you can redistribute it and/or 19 | -- modify it under the terms of the Software License Agreement Provided 20 | -- in the file /COPYING. 21 | -- 22 | -- LOG 23 | -- Use cvs log to obtain detailed change logs. 24 | */ 25 | 26 | 27 | #ifndef _STDLIB_INCLUDED_ 28 | #define _STDLIB_INCLUDED_ 29 | 30 | extern /*GOTO*/ _exit(); 31 | extern /*GOTO*/ exit(); 32 | extern /*GOTO*/ abort(); 33 | extern int system(); 34 | extern char *getenv(); 35 | extern char *calloc(); 36 | extern char *malloc(); 37 | extern char *realloc(); 38 | 39 | #ifndef _AIX 40 | /* The AIX compiler dies on illegal redefinition of free */ 41 | extern free(); 42 | #endif 43 | 44 | extern int errno; 45 | 46 | #ifndef EIO 47 | # include 48 | #endif 49 | 50 | #endif /* _STDLIB_INCLUDED_ */ 51 | -------------------------------------------------------------------------------- /tests/targets-6: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | 3 | # 13.06.2006 Volker Quetschke 4 | # Pre 4.5 dmakes didn't handle . targets if AUGMAKE was set. 5 | # (issue 66365) 6 | 7 | : ${DMAKEPROG:=dmake} 8 | file1="mfile1.mk" 9 | tmpfiles="$file1" 10 | STARTDIR="`pwd`"; WORKDIR="$0-OUTPUT" 11 | CLEANUP="eval (cd $STARTDIR; rm -rf $WORKDIR)" 12 | $CLEANUP # Zap remnants of any failed run 13 | mkdir "$WORKDIR"; cd "$WORKDIR" 14 | 15 | trap "{ echo 'trapped signal - removing temporary files' ; $CLEANUP ; }" 1 2 3 15 16 | 17 | # Remember to quote variables in generated makefiles( $ -> \$ ). 18 | # Check that .NIX is treated as meta target, making all the target 19 | # that gets build. 20 | cat > $file1 <&1 ` 34 | result1=$? 35 | 36 | if echo $output1 | grep 'Fallthrough' > /dev/null 2>&1 ; then 37 | dummy=1 38 | # OK 39 | else 40 | echo "Test 1: Wrong result: $output1" 41 | echo 42 | result1=1 43 | fi 44 | 45 | if test $result1 -eq 0 ; then 46 | echo "Success - Cleaning up" 47 | $CLEANUP 48 | result=0 49 | else 50 | echo "Failure!" 51 | result=1 52 | fi 53 | exit $result 54 | -------------------------------------------------------------------------------- /tests/misc-5: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | 3 | # 06.10.2005 Volker Quetschke 4 | # Test if infered makefile generation works. 5 | # (issue 54938) 6 | 7 | : ${DMAKEPROG:=dmake} 8 | file1="mymakefile.mk" 9 | file2="incfile.mk" 10 | file3="incfiledepend" 11 | tmpfiles="$file1 $file2 $file3" 12 | STARTDIR="`pwd`"; WORKDIR="$0-OUTPUT" 13 | CLEANUP="eval (cd $STARTDIR; rm -rf $WORKDIR)" 14 | $CLEANUP # Zap remnants of any failed run 15 | mkdir "$WORKDIR"; cd "$WORKDIR" 16 | 17 | trap "{ echo 'trapped signal - removing temporary files' ; $CLEANUP ; }" 1 2 3 15 18 | 19 | # Remember to quote variables in generated makefiles( $ -> \$ ). 20 | cat > $file1 < \$@ 27 | 28 | incfiledepend : 29 | +@sleep 1 30 | +@echo 1234 > \$@ 31 | 32 | .INCLUDE : incfile.mk 33 | 34 | all : 35 | +@echo aa:\$(AA):bb 36 | EOT 37 | 38 | output=`eval ../${DMAKEPROG} -r -P2 -f $file1 all` 39 | result=$? 40 | 41 | # The space between aaa and bbb comes from the += 42 | if test "$output" != "aa:123:bb"; then 43 | echo "Wrong result" 44 | result=1 45 | fi 46 | 47 | 48 | test $result -eq 0 && echo "Success - Cleaning up" && $CLEANUP 49 | test $result -ne 0 && echo "Failure!" 50 | exit $result 51 | --------------------------------------------------------------------------------