DUECA/DUSIME
Loading...
Searching...
No Matches
Makefile for executable

Here is the template Makefile for creating an executable:

# ============================================================================
# item : template Makefile dueca executable
# made by : René van Paassen
# date : 010320
# ============================================================================
# =========================================================================
#
# EDIT THIS SECTION TO CHOOSE DIFFERENT DUECA COMPONENTS OR ADD EXTRA
# LIBRARIES TO LINK IN WITH YOUR PROGRAM
#
# =========================================================================
# enter a component choice for DUECA (check dueca-config for possible values)
DCOMPONENTS = --ip --dusime --extra --gtk2 --rtwv30
# specify which extra libs need to be included in the app
# all dueca's stuff is already handled by the DCOMPONENTS and
# dueca-config
EXTRALIBS =
# A second batch of extra libraries can be specified. This batch is
# included *after* all dueca's libs
EXTRALIBS2 =
# the rest is handled by generic rules
TAILFILE = $(shell dueca-config --path-datafiles)/data/MakefileTail.app
include $(TAILFILE)

A few things (might) have to be adjusted:

  • The pieces of DUECA that you are going to use:

    # enter a component choice for DUECA (check dueca-config for possible values)
    DCOMPONENTS = --ip --dusime --extra --gtk2 --rtwv30

    These are options fed to the dueca-config script. Check dueca-config to see what options are possible.

  • Any additional libraries (outside the standard DUECA libraries), that you might have used in your simulation.
    # specify which extra libs need to be included in the app
    # all dueca's stuff is already handled by the DCOMPONENTS and
    # dueca-config
    EXTRALIBS =
  • Occasionally, you need to specify libraries to be loaded after the dueca libraries:
    # A second batch of extra libraries can be specified. This batch is
    # included *after* all dueca's libs
    EXTRALIBS2 =

This makefile has been kept short, and all generic magic is kept in a file installed with DUECA.