Alexandre Julliard : Make.rules: Added rules for client/proxy/
server generation from IDL files.
Alexandre Julliard
julliard at wine.codeweavers.com
Wed Aug 9 06:03:30 CDT 2006
Module: wine
Branch: refs/heads/master
Commit: 4e67a4558ce74f8e71da7128efa73767a8daad64
URL: http://source.winehq.org/git/?p=wine.git;a=commit;h=4e67a4558ce74f8e71da7128efa73767a8daad64
Author: Alexandre Julliard <julliard at winehq.org>
Date: Wed Aug 9 12:38:15 2006 +0200
Make.rules: Added rules for client/proxy/server generation from IDL files.
---
.gitignore | 1 +
Make.rules.in | 23 ++++++++++++++++++++---
2 files changed, 21 insertions(+), 3 deletions(-)
diff --git a/.gitignore b/.gitignore
index cbdb7b7..2bbaa52 100644
--- a/.gitignore
+++ b/.gitignore
@@ -10,6 +10,7 @@
*.so
*.tab.[ch]
*.tlb
+*_[cips].c
*~
/Make.rules
/TAGS
diff --git a/Make.rules.in b/Make.rules.in
index dd38cfa..18cfd5c 100644
--- a/Make.rules.in
+++ b/Make.rules.in
@@ -108,7 +108,7 @@ prog_manext = 1
api_manext = 3w
conf_manext = 5
CLEAN_FILES = *.o *.a *.so *.ln *.$(LIBEXT) \\\#*\\\# *~ *% .\\\#* *.bak *.orig *.rej \
- *.flc *.tab.c *.tab.h @LEX_OUTPUT_ROOT at .c core
+ *.flc *.res *.mc.rc *.tab.[ch] @LEX_OUTPUT_ROOT at .c core
OBJS = $(C_SRCS:.c=.o) $(EXTRA_OBJS)
@@ -117,7 +117,7 @@ LINTS = $(C_SRCS:.c=.ln)
# Implicit rules
-.SUFFIXES: .mc .rc .mc.rc .res .res.o .spec .spec.o .idl .tlb .h .ok .sfd .ttf .man.in .man
+.SUFFIXES: .mc .rc .mc.rc .res .res.o .spec .spec.o .idl .tlb .h .ok .sfd .ttf .man.in .man _c.c _i.c _p.c _s.c
.c.o:
$(CC) -c $(ALLCFLAGS) -o $@ $<
@@ -140,6 +140,18 @@ # Implicit rules
.idl.h:
$(WIDL) $(IDLFLAGS) -h -H $@ $<
+.idl_c.c:
+ $(WIDL) $(IDLFLAGS) -c -C $@ $<
+
+.idl_i.c:
+ $(WIDL) $(IDLFLAGS) -u -U $@ $<
+
+.idl_p.c:
+ $(WIDL) $(IDLFLAGS) -p -P $@ $<
+
+.idl_s.c:
+ $(WIDL) $(IDLFLAGS) -s -S $@ $<
+
.idl.tlb:
$(WIDL) $(IDLFLAGS) -t -T $@ $<
@@ -221,7 +233,7 @@ # Rules for cleaning
testclean:: $(SUBDIRS:%=%/__testclean__)
clean:: $(SUBDIRS:%=%/__clean__) $(EXTRASUBDIRS:%=%/__clean__)
- $(RM) $(CLEAN_FILES) $(RC_SRCS:.rc=.res) $(RC_SRCS16:.rc=.res) $(MC_SRCS:.mc=.mc.rc) $(IDL_SRCS:.idl=.h) $(IDL_TLB_SRCS:.idl=.tlb) $(PROGRAMS) $(RC_BINARIES) $(MANPAGES)
+ $(RM) $(CLEAN_FILES) $(IDL_SRCS:.idl=.h) $(IDL_SRCS:.idl=_c.c) $(IDL_SRCS:.idl=_i.c) $(IDL_SRCS:.idl=_p.c) $(IDL_SRCS:.idl=_s.c) $(IDL_TLB_SRCS:.idl=.tlb) $(PROGRAMS) $(RC_BINARIES) $(MANPAGES)
.PHONY: clean testclean $(SUBDIRS:%=%/__clean__) $(SUBDIRS:%=%/__testclean__) $(EXTRASUBDIRS:%=%/__clean__)
@@ -273,6 +285,11 @@ # Misc. rules
$(IDL_SRCS:.idl=.h): $(WIDL)
+$(IDL_SRCS:.idl=_c.c): $(WIDL)
+$(IDL_SRCS:.idl=_i.c): $(WIDL)
+$(IDL_SRCS:.idl=_p.c): $(WIDL)
+$(IDL_SRCS:.idl=_s.c): $(WIDL)
+
$(IDL_TLB_SRCS:.idl=.tlb): $(WIDL)
$(SUBDIRS): dummy
More information about the wine-cvs
mailing list