dmake
- Go to the directory $SRC_ROOT/dmake
- Create following subirectories: mkdir -p $HPUX_ROOT/dmake/unix/hpux/gnu/
- Modify the file: makefile
this make requires a parameter that defines what kind of environment you will be building.
As we want to use gcc on hpux i choose gcchpux. Insert following lines:
- @echo " make gcchpux - HP Unix with gcc"
- gcchpux :; /bin/sh -x < unix/hpux/gnu/make.sh
Or apply this patch
- create the file: $HPUX_ROOT/dmake/unix/hpux/getcwd.c (Don't ask me why this should be here..)
It should contain: this
- create the file: $HPUX_ROOT/dmake/unix/hpux/tempnam.c (Don't ask me why this should be here..)
It should contain: this
- create the file: $HPUX_ROOT/dmake/unix/hpux/config.h (Don't ask me why this should be here..)
It should contain: this
- create the file: $HPUX_ROOT/dmake/unix/hpux/gnu/make.sh
It should contain: this
- create the file: $HPUX_ROOT/dmake/unix/hpux/gnu/public.h
It should contain: this
- give the command: make gcchpux, which should yield: this
- If there were no errors reported, this step is completed succesfully!
dmake part 2
The created dmake must be put in the directory $SRC_ROOT/solenv/aaabbcde/bin/
And there should be a file: $SRC_ROOT/solenv/inc/aaabbcde.mk
The name aaabbcde is choosen, not generated, but reflects what will be used.
Allthough this is not clearly documented yet it seems:
- aaa indicates OS-family:
- unx : UNIX
- ... : VMS
- ... : Microsoft
- bb indicates exact OS-type
- c indicates building environment
- g : GNU compile environment
- d indicates hardware platform
- i : Intel
- p : Power pc
- s : Sparc (either 32 or 64 bit)
- r : general Risc CPU's (either 32 or 64 bit)
Contents of (641c release) $SRC_ROOT/solenv/ and $SRC_ROOT/solenv/inc:
CVS/ config/ macosp/ src/ unxlngi3/ unxsogs/ unxsols2/ wntmsci3/ zip/
bin/ inc/ prj/ unxhpgr/ unxmacxp/ unxsoli3/ unxsols3/ wntmsci7/
rm5m,sys,root #
rm5m,sys,root # ls inc/unx*
inc/unx.mk inc/unxbsds.mk inc/unxirgm.mk inc/unxlngi4.mk inc/unxlnxi.mk inc/unxsogs.mk inc/unxsols3.mk
inc/unxaixp.mk inc/unxfbsdi.mk inc/unxirxm.mk inc/unxlngp.mk inc/unxmacxp.mk inc/unxsoli2.mk
inc/unxbsda.mk inc/unxhpgr.mk inc/unxirxm3.mk inc/unxlngppc.mk inc/unxmvsg.mk inc/unxsoli3.mk
inc/unxbsdi.mk inc/unxhpxr.mk inc/unxlngi3.mk inc/unxlngr.mk inc/unxscoi.mk inc/unxsols2.mk
Also the file $SRC_ROOT/solenv/inc/unx.mkShould be checked and/or modified accordingly:
.IF
"$(COM)$(OS)$(CPU)$(GLIBC)" == "GCCLINUXI2REDHAT60"
.INCLUDE : unxlngi3.mk
.ENDIF
In case of the HP-UX port, the result should be: unxhpgr
So consequently:
- mkdir -p $SRC_ROOT/dmake/dmake $SRC_ROOT/solenv/unxhpgr/bin/
- cp $SRC_ROOT/dmake/dmake $SRC_ROOT/solenv/unxhpgr/bin/
- chmod -R a+rx $SRC_ROOT/solenv/unxhpgr/bin/
The file: $HPUX_ROOT/solenv/inc/unxhpgr.mk
should be modified,
It should contain: this
Reply? : info@a-domani.nl