Powerhouse Makefile for HP-UX

Darren Reely darren.reely at latticesemi.com
Thu Sep 29 14:26:56 CDT 2005


Koizar,

Sometimes the questions here get me curious and I take up the challenge. 
This is one of those. I know nearly zero about make files but a little 
google searching (make file) allowed me to learn enough to create the 
following working Makefile. I'm not sure of its 'correctness', but it 
worked for me.

Note that the first QTS file calls Quiz for compiling the end report.

Note 2, that I have 'exit' on the compiling lines, because I figure you 
are entering the compiler and will have to exit to compile the next 
program in the list.

Note 3, that I have 'BUILD' statements in every source file, so I don't 
have to worry about adding that in somehow to get a resulting object name.



#NOTE: Written on Sun Solaris Box.
DEST          = .
INSTALL       = .
MAKEFILE      = Makefile
SHELL         = /usr/bin/sh
.SUFFIXES: .qts .qtc
#SUFFIX          = .qtc:o .qts:s

CC = qtp <
.qts.qtc:
         qtp < $<
SRCS=test_traveler_r.qts asy_shipn_send.qts
OBJS=test_traveler_r.qtc asy_shipn_send.qtc

CCQD = qdesign <
.qks.qkc:
         qdesign < $<
SRCS2=tables.qks
OBJS2=tables.qkc


all: qtps qds

qtps: $(SRCS)
         $(CC) $(SRCS) ;exit

qds: $(SRCS2)
         $(CCQD) $(SRCS2) ;exit

#end of Make file <-- do not include this line.


These are the two sites that helped me;
http://www.eng.hawaii.edu/Tutor/Make/
http://vertigo.hsrl.rutgers.edu/ug/make_help.html


Good luck.

Darren


Koizar Astrid wrote:
> Hi all!
> 
> I try to build a makefile (preferably with mkmf) to rebuild Powerhouse QTP,
> Quiz and Screens.


More information about the powerh-l mailing list