[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Gm2] Re: special dependencies
From: |
Martin Kalbfuß |
Subject: |
[Gm2] Re: special dependencies |
Date: |
Wed, 23 Dec 2009 04:44:01 +0100 |
Sorry. Wrong mailing list.
Am Mittwoch, den 23.12.2009, 04:38 +0100 schrieb Martin Kalbfuß:
> 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
>
> SKVersion.def : config.h
> 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?
>
> Thanks.
>
--
Martin Kalbfuß <address@hidden>