~ [ source navigation ] ~ [ diff markup ] ~ [ identifier search ] ~ [ freetext search ] ~ [ file search ] ~

Wine Cross Reference
wine/Make.rules.in

Version: ~ [ wine-1.5.30 ] ~ [ wine-1.5.29 ] ~ [ wine-1.5.28 ] ~ [ wine-1.5.27 ] ~ [ wine-1.5.26 ] ~ [ wine-1.5.25 ] ~ [ wine-1.5.24 ] ~ [ wine-1.5.23 ] ~ [ wine-1.5.22 ] ~ [ wine-1.5.21 ] ~ [ wine-1.5.20 ] ~ [ wine-1.5.19 ] ~ [ wine-1.5.18 ] ~ [ wine-1.5.17 ] ~ [ wine-1.5.16 ] ~ [ wine-1.5.15 ] ~ [ wine-1.5.14 ] ~ [ wine-1.5.13 ] ~ [ wine-1.5.12 ] ~ [ wine-1.5.11 ] ~ [ wine-1.5.10 ] ~ [ wine-1.5.9 ] ~ [ wine-1.5.8 ] ~ [ wine-1.5.7 ] ~ [ wine-1.4.1 ] ~ [ wine-1.5.6 ] ~ [ wine-1.5.5 ] ~ [ wine-1.5.4 ] ~ [ wine-1.5.3 ] ~ [ wine-1.5.2 ] ~ [ wine-1.5.1 ] ~ [ wine-1.5.0 ] ~ [ wine-1.4 ] ~ [ wine-1.4-rc6 ] ~ [ wine-1.4-rc5 ] ~ [ wine-1.4-rc4 ] ~ [ wine-1.4-rc3 ] ~ [ wine-1.4-rc2 ] ~ [ wine-1.4-rc1 ] ~ [ wine-1.3.37 ] ~ [ wine-1.3.36 ] ~ [ wine-1.3.35 ] ~ [ wine-1.3.34 ] ~ [ wine-1.3.33 ] ~ [ wine-1.3.32 ] ~ [ wine-1.3.31 ] ~ [ wine-1.3.30 ] ~ [ wine-1.3.29 ] ~ [ wine-1.3.28 ] ~ [ wine-1.3.27 ] ~ [ wine-1.3.26 ] ~ [ wine-1.3.25 ] ~ [ wine-1.3.24 ] ~ [ wine-1.3.23 ] ~ [ wine-1.3.22 ] ~ [ wine-1.3.21 ] ~ [ wine-1.3.20 ] ~ [ wine-1.3.19 ] ~ [ wine-1.3.18 ] ~ [ wine-1.2.3 ] ~ [ wine-1.3.17 ] ~ [ wine-1.3.16 ] ~ [ wine-1.3.15 ] ~ [ wine-1.3.14 ] ~ [ wine-1.3.13 ] ~ [ wine-1.3.12 ] ~ [ wine-1.3.11 ] ~ [ wine-1.3.10 ] ~ [ wine-1.3.9 ] ~ [ wine-1.2.2 ] ~ [ wine-1.3.8 ] ~ [ wine-1.3.7 ] ~ [ wine-1.3.6 ] ~ [ wine-1.3.5 ] ~ [ wine-1.2.1 ] ~ [ wine-1.3.4 ] ~ [ wine-1.3.3 ] ~ [ wine-1.3.2 ] ~ [ wine-1.3.1 ] ~ [ wine-1.3.0 ] ~ [ wine-1.2 ] ~ [ wine-1.2-rc7 ] ~ [ wine-1.2-rc6 ] ~ [ wine-1.2-rc5 ] ~ [ wine-1.2-rc4 ] ~ [ wine-1.2-rc3 ] ~ [ wine-1.2-rc2 ] ~ [ wine-1.2-rc1 ] ~ [ wine-1.1.44 ] ~ [ wine-1.1.43 ] ~ [ wine-1.1.42 ] ~ [ wine-1.1.41 ] ~ [ wine-1.1.40 ] ~ [ wine-1.1.39 ] ~ [ wine-1.1.38 ] ~ [ wine-1.1.37 ] ~ [ wine-1.1.36 ] ~ [ wine-1.1.35 ] ~ [ wine-1.1.34 ] ~ [ wine-1.1.33 ] ~ [ wine-1.1.32 ] ~ [ wine-1.1.31 ] ~ [ wine-1.1.30 ] ~ [ wine-1.1.29 ] ~ [ wine-1.1.28 ] ~ [ wine-1.1.27 ] ~ [ wine-1.1.26 ] ~ [ wine-1.1.25 ] ~ [ wine-1.1.24 ] ~ [ wine-1.1.23 ] ~ [ wine-1.1.22 ] ~ [ wine-1.1.21 ] ~ [ wine-1.1.20 ] ~ [ wine-1.1.19 ] ~ [ wine-1.1.18 ] ~ [ wine-1.1.17 ] ~ [ wine-1.1.16 ] ~ [ wine-1.1.15 ] ~ [ wine-1.1.14 ] ~ [ wine-1.1.13 ] ~ [ wine-1.1.12 ] ~ [ wine-1.1.11 ] ~ [ wine-1.1.10 ] ~ [ wine-1.1.9 ] ~ [ wine-1.1.8 ] ~ [ wine-1.1.7 ] ~ [ wine-1.0.1 ] ~ [ wine-1.1.6 ] ~ [ wine-1.1.5 ] ~ [ wine-1.1.4 ] ~ [ wine-1.1.3 ] ~ [ wine-1.1.2 ] ~ [ wine-1.1.1 ] ~ [ wine-1.1.0 ] ~ [ wine-1.0 ] ~

  1 # Global rules shared by all makefiles     -*-Makefile-*-
  2 #
  3 # Each individual makefile may define the following variables:
  4 # C_SRCS       : C sources for the module
  5 # RC_SRCS      : resource source files
  6 # EXTRA_SRCS   : extra source files for make depend
  7 # EXTRA_OBJS   : extra object files
  8 # IMPORTS      : dlls to import
  9 # DELAYIMPORTS : dlls to import in delayed mode
 10 # EXTRASUBDIRS : subdirectories that do not contain a Makefile
 11 # MODCFLAGS    : extra CFLAGS for this module
 12 
 13 # First some useful definitions
 14 
 15 LDSHARED     = @LDSHARED@
 16 INCLUDES     = -I$(srcdir) -I. -I$(top_srcdir)/include -I$(top_builddir)/include $(EXTRAINCL)
 17 ALLCFLAGS    = $(INCLUDES) $(DEFS) $(DLLFLAGS) $(EXTRACFLAGS) $(CPPFLAGS) $(CFLAGS) $(MODCFLAGS)
 18 ALLLINTFLAGS = $(INCLUDES) $(DEFS) $(LINTFLAGS)
 19 IDLFLAGS     = $(INCLUDES) $(DEFS) $(EXTRAIDLFLAGS)
 20 RCFLAGS      = --nostdinc --po-dir=$(top_srcdir)/po $(TARGETFLAGS) $(INCLUDES) $(DEFS) $(EXTRARCFLAGS)
 21 
 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)
 26 
 27 CLEAN_FILES   = *.o *.a *.so *.ln *.res *.fake *.$(LIBEXT) \\\#*\\\# *~ *% .\\\#* *.bak *.orig *.rej *.flc core
 28 CLEAN_TARGETS = $(IDL_GEN_C_SRCS) $(IDL_GEN_HEADERS) $(IDL_TLB_SRCS:.idl=.tlb) $(IDL_P_SRCS:%=dlldata.c) \
 29                 $(BISON_SRCS:.y=.tab.c) $(BISON_SRCS:.y=.tab.h) $(LEX_SRCS:.l=.yy.c) \
 30                 $(PO_SRCS:%=rsrc.pot) $(MC_SRCS:%=msg.pot)
 31 
 32 OBJS = $(C_SRCS:.c=.o) $(BISON_SRCS:.y=.tab.o) $(LEX_SRCS:.l=.yy.o) $(IDL_GEN_C_SRCS:.c=.o) \
 33        $(IDL_R_SRCS:.idl=_r.res) $(RC_SRCS:.rc=.res) $(MC_SRCS:.mc=.res) $(EXTRA_OBJS)
 34 
 35 CROSSOBJS = $(OBJS:.o=.cross.o)
 36 LINTS  = $(C_SRCS:.c=.ln)
 37 
 38 filter: dummy
 39         @$(top_srcdir)/tools/winapi/make_filter --make $(MAKE) all
 40 
 41 .PHONY: all filter
 42 
 43 # Implicit rules
 44 
 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 .cross.o @MAINTAINER_MODE@ .sfd .ttf .svg .ico .bmp
 46 
 47 .c.o:
 48         $(CC) -c $(ALLCFLAGS) -o $@ $<
 49 
 50 .c.cross.o:
 51         $(CROSSCC) -c $(INCLUDES) $(DEFS) -DWINE_CROSSTEST $(CPPFLAGS) $(CFLAGS) -o $@ $<
 52 
 53 .y.tab.c:
 54         $(BISON) $(BISONFLAGS) -p $*_ -o $@ $<
 55 
 56 .y.tab.h:
 57         $(BISON) $(BISONFLAGS) -p $*_ -o $*.tab.c -d $<
 58 
 59 .l.yy.c:
 60         $(FLEX) $(LEXFLAGS) -o$@ $<
 61 
 62 .mc.res:
 63         $(LDPATH) $(WMC) -U -O res -P $(top_srcdir)/po -o $@ $<
 64 
 65 .rc.res:
 66         $(LDPATH) $(WRC) $(RCFLAGS) -o $@ $<
 67 
 68 .idl.h:
 69         $(WIDL) $(IDLFLAGS) -h -o $@ $<
 70 
 71 .idl_c.c:
 72         $(WIDL) $(IDLFLAGS) -c -o $@ $<
 73 
 74 .idl_i.c:
 75         $(WIDL) $(IDLFLAGS) -u -o $@ $<
 76 
 77 .idl_p.c:
 78         $(WIDL) $(IDLFLAGS) -p -o $@ $<
 79 
 80 .idl_r.res:
 81         $(WIDL) $(IDLFLAGS) -r -o $@ $<
 82 
 83 .idl_s.c:
 84         $(WIDL) $(IDLFLAGS) -s -o $@ $<
 85 
 86 .idl.tlb:
 87         $(WIDL) $(TARGETFLAGS) $(IDLFLAGS) -t -o $@ $<
 88 
 89 .c.ln:
 90         $(LINT) -c $(ALLLINTFLAGS) $< || ( $(RM) $@ && exit 1 )
 91 
 92 .c.ok:
 93         $(RUNTEST) $(RUNTESTFLAGS) $< && touch $@
 94 
 95 .sfd.ttf:
 96         $(FONTFORGE) -script $(top_srcdir)/fonts/genttf.ff $< $@
 97 
 98 .man.in.man:
 99         LC_ALL=C sed -e 's,@bindir\@,$(bindir),g' -e 's,@dlldir\@,$(dlldir),g' -e 's,@PACKAGE_STRING\@,@PACKAGE_STRING@,g' $< >$@ || ($(RM) $@ && false)
100 
101 .svg.ico:
102         CONVERT="$(CONVERT)" ICOTOOL="$(ICOTOOL)" RSVG="$(RSVG)" $(BUILDIMAGE) $< $@
103 
104 .svg.bmp:
105         CONVERT="$(CONVERT)" ICOTOOL="$(ICOTOOL)" RSVG="$(RSVG)" $(BUILDIMAGE) $< $@
106 
107 # Rules for IDL files
108 
109 dlldata.c: $(WIDL) Makefile.in
110         $(WIDL) $(IDLFLAGS) --dlldata-only -o $@ $(IDL_P_SRCS)
111 
112 # Rule for linting
113 
114 $(MODULE).ln : $(LINTS)
115         if test "$(LINTS)" ; \
116         then \
117                 $(LINT) $(ALLLINTFLAGS) -o$(MODULE) $(LINTS) ; \
118                 $(MV) llib-l$(MODULE).ln $(MODULE).ln ; \
119         else \
120                 $(LINT) $(ALLLINTFLAGS) -C$(MODULE) /dev/null ; \
121         fi
122 
123 lint:: $(MODULE).ln
124 
125 # Rules for Windows API checking
126 
127 winapi_check:: dummy
128         $(WINAPI_CHECK) $(WINAPI_CHECK_FLAGS) $(WINAPI_CHECK_EXTRA_FLAGS) .
129 
130 .PHONY: winapi_check
131 
132 # Rules for dependencies
133 
134 DEPEND_SRCS = $(C_SRCS) $(RC_SRCS) $(MC_SRCS) \
135               $(IDL_H_SRCS) $(IDL_C_SRCS) $(IDL_I_SRCS) $(IDL_P_SRCS) $(IDL_S_SRCS) \
136               $(IDL_GEN_C_SRCS) $(IDL_R_SRCS:.idl=_r.res) $(IDL_TLB_SRCS) $(IDL_TLB_SRCS:.idl=.tlb) \
137               $(BISON_SRCS) $(LEX_SRCS) $(EXTRA_SRCS)
138 
139 depend: dummy
140         $(MAKEDEP) $(MAKEDEPFLAGS) -C$(srcdir) -S$(top_srcdir) -T$(top_builddir) $(EXTRAINCL) $(DEPEND_SRCS)
141 
142 .PHONY: depend
143 
144 # Rules for man pages
145 
146 MANPAGES = $(MANPAGE) $(EXTRA_MANPAGES)
147 
148 all: $(MANPAGES)
149 
150 install-man-pages:: $(MANPAGE) $(DESTDIR)$(mandir)/man$(prog_manext)
151         $(INSTALL_DATA) $(MANPAGE) $(DESTDIR)$(mandir)/man$(prog_manext)/$(MANPAGE:.man=).$(prog_manext)
152 
153 uninstall-man-pages::
154         $(RM) $(DESTDIR)$(mandir)/man$(prog_manext)/$(MANPAGE:.man=).$(prog_manext)
155 
156 install:: @WOW64_DISABLE@ $(MANPAGE:%=install-man-pages)
157 uninstall:: @WOW64_DISABLE@ $(MANPAGE:%=uninstall-man-pages)
158 
159 # Rules for cleaning
160 
161 $(EXTRASUBDIRS:%=%/__clean__): dummy
162         -cd `dirname $@` && $(RM) $(CLEAN_FILES)
163 
164 clean:: $(EXTRASUBDIRS:%=%/__clean__)
165         $(RM) $(CLEAN_FILES) $(CLEAN_TARGETS) $(PROGRAMS) $(MANPAGES)
166 
167 .PHONY: clean $(EXTRASUBDIRS:%=%/__clean__)
168 
169 # Rules for installing
170 
171 $(INSTALLDIRS):
172         $(MKINSTALLDIRS) $@
173 
174 install install-lib install-dev uninstall::
175 
176 .PHONY: install install-lib install-dev uninstall
177 
178 # Rules for resources
179 
180 all: @MAINTAINER_MODE@ $(PO_SRCS:%=rsrc.pot) $(MC_SRCS:%=msg.pot)
181 
182 rsrc.pot: $(WRC)
183         $(LDPATH) $(WRC) $(RCFLAGS) -O pot -o $@ $(PO_SRCS)
184 
185 msg.pot: $(WMC)
186         $(LDPATH) $(WMC) -O pot -o $@ $(MC_SRCS)
187 
188 $(MC_SRCS:.mc=.res): $(WMC) $(ALL_PO_FILES)
189 $(RC_SRCS:.rc=.res): $(WRC)
190 $(PO_SRCS:.rc=.res): $(ALL_PO_FILES)
191 
192 # Misc. rules
193 
194 $(IDL_GEN_HEADERS) $(IDL_GEN_C_SRCS) $(IDL_TLB_SRCS:.idl=.tlb) $(IDL_R_SRCS:.idl=_r.res): $(WIDL)
195 
196 dummy:
197 
198 .PHONY: dummy
199 
200 # End of global rules

~ [ source navigation ] ~ [ diff markup ] ~ [ identifier search ] ~ [ freetext search ] ~ [ file search ] ~

This page was automatically generated by the LXR engine.
Visit the LXR main site for more information.