🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

1 total messages Started by Scott Meyers Mon, 18 Feb 1991 22:58
genclass and makefiles
#474
Author: Scott Meyers
Date: Mon, 18 Feb 1991 22:58
24 lines
1363 bytes
I know I can use the genclass facility that comes with g++ to generate .h
and .cc files from .hP and .ccP files, respectively, but I'd like to know
how to write rules for Gnu make so that .h and .cc files are dependent on
their respective .hP and .ccP files.

A prototype file List.hP will generate int.List.h and double.List.h after
the commands

    genclass int ref List
    genclass double ref List

so I need some way to say that both int.List.h and double.List.h are
dependent on List.hP, and the way to make a .h file from the corresponding
.hP file is to run genclass.  I'd like to say something like

    %1.%2.h:  %2.hP
              genclass %1 ref %2

but that's not legal syntax.  Can anybody help?

Scott

-------------------------------------------------------------------------------
What do you say to a convicted felon in Providence?  "Hello, Mr. Mayor."
Thread Navigation

This is a paginated view of messages in the thread with full content displayed inline.

Messages are displayed in chronological order, with the original post highlighted in green.

Use pagination controls to navigate through all messages in large threads.

Back to All Threads