Make.rules: Added rules for building the dlldata.c file.

This commit is contained in:
Alexandre Julliard 2007-12-10 14:26:13 +01:00
parent 1dbc9d50c9
commit b0585bf10f
4 changed files with 9 additions and 2 deletions

1
.gitignore vendored
View file

@ -10,6 +10,7 @@
/tags
/wine
Makefile
dlldata.c
dlls/Makedll.rules
dlls/Makeimplib.rules
dlls/Maketest.rules

View file

@ -114,7 +114,7 @@ IDL_GEN_C_SRCS = $(IDL_C_SRCS:.idl=_c.c) $(IDL_I_SRCS:.idl=_i.c) \
IDL_GEN_HEADERS = $(IDL_H_SRCS:.idl=.h) $(IDL_C_SRCS:.idl=.h) $(IDL_I_SRCS:.idl=.h) \
$(IDL_P_SRCS:.idl=.h) $(IDL_S_SRCS:.idl=.h)
CLEAN_TARGETS = $(IDL_GEN_C_SRCS) $(IDL_GEN_HEADERS) $(IDL_TLB_SRCS:.idl=.tlb) \
CLEAN_TARGETS = $(IDL_GEN_C_SRCS) $(IDL_GEN_HEADERS) $(IDL_TLB_SRCS:.idl=.tlb) $(IDL_P_SRCS:%=dlldata.c) \
$(BISON_SRCS:.y=.tab.c) $(BISON_SRCS:.y=.tab.h) $(LEX_SRCS:.l=.yy.c) \
$(MC_SRCS:.mc=.mc.rc) $(RC_SRCS:.rc=.res) $(RC_SRCS16:.rc=.res)
@ -193,6 +193,11 @@ filter: dummy
.PHONY: all filter
# Rules for IDL files
dlldata.c: $(WIDL) Makefile.in
$(WIDL) $(IDLFLAGS) --dlldata-only --dlldata=$@ $(IDL_P_SRCS)
# Rules for resources
$(RC_SRCS:.rc=.res) $(RC_SRCS16:.rc=.res): $(WRC) $(IDL_TLB_SRCS:.idl=.tlb)

View file

@ -77,6 +77,7 @@ my @ignores = (
"/TAGS",
"/tags",
"Makefile",
"dlldata.c",
"include/config.h",
"include/stamp-h"
);

View file

@ -225,7 +225,7 @@ typedef struct
static void add_filename_node(struct list *list, const char *name)
{
filename_node_t *node = xmalloc(sizeof *node);
node->filename = xstrdup(name);
node->filename = dup_basename( name, ".idl" );
list_add_tail(list, &node->link);
}