automake
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

special dependencies


From: Martin Kalbfuß
Subject: special dependencies
Date: Wed, 23 Dec 2009 04:42:18 +0100

Hi,

I've created the following Makefile.am

SUFFIXES = .c .mod .o

M2CFLAGS = \
        -fcheck-all \
        -funbounded-by-reference \
        -Wpedantic \
        -Wpedantic-param-names \
        -Wpedantic-cast \
        -fcpp 

sklibdir = $(libdir)/gm2/sk

sklib_LIBRARIES = libsk.a

libsk_a_SOURCES = \
        SKGeneral.mod \
        SKVideo.mod \
        SKVersion.mod \
        SKTime.mod

sklib_HEADERS = \
        GeneralBase.def \
        SKGeneral.def \
        SKVersion.def \
        VideoBase.def \
        SKVideo.def \
        TimeBase.def \
        SKTime.def

SKTime.mod : SKGeneral.def TimeBase.def
SKVideo.mod : SKGeneral.def VideoBase.def
SKGeneral.mod : GeneralBase.def

.mod.o:
        $(M2C) -c $(M2CFLAGS) $<

MAINTAINERCLEANFILES = *~

It runs fine. Like it would with C sources. The problem is, that defs
aren't headers. They aren't included in the sources. If I change a
definition file, the change isn't recognized by make. Is there a way to
set the definitions as dependencies to sklib.a?

I have these extra dependencies:

SKTime.mod : SKGeneral.def TimeBase.def
SKVideo.mod : SKGeneral.def VideoBase.def
SKGeneral.mod : GeneralBase.def

Thanks.







reply via email to

[Prev in Thread] Current Thread [Next in Thread]