Compiling and Distributing Via an RPM
The makefiles for the application are covered first, followed by the RPM spec file. The makefiles for the KBI and tabular executables are given in Listings Listing 13.1 and Listing 13.2; the other makefiles (those for the pie chart, the bar/line chart, and the scatter plot chart) are the same as that in Listing 13.2, except that the name of the executable is different for each one.
The Makefiles
Listing 13.1 is the makefile for the KBI executable. It is the controlling application that calls the other executables, which is why it has a slightly more complicated install section than those in Listings 13.2 and 13.3.
Listing 13.1. Makefile for the KBI Executable
# Makefile for the KBI Application. # Chapters ... |
Get MySQL Building User Interfaces now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.