2 # --- GSMP-COPYRIGHT-NOTE-BEGIN ---
4 # This copyright note is auto-generated by ./scripts/Create-CopyPatch.
5 # Please add additional copyright information _after_ the line containing
6 # the GSMP-COPYRIGHT-NOTE-END tag. Otherwise it might get removed by
7 # the ./scripts/Create-CopyPatch script. Do not edit this copyright text!
10 # General Sound Manipulation Program is Copyright (C) 2000 - 2003
11 # Valentin Ziegler and René Rebe
13 # This program is free software; you can redistribute it and/or modify
14 # it under the terms of the GNU General Public License as published by
15 # the Free Software Foundation; version 2. A copy of the GNU General
16 # Public License can be found at LICENSE.
18 # This program is distributed in the hope that it will be useful, but
19 # WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANT-
20 # ABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General
21 # Public License for more details.
23 # --- GSMP-COPYRIGHT-NOTE-END ---
25 GENERATED_MACROS = $(wildcard $(GENERATE_$(MODULE)_PATH)/*$(GENERATE_$(MODULE)_SRC_EXT))
26 GENERATED_FILES = $(addsuffix $(GENERATE_$(MODULE)_DST_EXT), $(basename $(GENERATED_MACROS)))
28 # default values for generator config vars
29 $(foreach MODULE, $(GENERATE_MODULES), $(if $(GENERATE_$(MODULE)_DST_EXT),,\
30 $(eval GENERATE_$(MODULE)_DST_EXT := .cc)))
31 $(foreach MODULE, $(GENERATE_MODULES), $(if $(GENERATE_$(MODULE)_LIST),,\
32 $(eval GENERATE_$(MODULE)_LIST := SRCS)))
33 $(foreach MODULE, $(GENERATE_MODULES), $(if $(GENERATE_$(MODULE)_PATH),,\
34 $(eval GENERATE_$(MODULE)_PATH := .)))
36 # generation of GENERATED_*_LIST and GENERATED
37 $(foreach MODULE, $(GENERATE_MODULES), $(eval $(GENERATE_$(MODULE)_LIST) += $(GENERATED_FILES)))
38 GENERATED += $(foreach MODULE, $(GENERATE_MODULES), $(GENERATED_FILES))
40 SRCS := $(filter-out $(NOT_SRCS), $(wildcard *.cc) $(SRCS))
41 INCS := $(filter-out $(NOT_INCS), $(wildcard ../include/*.hh) $(INCS))
43 DEPS := $(addsuffix .d, $(basename $(SRCS)))
44 PCHS := $(addsuffix .gch, $(INCS))
46 BUILD_OBJS := $(addsuffix .o, $(basename $(SRCS)))