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 | c53ceba | 2000-04-09 18:19:59 +0000 | [diff] [blame] | 3 | # Each individual makefile must define the following variables: |
Alexandre Julliard | 7e6ae4b | 1996-12-08 19:25:27 +0000 | [diff] [blame] | 4 | # TOPSRCDIR : top-level source directory |
| 5 | # TOPOBJDIR : top-level object directory |
| 6 | # SRCDIR : source directory for this module |
| 7 | # MODULE : name of the module being built |
Alexandre Julliard | c53ceba | 2000-04-09 18:19:59 +0000 | [diff] [blame] | 8 | # |
| 9 | # Each individual makefile may define the following additional variables: |
| 10 | # C_SRCS : C sources for the module |
| 11 | # ASM_SRCS : assembly sources |
| 12 | # GEN_ASM_SRCS : generated assembly sources |
| 13 | # RC_SRCS : resource source files |
| 14 | # SPEC_SRCS : interface definition files |
| 15 | # GLUE : C sources for which glue code needs to be generated |
| 16 | # EXTRA_SRCS : extra source files for make depend |
| 17 | # EXTRA_OBJS : extra object files |
| 18 | # WRCEXTRA : extra wrc flags (e.g. '-p _SysRes') |
| 19 | # SUBDIRS : subdirectories that contain a Makefile |
| 20 | # EXTRASUBDIRS : subdirectories that do not contain a Makefile |
Alexandre Julliard | ff8331e | 1995-09-18 11:19:54 +0000 | [diff] [blame] | 21 | |
Alexandre Julliard | d7d4fdf | 1995-12-26 15:05:24 +0000 | [diff] [blame] | 22 | # First some useful definitions |
| 23 | |
Alexandre Julliard | 8664b89 | 1996-04-05 14:58:24 +0000 | [diff] [blame] | 24 | SHELL = /bin/sh |
| 25 | CC = @CC@ |
Alexandre Julliard | d7d4fdf | 1995-12-26 15:05:24 +0000 | [diff] [blame] | 26 | CPP = @CPP@ |
Alexandre Julliard | 18f92e7 | 1996-07-17 20:02:21 +0000 | [diff] [blame] | 27 | CFLAGS = @CFLAGS@ |
Alexandre Julliard | 0623a6f | 1998-01-18 18:01:49 +0000 | [diff] [blame] | 28 | OPTIONS = @OPTIONS@ -D_REENTRANT |
Alexandre Julliard | ff8331e | 1995-09-18 11:19:54 +0000 | [diff] [blame] | 29 | X_CFLAGS = @X_CFLAGS@ |
Alexandre Julliard | d7d4fdf | 1995-12-26 15:05:24 +0000 | [diff] [blame] | 30 | X_LIBS = @X_LIBS@ |
Patrik Stridvall | ea58472 | 1998-11-01 16:22:07 +0000 | [diff] [blame] | 31 | XLIB = @X_PRE_LIBS@ @XLIB@ @X_EXTRA_LIBS@ |
Alexandre Julliard | 318f4ce | 2000-01-31 05:02:49 +0000 | [diff] [blame] | 32 | DLL_LINK = @DLL_LINK@ |
Alexandre Julliard | 02e9008 | 1998-01-04 17:49:09 +0000 | [diff] [blame] | 33 | LIBS = @LIBS@ |
Alexandre Julliard | ff8331e | 1995-09-18 11:19:54 +0000 | [diff] [blame] | 34 | YACC = @YACC@ |
| 35 | LEX = @LEX@ |
| 36 | LEXLIB = @LEXLIB@ |
Alexandre Julliard | 641ee76 | 1997-08-04 16:34:36 +0000 | [diff] [blame] | 37 | RANLIB = @RANLIB@ |
| 38 | LN_S = @LN_S@ |
Alexandre Julliard | 5166237 | 1999-05-15 10:41:15 +0000 | [diff] [blame] | 39 | DIVINCL = -I$(SRCDIR) -I. -I$(TOPSRCDIR)/include -I$(TOPOBJDIR)/include |
Marcus Meissner | d43eb2d | 2000-01-08 22:23:43 +0000 | [diff] [blame] | 40 | ALLCFLAGS = $(DIVINCL) $(CFLAGS) $(DEFS) $(OPTIONS) $(X_CFLAGS) |
Alexandre Julliard | ff8331e | 1995-09-18 11:19:54 +0000 | [diff] [blame] | 41 | LDCOMBINE = ld -r |
Alexandre Julliard | 641ee76 | 1997-08-04 16:34:36 +0000 | [diff] [blame] | 42 | AR = ar rc |
Alexandre Julliard | ff8331e | 1995-09-18 11:19:54 +0000 | [diff] [blame] | 43 | RM = rm -f |
Patrik Stridvall | a9be64e | 1999-07-31 17:39:44 +0000 | [diff] [blame] | 44 | MV = mv |
Alexandre Julliard | 829fe32 | 1998-07-26 14:27:39 +0000 | [diff] [blame] | 45 | MKDIR = mkdir -p |
Alexandre Julliard | c7c217b | 1998-04-13 12:21:30 +0000 | [diff] [blame] | 46 | C2MAN = @C2MAN@ |
Alexandre Julliard | 829fe32 | 1998-07-26 14:27:39 +0000 | [diff] [blame] | 47 | MANSPECS = -w $(TOPSRCDIR)/relay32/gdi32.spec \ |
| 48 | -w $(TOPSRCDIR)/relay32/user32.spec \ |
| 49 | -w $(TOPSRCDIR)/relay32/comctl32.spec \ |
| 50 | -w $(TOPSRCDIR)/relay32/comdlg32.spec \ |
| 51 | -w $(TOPSRCDIR)/relay32/kernel32.spec |
Patrik Stridvall | a9be64e | 1999-07-31 17:39:44 +0000 | [diff] [blame] | 52 | LINT = @LINT@ |
| 53 | LINTFLAGS = @LINTFLAGS@ |
| 54 | ALLLINTFLAGS = $(LINTFLAGS) $(DEFS) $(OPTIONS) $(DIVINCL) |
Patrik Stridvall | 385dc18 | 1999-09-29 10:24:19 +0000 | [diff] [blame] | 55 | WINAPI_CHECK = $(TOPSRCDIR)/tools/winapi_check/winapi_check |
Alexandre Julliard | c6c0944 | 1997-01-12 18:32:19 +0000 | [diff] [blame] | 56 | BUILD = $(TOPOBJDIR)/tools/build@PROGEXT@ |
| 57 | MAKEDEP = $(TOPOBJDIR)/tools/makedep@PROGEXT@ |
Alexandre Julliard | a845b88 | 1998-06-01 10:44:35 +0000 | [diff] [blame] | 58 | WRC = $(TOPOBJDIR)/tools/wrc/wrc@PROGEXT@ |
Bertho Stultiens | d1895a7 | 1999-04-25 18:31:35 +0000 | [diff] [blame] | 59 | WRCFLAGS = -c |
Alexandre Julliard | 0adad95 | 2000-01-26 01:45:58 +0000 | [diff] [blame] | 60 | DLLDIR = $(TOPOBJDIR)/dlls |
Alexandre Julliard | ff8331e | 1995-09-18 11:19:54 +0000 | [diff] [blame] | 61 | @SET_MAKE@ |
| 62 | |
Alexandre Julliard | 641ee76 | 1997-08-04 16:34:36 +0000 | [diff] [blame] | 63 | # Installation infos |
| 64 | |
| 65 | INSTALL = @INSTALL@ |
| 66 | INSTALL_PROGRAM = @INSTALL_PROGRAM@ |
| 67 | INSTALL_DATA = @INSTALL_DATA@ |
| 68 | prefix = @prefix@ |
| 69 | exec_prefix = @exec_prefix@ |
| 70 | bindir = @bindir@ |
| 71 | libdir = @libdir@ |
| 72 | infodir = @infodir@ |
Alexandre Julliard | d6baf1b | 1999-07-18 15:47:22 +0000 | [diff] [blame] | 73 | mandir = @mandir@ |
| 74 | prog_manext = 1 |
| 75 | conf_manext = 5 |
Alexandre Julliard | 641ee76 | 1997-08-04 16:34:36 +0000 | [diff] [blame] | 76 | includedir = @includedir@/wine |
Alexandre Julliard | 77d5ebb | 2000-03-25 14:03:50 +0000 | [diff] [blame] | 77 | CLEAN_FILES = *.o *.a *.so *.ln \\\#*\\\# *~ *% .\\\#* *.bak *.orig *.rej *.flc \ |
| 78 | *.spec.c *.glue.c y.tab.c y.tab.h lex.yy.c core |
Alexandre Julliard | 641ee76 | 1997-08-04 16:34:36 +0000 | [diff] [blame] | 79 | |
Alexandre Julliard | 318f4ce | 2000-01-31 05:02:49 +0000 | [diff] [blame] | 80 | OBJS = $(SPEC_SRCS:.spec=.spec.o) $(C_SRCS:.c=.o) $(GEN_ASM_SRCS:.s=.o) \ |
| 81 | $(ASM_SRCS:.S=.o) $(RC_SRCS:.rc=.o) $(GLUE:.c=.glue.o) $(EXTRA_OBJS) |
Alexandre Julliard | d7d4fdf | 1995-12-26 15:05:24 +0000 | [diff] [blame] | 82 | |
Patrik Stridvall | a9be64e | 1999-07-31 17:39:44 +0000 | [diff] [blame] | 83 | LINTS = $(C_SRCS:.c=.ln) |
| 84 | |
Alexandre Julliard | 318f4ce | 2000-01-31 05:02:49 +0000 | [diff] [blame] | 85 | # DLL list |
| 86 | |
Patrik Stridvall | 2941a21 | 2000-04-25 20:34:22 +0000 | [diff] [blame] | 87 | X_DLLS = \ |
| 88 | ddraw \ |
| 89 | x11drv |
| 90 | |
Alexandre Julliard | 318f4ce | 2000-01-31 05:02:49 +0000 | [diff] [blame] | 91 | DLLS = \ |
Patrik Stridvall | 2941a21 | 2000-04-25 20:34:22 +0000 | [diff] [blame] | 92 | @X_DLLS@ \ |
Alexandre Julliard | 318f4ce | 2000-01-31 05:02:49 +0000 | [diff] [blame] | 93 | avifil32 \ |
| 94 | comctl32 \ |
| 95 | comdlg32 \ |
| 96 | dciman32 \ |
Alexandre Julliard | ddce652 | 2000-03-17 16:58:10 +0000 | [diff] [blame] | 97 | dinput \ |
Alexandre Julliard | 318f4ce | 2000-01-31 05:02:49 +0000 | [diff] [blame] | 98 | dplayx \ |
| 99 | dsound \ |
Alexandre Julliard | 1dac57f | 2000-03-19 12:08:09 +0000 | [diff] [blame] | 100 | gdi32 \ |
Alexandre Julliard | 318f4ce | 2000-01-31 05:02:49 +0000 | [diff] [blame] | 101 | icmp \ |
| 102 | imagehlp \ |
| 103 | imm32 \ |
Eric Pouech | 2a3b0a1 | 2000-02-26 13:14:04 +0000 | [diff] [blame] | 104 | joystick.drv \ |
Alexandre Julliard | 318f4ce | 2000-01-31 05:02:49 +0000 | [diff] [blame] | 105 | lz32 \ |
| 106 | mcianim.drv \ |
| 107 | mciavi.drv \ |
| 108 | mcicda.drv \ |
| 109 | mciseq.drv \ |
| 110 | mciwave.drv \ |
| 111 | midimap.drv \ |
Alexandre Julliard | ebc3225 | 2000-03-17 15:09:48 +0000 | [diff] [blame] | 112 | mpr \ |
Alexandre Julliard | 318f4ce | 2000-01-31 05:02:49 +0000 | [diff] [blame] | 113 | msacm \ |
| 114 | msacm.drv \ |
| 115 | msacm32 \ |
| 116 | msnet32 \ |
| 117 | msvfw32 \ |
| 118 | odbc32 \ |
| 119 | ole32 \ |
| 120 | oleaut32 \ |
| 121 | olecli32 \ |
| 122 | oledlg \ |
Sean Langley | 58c71d4 | 2000-02-07 16:26:56 +0000 | [diff] [blame] | 123 | olepro32 \ |
Alexandre Julliard | 318f4ce | 2000-01-31 05:02:49 +0000 | [diff] [blame] | 124 | olesvr32 \ |
| 125 | psapi \ |
| 126 | rasapi32 \ |
Hidenori Takeshima | e75f9fb | 2000-05-03 18:12:19 +0000 | [diff] [blame^] | 127 | riched32 \ |
Alexandre Julliard | 318f4ce | 2000-01-31 05:02:49 +0000 | [diff] [blame] | 128 | setupx \ |
| 129 | shell32 \ |
| 130 | sound \ |
| 131 | stress \ |
| 132 | tapi32 \ |
Alexandre Julliard | 1dac57f | 2000-03-19 12:08:09 +0000 | [diff] [blame] | 133 | ttydrv \ |
Alexandre Julliard | 819fa8c | 2000-04-11 20:07:00 +0000 | [diff] [blame] | 134 | urlmon \ |
Alexandre Julliard | 1dac57f | 2000-03-19 12:08:09 +0000 | [diff] [blame] | 135 | user32 \ |
Alexandre Julliard | 318f4ce | 2000-01-31 05:02:49 +0000 | [diff] [blame] | 136 | version \ |
Alexandre Julliard | 7ee3435 | 2000-02-29 22:11:44 +0000 | [diff] [blame] | 137 | w32skrnl \ |
Alexandre Julliard | 318f4ce | 2000-01-31 05:02:49 +0000 | [diff] [blame] | 138 | win87em \ |
| 139 | windebug \ |
| 140 | wineoss.drv \ |
| 141 | wing \ |
Alexandre Julliard | 819fa8c | 2000-04-11 20:07:00 +0000 | [diff] [blame] | 142 | wininet \ |
Alexandre Julliard | e1d7889 | 2000-02-26 13:45:34 +0000 | [diff] [blame] | 143 | winmm \ |
Eric Pouech | 44af98c | 2000-04-25 19:57:27 +0000 | [diff] [blame] | 144 | winspool.drv \ |
Alexandre Julliard | 318f4ce | 2000-01-31 05:02:49 +0000 | [diff] [blame] | 145 | wnaspi32 \ |
Patrik Stridvall | 2941a21 | 2000-04-25 20:34:22 +0000 | [diff] [blame] | 146 | wsock32 |
Alexandre Julliard | 318f4ce | 2000-01-31 05:02:49 +0000 | [diff] [blame] | 147 | |
Alexandre Julliard | d7d4fdf | 1995-12-26 15:05:24 +0000 | [diff] [blame] | 148 | # Implicit rules |
| 149 | |
Patrik Stridvall | 0691a59 | 1999-07-31 14:45:22 +0000 | [diff] [blame] | 150 | .SUFFIXES: |
Ulrich Weigand | 8336cc9 | 1999-08-15 12:45:53 +0000 | [diff] [blame] | 151 | .SUFFIXES: .rc .res .spec .spec.c .spec.o .glue.c $(SUFFIXES) |
Alexandre Julliard | ff8331e | 1995-09-18 11:19:54 +0000 | [diff] [blame] | 152 | |
| 153 | .c.o: |
| 154 | $(CC) -c $(ALLCFLAGS) -o $*.o $< |
| 155 | |
Patrik Stridvall | 0691a59 | 1999-07-31 14:45:22 +0000 | [diff] [blame] | 156 | .spec.c.spec.o: |
| 157 | $(CC) -c $(ALLCFLAGS) @GCC_NO_BUILTIN@ -o $*.spec.o $< |
| 158 | |
Alexandre Julliard | 7e6ae4b | 1996-12-08 19:25:27 +0000 | [diff] [blame] | 159 | .s.o: |
Patrik Stridvall | 1439f72 | 1998-10-11 17:12:21 +0000 | [diff] [blame] | 160 | $(AS) -o $*.o $< |
Alexandre Julliard | 7e6ae4b | 1996-12-08 19:25:27 +0000 | [diff] [blame] | 161 | |
Alexandre Julliard | ff8331e | 1995-09-18 11:19:54 +0000 | [diff] [blame] | 162 | .S.o: |
| 163 | $(CC) -c -o $*.o $< |
| 164 | |
Alexandre Julliard | a845b88 | 1998-06-01 10:44:35 +0000 | [diff] [blame] | 165 | .rc.s: |
| 166 | $(WRC) $(WRCFLAGS) $(WRCEXTRA) $(DIVINCL) $< |
Alexandre Julliard | d7d4fdf | 1995-12-26 15:05:24 +0000 | [diff] [blame] | 167 | |
| 168 | .rc.h: |
Alexandre Julliard | a845b88 | 1998-06-01 10:44:35 +0000 | [diff] [blame] | 169 | $(WRC) $(WRCFLAGS) $(WRCEXTRA) $(DIVINCL) -nh $< |
| 170 | |
| 171 | .rc.res: |
| 172 | $(WRC) $(WRCFLAGS) $(WRCEXTRA) $(DIVINCL) -r $< |
| 173 | |
| 174 | .res.s: |
| 175 | $(WRC) $(WRCFLAGS) $(WRCEXTRA) -b $< |
| 176 | |
| 177 | .res.h: |
| 178 | $(WRC) $(WRCFLAGS) $(WRCEXTRA) -bnh $< |
| 179 | |
Ulrich Weigand | 3dff7bb | 1999-07-11 13:58:31 +0000 | [diff] [blame] | 180 | .spec.spec.c: |
Ulrich Weigand | 4b32fd0 | 1999-07-15 14:51:40 +0000 | [diff] [blame] | 181 | $(BUILD) @BUILDFLAGS@ -o $@ -spec $< |
Ulrich Weigand | 3dff7bb | 1999-07-11 13:58:31 +0000 | [diff] [blame] | 182 | |
Ulrich Weigand | 8336cc9 | 1999-08-15 12:45:53 +0000 | [diff] [blame] | 183 | .c.glue.c: |
Ulrich Weigand | 4b32fd0 | 1999-07-15 14:51:40 +0000 | [diff] [blame] | 184 | $(BUILD) @BUILDFLAGS@ -o $@ -glue $< |
Alexandre Julliard | d7d4fdf | 1995-12-26 15:05:24 +0000 | [diff] [blame] | 185 | |
Patrik Stridvall | a9be64e | 1999-07-31 17:39:44 +0000 | [diff] [blame] | 186 | .c.ln: |
| 187 | $(LINT) -c $(ALLLINTFLAGS) $< || ( $(RM) $@ && exit 1 ) |
| 188 | |
Alexandre Julliard | 318f4ce | 2000-01-31 05:02:49 +0000 | [diff] [blame] | 189 | .PHONY: all install uninstall clean distclean depend dummy |
| 190 | |
Alexandre Julliard | d0edc5f | 2000-03-04 22:31:27 +0000 | [diff] [blame] | 191 | # 'all' target first in case the enclosing Makefile didn't define any target |
| 192 | |
| 193 | all: Makefile |
| 194 | |
Alexandre Julliard | a845b88 | 1998-06-01 10:44:35 +0000 | [diff] [blame] | 195 | # Rule to rebuild the resource compiler |
Alexandre Julliard | d7d4fdf | 1995-12-26 15:05:24 +0000 | [diff] [blame] | 196 | |
Alexandre Julliard | a845b88 | 1998-06-01 10:44:35 +0000 | [diff] [blame] | 197 | $(WRC) check_wrc: |
Alexandre Julliard | 0adad95 | 2000-01-26 01:45:58 +0000 | [diff] [blame] | 198 | cd $(TOPOBJDIR)/tools/wrc && $(MAKE) wrc@PROGEXT@ |
Alexandre Julliard | a845b88 | 1998-06-01 10:44:35 +0000 | [diff] [blame] | 199 | |
Alexandre Julliard | c6c0944 | 1997-01-12 18:32:19 +0000 | [diff] [blame] | 200 | # Rule to rebuild the 'makedep' program |
Alexandre Julliard | 530ee84 | 1996-10-23 16:59:13 +0000 | [diff] [blame] | 201 | |
| 202 | $(MAKEDEP) check_makedep: |
Alexandre Julliard | 0adad95 | 2000-01-26 01:45:58 +0000 | [diff] [blame] | 203 | cd $(TOPOBJDIR)/tools && $(MAKE) makedep@PROGEXT@ |
Alexandre Julliard | c6c0944 | 1997-01-12 18:32:19 +0000 | [diff] [blame] | 204 | |
| 205 | # Rule to rebuild the 'build' program |
| 206 | |
| 207 | $(BUILD) checkbuild: |
Alexandre Julliard | 0adad95 | 2000-01-26 01:45:58 +0000 | [diff] [blame] | 208 | cd $(TOPOBJDIR)/tools && $(MAKE) build@PROGEXT@ |
Alexandre Julliard | d7d4fdf | 1995-12-26 15:05:24 +0000 | [diff] [blame] | 209 | |
| 210 | # Rule for main module |
| 211 | |
Marcus Meissner | 9607512 | 1999-10-13 13:45:15 +0000 | [diff] [blame] | 212 | $(MODULE).o: $(OBJS) Makefile.in $(TOPSRCDIR)/Make.rules.in |
Alexandre Julliard | ff8331e | 1995-09-18 11:19:54 +0000 | [diff] [blame] | 213 | $(LDCOMBINE) $(OBJS) -o $(MODULE).o |
| 214 | |
Alexandre Julliard | e66d421 | 1999-03-14 15:22:29 +0000 | [diff] [blame] | 215 | # Rules for makefile |
| 216 | |
Marcus Meissner | ca004e5 | 1999-01-03 12:26:22 +0000 | [diff] [blame] | 217 | Makefile: Makefile.in $(TOPSRCDIR)/configure |
| 218 | @echo Makefile is older than $?, please rerun $(TOPSRCDIR)/configure |
| 219 | @exit 1 |
| 220 | |
Alexandre Julliard | 829fe32 | 1998-07-26 14:27:39 +0000 | [diff] [blame] | 221 | # Rules for auto documentation |
Alexandre Julliard | 44ed71f | 1997-12-21 19:17:50 +0000 | [diff] [blame] | 222 | |
| 223 | man: $(C_SRCS) |
Alexandre Julliard | 829fe32 | 1998-07-26 14:27:39 +0000 | [diff] [blame] | 224 | for i in $(C_SRCS); do $(C2MAN) -L -o $(TOPOBJDIR)/documentation/man3w -S3w $(DIVINCL) -D__WINE__ $(MANSPECS) $$i; done |
| 225 | |
| 226 | html: $(C_SRCS) |
| 227 | for i in $(C_SRCS); do $(C2MAN) -L -o $(TOPOBJDIR)/documentation/html -Th -iwindows.h $(DIVINCL) -D__WINE__ $(MANSPECS) $$i; done |
| 228 | |
Alexandre Julliard | 46ea8b3 | 1998-05-03 19:01:20 +0000 | [diff] [blame] | 229 | # Rule for linting |
| 230 | |
Patrik Stridvall | a9be64e | 1999-07-31 17:39:44 +0000 | [diff] [blame] | 231 | $(MODULE).ln : $(LINTS) |
| 232 | if test "$(LINTS)" ; \ |
| 233 | then \ |
| 234 | $(LINT) $(ALLLINTFLAGS) -o$(MODULE) $(LINTS) ; \ |
| 235 | $(MV) llib-l$(MODULE).ln $(MODULE).ln ; \ |
| 236 | else \ |
| 237 | $(LINT) $(ALLLINTFLAGS) -C$(MODULE) /dev/null ; \ |
| 238 | fi |
| 239 | |
| 240 | lint:: $(MODULE).ln |
Alexandre Julliard | 46ea8b3 | 1998-05-03 19:01:20 +0000 | [diff] [blame] | 241 | |
Patrik Stridvall | 385dc18 | 1999-09-29 10:24:19 +0000 | [diff] [blame] | 242 | # Rules for Windows API checking |
| 243 | |
| 244 | winapi_check:: |
| 245 | $(WINAPI_CHECK) $(WINAPI_CHECK_FLAGS) $(WINAPI_CHECK_EXTRA_FLAGS) . |
| 246 | |
Alexandre Julliard | c53ceba | 2000-04-09 18:19:59 +0000 | [diff] [blame] | 247 | # Rules for dependencies |
| 248 | |
| 249 | $(SUBDIRS:%=%/__depend__): $(MAKEDEP) dummy |
| 250 | cd `dirname $@` && $(MAKE) depend |
| 251 | |
| 252 | depend: $(MAKEDEP) $(C_SRCS) $(RC_SRCS) $(EXTRA_SRCS) $(SUBDIRS:%=%/__depend__) |
| 253 | $(MAKEDEP) $(DIVINCL) -C$(SRCDIR) $(C_SRCS) $(RC_SRCS) $(EXTRA_SRCS) |
| 254 | |
| 255 | # Rules for cleaning |
| 256 | |
| 257 | $(SUBDIRS:%=%/__clean__): dummy |
| 258 | cd `dirname $@` && $(MAKE) clean |
| 259 | |
| 260 | $(EXTRASUBDIRS:%=%/__clean__): dummy |
| 261 | -cd `dirname $@` && $(RM) $(CLEAN_FILES) |
| 262 | |
| 263 | clean:: $(SUBDIRS:%=%/__clean__) $(EXTRASUBDIRS:%=%/__clean__) |
| 264 | $(RM) $(CLEAN_FILES) $(GEN_ASM_SRCS) $(RC_SRCS:.rc=.s) $(RC_SRCS:.rc=.h) $(PROGRAMS) |
| 265 | |
Alexandre Julliard | d7d4fdf | 1995-12-26 15:05:24 +0000 | [diff] [blame] | 266 | # Misc. rules |
| 267 | |
Ulrich Weigand | 3dff7bb | 1999-07-11 13:58:31 +0000 | [diff] [blame] | 268 | $(SPEC_SRCS:.spec=.spec.c): $(BUILD) $(TOPSRCDIR)/include/builtin16.h $(TOPSRCDIR)/include/builtin32.h |
| 269 | |
Ulrich Weigand | 8336cc9 | 1999-08-15 12:45:53 +0000 | [diff] [blame] | 270 | $(GLUE:.c=.glue.c): $(BUILD) $(TOPSRCDIR)/include/builtin16.h $(TOPSRCDIR)/include/builtin32.h |
Ulrich Weigand | 3dff7bb | 1999-07-11 13:58:31 +0000 | [diff] [blame] | 271 | |
Alexandre Julliard | d0edc5f | 2000-03-04 22:31:27 +0000 | [diff] [blame] | 272 | $(RC_SRCS:.rc=.s): $(WRC) |
| 273 | |
Alexandre Julliard | c53ceba | 2000-04-09 18:19:59 +0000 | [diff] [blame] | 274 | $(SUBDIRS): dummy |
| 275 | @cd $@ && $(MAKE) |
Alexandre Julliard | ff8331e | 1995-09-18 11:19:54 +0000 | [diff] [blame] | 276 | |
Alexandre Julliard | ff8331e | 1995-09-18 11:19:54 +0000 | [diff] [blame] | 277 | dummy: |
Alexandre Julliard | d7d4fdf | 1995-12-26 15:05:24 +0000 | [diff] [blame] | 278 | |
| 279 | # End of global rules |