makefiles: Expand define arguments directly into the generated rules.
[wine/multimedia.git] / Make.rules.in
blob7e6a09d2e579ff9013d5cb7ed2b3f99b223608ec
1 # Global rules shared by all makefiles     -*-Makefile-*-
3 # Each individual makefile may define the following variables:
4 # C_SRCS       : C sources for the module
5 # OBJC_SRCS    : Objective-C sources for the module
6 # RC_SRCS      : resource source files
7 # EXTRA_OBJS   : extra object files
8 # IMPORTS      : dlls to import
9 # DELAYIMPORTS : dlls to import in delayed mode
10 # MODCFLAGS    : extra CFLAGS for this module
12 # First some useful definitions
14 ALLCFLAGS    = $(EXTRACFLAGS) $(CPPFLAGS) $(CFLAGS) $(MODCFLAGS)
15 IDLFLAGS     = $(EXTRAIDLFLAGS)
16 RCFLAGS      = --nostdinc $(PORCFLAGS)
18 OBJS = $(C_SRCS:.c=.o) $(BISON_SRCS:.y=.tab.o) $(LEX_SRCS:.l=.yy.o) $(OBJC_SRCS:.m=.o) \
19        $(RC_SRCS:.rc=.res) $(MC_SRCS:.mc=.res) $(EXTRA_OBJS)
21 ALLCROSSCFLAGS = $(CPPFLAGS) $(CFLAGS)
23 # Rules for dependencies
25 depend: dummy
26         $(MAKEDEP) -M .
28 .PHONY: depend
30 # Rules for cleaning
32 clean::
33         $(RM) $(CLEAN_FILES)
35 .PHONY: clean
37 # Rules for installing
39 install install-lib install-dev uninstall::
41 .PHONY: install install-lib install-dev uninstall
43 # End of global rules