genmake
genamake is a tiny bourne shell script to generate Makefiles. I wrote it because
I wanted to generate simple Makefiles, not unreadable complex junks lots of
auto Makefile generators create. genmake is stupid (I wanted it to be), it just
looks for files with .c extension in the current working directory. genmake
can create Makefile for a application or a library.
gunzip < genmake1.1.tar.gz | tar xvf - cd genimake1.1 mkdir $HOME/head cp ./skel/* $HOME/head
cp genimake to somehere in your path
How to use
Usage: genimake app (for app) genimake lib (for lib) <- does not work at this time
To make a skelon motif app xyz, type:
genimage app xyz
The following files will be created in the current working directory:
ImakeFile - The Imake file. ad2c - The script to convert app default resource file to header file. xyz.ad - The X Resources file. xyz.ad.h - The X Resources header file created from xyz.ad by ad2c script. appdef.h - The header file just includes xyz.ad.h. crui.c - The user interface file, ready to be modified. main.c - The main C file xutils.c - Contains some utility routines xyz.tmpl - The template included from Imakefile. Edit this instead of ImakeFile
You can compile the add by typing:
xmkmf make
You can run the app by typing: ./xyz. It will show a tiny window.
留言列表