mkmake - A make file generator by Martin Hohl Amiga Version 0.3 beta Imagine you have a set of 30 source files which you have to compile and link together. The original makefile is missing or unusable for your make utility. You have to set up a suitable makefile from scratch. mkmake helps you to do this job quicker and easier. You simply put those source file in a separate directory and type: mkmake -a -L #?.c >makefile or you type: mkmake -a -L file1.c file2.c file3.c ... >makefile and you have a skeleton makefile which you can edit to your needs. SYNOPSIS: mkmake [-o] [-m] [-aL] [-r] fpattern is the extension for the object files, the default is .o for AmigaDOS. is the name for the main file. -a variables SRC and OBJ are created and set to the filenames of all sources respective object files -L all filenames are lowercase -r generate calls for the librarian SUPPORTED OPERATING SYSTEMS: MS-DOS (Turbo-C 2.0) AmigaDOS 1.3 (SAS/C 5.10B) (1.3 compatible pattern matching only) AmigaDOS 2.04 (SAS/C 5.10B) (2.04 compatible pattern matching) BUGS: -o does'nt work in some cases IDEAS for future enhancements: add support for BSD and SYSV, just need to add #ifdef in scandir() add in a scanner for "#include" statements in source files to get dependencies FILES: mkmake.c Source for the main program match.o AmigaDOS 1.3 mkmake.make makefile for AmigaDOS mkmake Binary for AmigaDOS, compiled with SAS/C 5.10B mkmake.exe Binary for MS-DOS AUTHOR: Martin Hohl Robert-Leicht-Str. 132 D-W7100 Stuttgart 80 FRG Email: martinh@solaris.tynet.sub.org Contributions, ideas & comments welcome ! Send flames to /dev/null or nil: