Alexandre Julliard | 139a4b1 | 1996-11-02 14:24:07 +0000 | [diff] [blame] | 1 | # Global rules shared by all makefiles -*-Makefile-*- |
Alexandre Julliard | bf9130a | 1996-10-13 17:45:47 +0000 | [diff] [blame] | 2 | # |
Alexandre Julliard | 81b8ee8 | 2010-09-19 12:36:48 +0200 | [diff] [blame] | 3 | # Each individual makefile may define the following variables: |
Alexandre Julliard | c53ceba | 2000-04-09 18:19:59 +0000 | [diff] [blame] | 4 | # C_SRCS : C sources for the module |
Alexandre Julliard | c53ceba | 2000-04-09 18:19:59 +0000 | [diff] [blame] | 5 | # RC_SRCS : resource source files |
Alexandre Julliard | c53ceba | 2000-04-09 18:19:59 +0000 | [diff] [blame] | 6 | # EXTRA_SRCS : extra source files for make depend |
| 7 | # EXTRA_OBJS : extra object files |
Alexandre Julliard | 3245991 | 2002-05-09 00:05:48 +0000 | [diff] [blame] | 8 | # IMPORTS : dlls to import |
| 9 | # DELAYIMPORTS : dlls to import in delayed mode |
Alexandre Julliard | c53ceba | 2000-04-09 18:19:59 +0000 | [diff] [blame] | 10 | # EXTRASUBDIRS : subdirectories that do not contain a Makefile |
Mike McCormack | b744372 | 2005-08-11 17:12:18 +0000 | [diff] [blame] | 11 | # MODCFLAGS : extra CFLAGS for this module |
Alexandre Julliard | ff8331e | 1995-09-18 11:19:54 +0000 | [diff] [blame] | 12 | |
Alexandre Julliard | d7d4fdf | 1995-12-26 15:05:24 +0000 | [diff] [blame] | 13 | # First some useful definitions |
| 14 | |
Alexandre Julliard | 81b8ee8 | 2010-09-19 12:36:48 +0200 | [diff] [blame] | 15 | LDSHARED = @LDSHARED@ |
Alexandre Julliard | bd9852c | 2010-09-19 12:40:12 +0200 | [diff] [blame] | 16 | INCLUDES = -I$(srcdir) -I. -I$(top_srcdir)/include -I$(top_builddir)/include $(EXTRAINCL) |
Mike McCormack | b744372 | 2005-08-11 17:12:18 +0000 | [diff] [blame] | 17 | ALLCFLAGS = $(INCLUDES) $(DEFS) $(DLLFLAGS) $(EXTRACFLAGS) $(CPPFLAGS) $(CFLAGS) $(MODCFLAGS) |
Alexandre Julliard | fc09423 | 2003-04-14 21:46:41 +0000 | [diff] [blame] | 18 | ALLLINTFLAGS = $(INCLUDES) $(DEFS) $(LINTFLAGS) |
Alexandre Julliard | 16cd861 | 2003-09-24 19:01:44 +0000 | [diff] [blame] | 19 | IDLFLAGS = $(INCLUDES) $(DEFS) $(EXTRAIDLFLAGS) |
Alexandre Julliard | f4ec097 | 2011-10-22 18:21:04 +0200 | [diff] [blame] | 20 | RCFLAGS = --nostdinc $(PORCFLAGS) $(TARGETFLAGS) $(INCLUDES) $(DEFS) $(EXTRARCFLAGS) |
Alexandre Julliard | 641ee76 | 1997-08-04 16:34:36 +0000 | [diff] [blame] | 21 | |
Alexandre Julliard | 1df72cc | 2007-02-09 14:32:36 +0100 | [diff] [blame] | 22 | IDL_GEN_C_SRCS = $(IDL_C_SRCS:.idl=_c.c) $(IDL_I_SRCS:.idl=_i.c) \ |
| 23 | $(IDL_P_SRCS:.idl=_p.c) $(IDL_S_SRCS:.idl=_s.c) |
| 24 | IDL_GEN_HEADERS = $(IDL_H_SRCS:.idl=.h) $(IDL_C_SRCS:.idl=.h) $(IDL_I_SRCS:.idl=.h) \ |
| 25 | $(IDL_P_SRCS:.idl=.h) $(IDL_S_SRCS:.idl=.h) |
Alexandre Julliard | ce25156 | 2006-12-29 12:42:25 +0100 | [diff] [blame] | 26 | |
Alexandre Julliard | 268976b | 2011-10-22 15:23:14 +0200 | [diff] [blame] | 27 | CLEAN_FILES = *.o *.a *.so *.mo *.ln *.res *.fake *.$(LIBEXT) \\\#*\\\# *~ *% .\\\#* *.bak *.orig *.rej *.flc core |
Alexandre Julliard | b0585bf | 2007-12-10 14:26:13 +0100 | [diff] [blame] | 28 | CLEAN_TARGETS = $(IDL_GEN_C_SRCS) $(IDL_GEN_HEADERS) $(IDL_TLB_SRCS:.idl=.tlb) $(IDL_P_SRCS:%=dlldata.c) \ |
Alexandre Julliard | 417b70b | 2011-01-24 21:23:03 +0100 | [diff] [blame] | 29 | $(BISON_SRCS:.y=.tab.c) $(BISON_SRCS:.y=.tab.h) $(LEX_SRCS:.l=.yy.c) \ |
Alexandre Julliard | 0435b58 | 2011-05-05 15:02:25 +0200 | [diff] [blame] | 30 | $(PO_SRCS:%=rsrc.pot) $(MC_SRCS:%=msg.pot) $(XTEMPLATE_SRCS:.x=.h) |
Alexandre Julliard | ce25156 | 2006-12-29 12:42:25 +0100 | [diff] [blame] | 31 | |
Alexandre Julliard | d6cc6ca | 2009-07-03 15:47:43 +0200 | [diff] [blame] | 32 | OBJS = $(C_SRCS:.c=.o) $(BISON_SRCS:.y=.tab.o) $(LEX_SRCS:.l=.yy.o) $(IDL_GEN_C_SRCS:.c=.o) \ |
Alexandre Julliard | 729afa6 | 2011-08-01 22:14:36 +0200 | [diff] [blame] | 33 | $(IDL_R_SRCS:.idl=_r.res) $(IDL_TLB_RES) $(RC_SRCS:.rc=.res) $(MC_SRCS:.mc=.res) $(EXTRA_OBJS) |
Alexandre Julliard | d7d4fdf | 1995-12-26 15:05:24 +0000 | [diff] [blame] | 34 | |
Alexandre Julliard | cce4387 | 2010-01-23 18:00:54 +0100 | [diff] [blame] | 35 | CROSSOBJS = $(OBJS:.o=.cross.o) |
Steven Edwards | 9138fbb | 2002-07-29 23:28:09 +0000 | [diff] [blame] | 36 | LINTS = $(C_SRCS:.c=.ln) |
Patrik Stridvall | a9be64e | 1999-07-31 17:39:44 +0000 | [diff] [blame] | 37 | |
Alexandre Julliard | d8e3d18 | 2008-04-24 12:46:43 +0200 | [diff] [blame] | 38 | filter: dummy |
Alexandre Julliard | bd9852c | 2010-09-19 12:40:12 +0200 | [diff] [blame] | 39 | @$(top_srcdir)/tools/winapi/make_filter --make $(MAKE) all |
Alexandre Julliard | d8e3d18 | 2008-04-24 12:46:43 +0200 | [diff] [blame] | 40 | |
| 41 | .PHONY: all filter |
| 42 | |
Alexandre Julliard | d7d4fdf | 1995-12-26 15:05:24 +0000 | [diff] [blame] | 43 | # Implicit rules |
| 44 | |
Alexandre Julliard | 268976b | 2011-10-22 15:23:14 +0200 | [diff] [blame] | 45 | .SUFFIXES: .mc .rc .res .idl .tlb .h .y .l .tab.c .tab.h .yy.c .ok .man.in .man _c.c _i.c _p.c _s.c _r.res _t.res .cross.o .po .mo @MAINTAINER_MODE@ .sfd .ttf .svg .ico .bmp |
Alexandre Julliard | ff8331e | 1995-09-18 11:19:54 +0000 | [diff] [blame] | 46 | |
| 47 | .c.o: |
François Gouget | 1c3a242 | 2001-11-09 19:15:51 +0000 | [diff] [blame] | 48 | $(CC) -c $(ALLCFLAGS) -o $@ $< |
Alexandre Julliard | ff8331e | 1995-09-18 11:19:54 +0000 | [diff] [blame] | 49 | |
Alexandre Julliard | cce4387 | 2010-01-23 18:00:54 +0100 | [diff] [blame] | 50 | .c.cross.o: |
Alexandre Julliard | 5d2b8e7 | 2010-04-08 17:29:11 +0200 | [diff] [blame] | 51 | $(CROSSCC) -c $(INCLUDES) $(DEFS) -DWINE_CROSSTEST $(CPPFLAGS) $(CFLAGS) -o $@ $< |
Alexandre Julliard | cce4387 | 2010-01-23 18:00:54 +0100 | [diff] [blame] | 52 | |
Alexandre Julliard | 9c085cb | 2006-09-09 13:16:22 +0200 | [diff] [blame] | 53 | .y.tab.c: |
Alexandre Julliard | bcdc5fb | 2006-09-11 21:47:49 +0200 | [diff] [blame] | 54 | $(BISON) $(BISONFLAGS) -p $*_ -o $@ $< |
Alexandre Julliard | 9c085cb | 2006-09-09 13:16:22 +0200 | [diff] [blame] | 55 | |
| 56 | .y.tab.h: |
Alexandre Julliard | bcdc5fb | 2006-09-11 21:47:49 +0200 | [diff] [blame] | 57 | $(BISON) $(BISONFLAGS) -p $*_ -o $*.tab.c -d $< |
Alexandre Julliard | 9c085cb | 2006-09-09 13:16:22 +0200 | [diff] [blame] | 58 | |
| 59 | .l.yy.c: |
Alexandre Julliard | 4091627 | 2007-03-08 13:19:50 +0100 | [diff] [blame] | 60 | $(FLEX) $(LEXFLAGS) -o$@ $< |
Alexandre Julliard | 9c085cb | 2006-09-09 13:16:22 +0200 | [diff] [blame] | 61 | |
Alexandre Julliard | 9771ad8 | 2011-01-18 16:56:02 +0100 | [diff] [blame] | 62 | .mc.res: |
Alexandre Julliard | 417b70b | 2011-01-24 21:23:03 +0100 | [diff] [blame] | 63 | $(LDPATH) $(WMC) -U -O res -P $(top_srcdir)/po -o $@ $< |
Alexandre Julliard | f5aee67 | 2000-07-25 17:52:08 +0000 | [diff] [blame] | 64 | |
Alexandre Julliard | a845b88 | 1998-06-01 10:44:35 +0000 | [diff] [blame] | 65 | .rc.res: |
Alexandre Julliard | c685b99 | 2010-09-29 20:13:44 +0200 | [diff] [blame] | 66 | $(LDPATH) $(WRC) $(RCFLAGS) -o $@ $< |
Alexandre Julliard | a845b88 | 1998-06-01 10:44:35 +0000 | [diff] [blame] | 67 | |
Alexandre Julliard | 233766a | 2004-09-20 21:48:42 +0000 | [diff] [blame] | 68 | .idl.h: |
Alexandre Julliard | 233814c | 2010-11-27 12:33:05 +0100 | [diff] [blame] | 69 | $(WIDL) $(IDLFLAGS) -h -o $@ $< |
Alexandre Julliard | 233766a | 2004-09-20 21:48:42 +0000 | [diff] [blame] | 70 | |
Alexandre Julliard | 4e67a45 | 2006-08-09 12:38:15 +0200 | [diff] [blame] | 71 | .idl_c.c: |
Alexandre Julliard | 233814c | 2010-11-27 12:33:05 +0100 | [diff] [blame] | 72 | $(WIDL) $(IDLFLAGS) -c -o $@ $< |
Alexandre Julliard | 4e67a45 | 2006-08-09 12:38:15 +0200 | [diff] [blame] | 73 | |
| 74 | .idl_i.c: |
Alexandre Julliard | 233814c | 2010-11-27 12:33:05 +0100 | [diff] [blame] | 75 | $(WIDL) $(IDLFLAGS) -u -o $@ $< |
Alexandre Julliard | 4e67a45 | 2006-08-09 12:38:15 +0200 | [diff] [blame] | 76 | |
| 77 | .idl_p.c: |
Alexandre Julliard | 233814c | 2010-11-27 12:33:05 +0100 | [diff] [blame] | 78 | $(WIDL) $(IDLFLAGS) -p -o $@ $< |
Alexandre Julliard | 4e67a45 | 2006-08-09 12:38:15 +0200 | [diff] [blame] | 79 | |
Alexandre Julliard | 1a2837a | 2010-11-30 11:53:52 +0100 | [diff] [blame] | 80 | .idl_r.res: |
| 81 | $(WIDL) $(IDLFLAGS) -r -o $@ $< |
| 82 | |
Alexandre Julliard | 4e67a45 | 2006-08-09 12:38:15 +0200 | [diff] [blame] | 83 | .idl_s.c: |
Alexandre Julliard | 233814c | 2010-11-27 12:33:05 +0100 | [diff] [blame] | 84 | $(WIDL) $(IDLFLAGS) -s -o $@ $< |
Alexandre Julliard | 4e67a45 | 2006-08-09 12:38:15 +0200 | [diff] [blame] | 85 | |
Huw Davies | 4046846 | 2005-01-28 14:13:08 +0000 | [diff] [blame] | 86 | .idl.tlb: |
Alexandre Julliard | 233814c | 2010-11-27 12:33:05 +0100 | [diff] [blame] | 87 | $(WIDL) $(TARGETFLAGS) $(IDLFLAGS) -t -o $@ $< |
Huw Davies | 4046846 | 2005-01-28 14:13:08 +0000 | [diff] [blame] | 88 | |
Alexandre Julliard | 729afa6 | 2011-08-01 22:14:36 +0200 | [diff] [blame] | 89 | .idl_t.res: |
| 90 | $(WIDL) $(TARGETFLAGS) $(IDLFLAGS) -t -o $@ $< |
| 91 | |
Patrik Stridvall | a9be64e | 1999-07-31 17:39:44 +0000 | [diff] [blame] | 92 | .c.ln: |
| 93 | $(LINT) -c $(ALLLINTFLAGS) $< || ( $(RM) $@ && exit 1 ) |
| 94 | |
Alexandre Julliard | caa0338 | 2002-02-20 19:03:59 +0000 | [diff] [blame] | 95 | .c.ok: |
Alexandre Julliard | edeee89 | 2002-08-09 01:22:40 +0000 | [diff] [blame] | 96 | $(RUNTEST) $(RUNTESTFLAGS) $< && touch $@ |
Alexandre Julliard | caa0338 | 2002-02-20 19:03:59 +0000 | [diff] [blame] | 97 | |
Huw Davies | 00acb5f | 2004-08-17 22:33:14 +0000 | [diff] [blame] | 98 | .sfd.ttf: |
Alexandre Julliard | bd9852c | 2010-09-19 12:40:12 +0200 | [diff] [blame] | 99 | $(FONTFORGE) -script $(top_srcdir)/fonts/genttf.ff $< $@ |
Huw Davies | 00acb5f | 2004-08-17 22:33:14 +0000 | [diff] [blame] | 100 | |
Alexandre Julliard | 664e410 | 2005-10-06 16:06:04 +0000 | [diff] [blame] | 101 | .man.in.man: |
Alexandre Julliard | 1716f03 | 2007-12-12 14:39:54 +0100 | [diff] [blame] | 102 | LC_ALL=C sed -e 's,@bindir\@,$(bindir),g' -e 's,@dlldir\@,$(dlldir),g' -e 's,@PACKAGE_STRING\@,@PACKAGE_STRING@,g' $< >$@ || ($(RM) $@ && false) |
Alexandre Julliard | 664e410 | 2005-10-06 16:06:04 +0000 | [diff] [blame] | 103 | |
Alexandre Julliard | dc4a475 | 2008-03-20 16:09:18 +0100 | [diff] [blame] | 104 | .svg.ico: |
Joel Holdsworth | 465e653 | 2010-05-16 23:07:57 +0100 | [diff] [blame] | 105 | CONVERT="$(CONVERT)" ICOTOOL="$(ICOTOOL)" RSVG="$(RSVG)" $(BUILDIMAGE) $< $@ |
Alexandre Julliard | dc4a475 | 2008-03-20 16:09:18 +0100 | [diff] [blame] | 106 | |
Joel Holdsworth | 66bd5f7 | 2010-04-24 14:06:11 +0100 | [diff] [blame] | 107 | .svg.bmp: |
Joel Holdsworth | 465e653 | 2010-05-16 23:07:57 +0100 | [diff] [blame] | 108 | CONVERT="$(CONVERT)" ICOTOOL="$(ICOTOOL)" RSVG="$(RSVG)" $(BUILDIMAGE) $< $@ |
Joel Holdsworth | 66bd5f7 | 2010-04-24 14:06:11 +0100 | [diff] [blame] | 109 | |
Alexandre Julliard | 268976b | 2011-10-22 15:23:14 +0200 | [diff] [blame] | 110 | .po.mo: |
| 111 | $(MSGFMT) -o $@ $< |
| 112 | |
Alexandre Julliard | b0585bf | 2007-12-10 14:26:13 +0100 | [diff] [blame] | 113 | # Rules for IDL files |
| 114 | |
| 115 | dlldata.c: $(WIDL) Makefile.in |
Alexandre Julliard | 233814c | 2010-11-27 12:33:05 +0100 | [diff] [blame] | 116 | $(WIDL) $(IDLFLAGS) --dlldata-only -o $@ $(IDL_P_SRCS) |
Alexandre Julliard | b0585bf | 2007-12-10 14:26:13 +0100 | [diff] [blame] | 117 | |
Alexandre Julliard | 46ea8b3 | 1998-05-03 19:01:20 +0000 | [diff] [blame] | 118 | # Rule for linting |
| 119 | |
Patrik Stridvall | a9be64e | 1999-07-31 17:39:44 +0000 | [diff] [blame] | 120 | $(MODULE).ln : $(LINTS) |
| 121 | if test "$(LINTS)" ; \ |
| 122 | then \ |
| 123 | $(LINT) $(ALLLINTFLAGS) -o$(MODULE) $(LINTS) ; \ |
| 124 | $(MV) llib-l$(MODULE).ln $(MODULE).ln ; \ |
| 125 | else \ |
| 126 | $(LINT) $(ALLLINTFLAGS) -C$(MODULE) /dev/null ; \ |
| 127 | fi |
| 128 | |
| 129 | lint:: $(MODULE).ln |
Alexandre Julliard | 46ea8b3 | 1998-05-03 19:01:20 +0000 | [diff] [blame] | 130 | |
Patrik Stridvall | 385dc18 | 1999-09-29 10:24:19 +0000 | [diff] [blame] | 131 | # Rules for Windows API checking |
| 132 | |
Alexandre Julliard | f673b71 | 2002-06-14 23:48:27 +0000 | [diff] [blame] | 133 | winapi_check:: dummy |
Patrik Stridvall | 385dc18 | 1999-09-29 10:24:19 +0000 | [diff] [blame] | 134 | $(WINAPI_CHECK) $(WINAPI_CHECK_FLAGS) $(WINAPI_CHECK_EXTRA_FLAGS) . |
| 135 | |
Alexandre Julliard | f673b71 | 2002-06-14 23:48:27 +0000 | [diff] [blame] | 136 | .PHONY: winapi_check |
| 137 | |
Alexandre Julliard | c53ceba | 2000-04-09 18:19:59 +0000 | [diff] [blame] | 138 | # Rules for dependencies |
| 139 | |
Alexandre Julliard | c6ae9a3 | 2009-12-29 12:45:37 +0100 | [diff] [blame] | 140 | DEPEND_SRCS = $(C_SRCS) $(RC_SRCS) $(MC_SRCS) \ |
Alexandre Julliard | da19122 | 2008-04-24 22:13:57 +0200 | [diff] [blame] | 141 | $(IDL_H_SRCS) $(IDL_C_SRCS) $(IDL_I_SRCS) $(IDL_P_SRCS) $(IDL_S_SRCS) \ |
Alexandre Julliard | 1a2837a | 2010-11-30 11:53:52 +0100 | [diff] [blame] | 142 | $(IDL_GEN_C_SRCS) $(IDL_R_SRCS:.idl=_r.res) $(IDL_TLB_SRCS) $(IDL_TLB_SRCS:.idl=.tlb) \ |
Alexandre Julliard | da19122 | 2008-04-24 22:13:57 +0200 | [diff] [blame] | 143 | $(BISON_SRCS) $(LEX_SRCS) $(EXTRA_SRCS) |
Alexandre Julliard | 9c085cb | 2006-09-09 13:16:22 +0200 | [diff] [blame] | 144 | |
Alexandre Julliard | 93f0339 | 2010-02-10 20:27:52 +0100 | [diff] [blame] | 145 | depend: dummy |
Alexandre Julliard | bd9852c | 2010-09-19 12:40:12 +0200 | [diff] [blame] | 146 | $(MAKEDEP) $(MAKEDEPFLAGS) -C$(srcdir) -S$(top_srcdir) -T$(top_builddir) $(EXTRAINCL) $(DEPEND_SRCS) |
Alexandre Julliard | c53ceba | 2000-04-09 18:19:59 +0000 | [diff] [blame] | 147 | |
Alexandre Julliard | 93f0339 | 2010-02-10 20:27:52 +0100 | [diff] [blame] | 148 | .PHONY: depend |
Alexandre Julliard | f673b71 | 2002-06-14 23:48:27 +0000 | [diff] [blame] | 149 | |
Alexandre Julliard | 15ccabc | 2010-12-05 16:17:42 +0100 | [diff] [blame] | 150 | # Rules for man pages |
| 151 | |
| 152 | MANPAGES = $(MANPAGE) $(EXTRA_MANPAGES) |
| 153 | |
| 154 | all: $(MANPAGES) |
| 155 | |
| 156 | install-man-pages:: $(MANPAGE) $(DESTDIR)$(mandir)/man$(prog_manext) |
| 157 | $(INSTALL_DATA) $(MANPAGE) $(DESTDIR)$(mandir)/man$(prog_manext)/$(MANPAGE:.man=).$(prog_manext) |
| 158 | |
| 159 | uninstall-man-pages:: |
| 160 | $(RM) $(DESTDIR)$(mandir)/man$(prog_manext)/$(MANPAGE:.man=).$(prog_manext) |
| 161 | |
| 162 | install:: @WOW64_DISABLE@ $(MANPAGE:%=install-man-pages) |
| 163 | uninstall:: @WOW64_DISABLE@ $(MANPAGE:%=uninstall-man-pages) |
| 164 | |
Alexandre Julliard | c53ceba | 2000-04-09 18:19:59 +0000 | [diff] [blame] | 165 | # Rules for cleaning |
| 166 | |
Alexandre Julliard | c53ceba | 2000-04-09 18:19:59 +0000 | [diff] [blame] | 167 | $(EXTRASUBDIRS:%=%/__clean__): dummy |
| 168 | -cd `dirname $@` && $(RM) $(CLEAN_FILES) |
| 169 | |
Alexandre Julliard | 93f0339 | 2010-02-10 20:27:52 +0100 | [diff] [blame] | 170 | clean:: $(EXTRASUBDIRS:%=%/__clean__) |
Alexandre Julliard | b64ceef | 2007-09-18 13:29:07 +0200 | [diff] [blame] | 171 | $(RM) $(CLEAN_FILES) $(CLEAN_TARGETS) $(PROGRAMS) $(MANPAGES) |
Alexandre Julliard | c53ceba | 2000-04-09 18:19:59 +0000 | [diff] [blame] | 172 | |
Alexandre Julliard | 93f0339 | 2010-02-10 20:27:52 +0100 | [diff] [blame] | 173 | .PHONY: clean $(EXTRASUBDIRS:%=%/__clean__) |
Alexandre Julliard | f673b71 | 2002-06-14 23:48:27 +0000 | [diff] [blame] | 174 | |
Alexandre Julliard | 2f158c2 | 2000-06-14 21:45:38 +0000 | [diff] [blame] | 175 | # Rules for installing |
| 176 | |
Alexandre Julliard | 2886e9b | 2006-08-07 17:48:18 +0200 | [diff] [blame] | 177 | $(INSTALLDIRS): |
| 178 | $(MKINSTALLDIRS) $@ |
| 179 | |
Alexandre Julliard | 93f0339 | 2010-02-10 20:27:52 +0100 | [diff] [blame] | 180 | install install-lib install-dev uninstall:: |
Alexandre Julliard | f673b71 | 2002-06-14 23:48:27 +0000 | [diff] [blame] | 181 | |
Alexandre Julliard | 93f0339 | 2010-02-10 20:27:52 +0100 | [diff] [blame] | 182 | .PHONY: install install-lib install-dev uninstall |
Alexandre Julliard | f673b71 | 2002-06-14 23:48:27 +0000 | [diff] [blame] | 183 | |
Alexandre Julliard | 367fd22 | 2011-01-04 17:05:21 +0100 | [diff] [blame] | 184 | # Rules for resources |
| 185 | |
Alexandre Julliard | 7e6c75f | 2011-01-08 12:23:48 +0100 | [diff] [blame] | 186 | rsrc.pot: $(WRC) |
Alexandre Julliard | 367fd22 | 2011-01-04 17:05:21 +0100 | [diff] [blame] | 187 | $(LDPATH) $(WRC) $(RCFLAGS) -O pot -o $@ $(PO_SRCS) |
Alexandre Julliard | d7d4fdf | 1995-12-26 15:05:24 +0000 | [diff] [blame] | 188 | |
Alexandre Julliard | 417b70b | 2011-01-24 21:23:03 +0100 | [diff] [blame] | 189 | msg.pot: $(WMC) |
| 190 | $(LDPATH) $(WMC) -O pot -o $@ $(MC_SRCS) |
| 191 | |
Alexandre Julliard | f4ec097 | 2011-10-22 18:21:04 +0200 | [diff] [blame] | 192 | $(MC_SRCS:.mc=.res): $(WMC) $(ALL_MO_FILES) |
Alexandre Julliard | 9771ad8 | 2011-01-18 16:56:02 +0100 | [diff] [blame] | 193 | $(RC_SRCS:.rc=.res): $(WRC) |
Alexandre Julliard | f4ec097 | 2011-10-22 18:21:04 +0200 | [diff] [blame] | 194 | $(PO_SRCS:.rc=.res): $(ALL_MO_FILES) |
Alexandre Julliard | da19122 | 2008-04-24 22:13:57 +0200 | [diff] [blame] | 195 | |
Alexandre Julliard | 367fd22 | 2011-01-04 17:05:21 +0100 | [diff] [blame] | 196 | # Misc. rules |
| 197 | |
Alexandre Julliard | 729afa6 | 2011-08-01 22:14:36 +0200 | [diff] [blame] | 198 | $(IDL_GEN_HEADERS) $(IDL_GEN_C_SRCS) $(IDL_TLB_SRCS:.idl=.tlb) $(IDL_TLB_RES) $(IDL_R_SRCS:.idl=_r.res): $(WIDL) |
Alexandre Julliard | 367fd22 | 2011-01-04 17:05:21 +0100 | [diff] [blame] | 199 | |
Alexandre Julliard | ff8331e | 1995-09-18 11:19:54 +0000 | [diff] [blame] | 200 | dummy: |
Alexandre Julliard | d7d4fdf | 1995-12-26 15:05:24 +0000 | [diff] [blame] | 201 | |
Alexandre Julliard | 93f0339 | 2010-02-10 20:27:52 +0100 | [diff] [blame] | 202 | .PHONY: dummy |
Alexandre Julliard | f673b71 | 2002-06-14 23:48:27 +0000 | [diff] [blame] | 203 | |
Alexandre Julliard | d7d4fdf | 1995-12-26 15:05:24 +0000 | [diff] [blame] | 204 | # End of global rules |