diff options
| author | Gareth Rees | 2013-02-05 15:03:47 +0000 |
|---|---|---|
| committer | Gareth Rees | 2013-02-05 15:03:47 +0000 |
| commit | 2ffce9476ea8f7e2cb9a135afbf608f4ed648c21 (patch) | |
| tree | cd7250c762c54791c77ff0b3544641cfe27a7375 /mps/code | |
| parent | 37fa4901e8057111564c1d0f158329223cebd1e1 (diff) | |
| download | emacs-2ffce9476ea8f7e2cb9a135afbf608f4ed648c21.tar.gz emacs-2ffce9476ea8f7e2cb9a135afbf608f4ed648c21.zip | |
Build extra_targets. in particular, build eventsql only if configured to do so.
Copied from Perforce
Change: 180912
ServerID: perforce.ravenbrook.com
Diffstat (limited to 'mps/code')
| -rw-r--r-- | mps/code/comm.gmk | 14 |
1 files changed, 12 insertions, 2 deletions
diff --git a/mps/code/comm.gmk b/mps/code/comm.gmk index 1e568b83244..f0610635ad7 100644 --- a/mps/code/comm.gmk +++ b/mps/code/comm.gmk | |||
| @@ -11,6 +11,7 @@ | |||
| 11 | # PARAMETERS | 11 | # PARAMETERS |
| 12 | # | 12 | # |
| 13 | # Assumes the following variables and definitions: | 13 | # Assumes the following variables and definitions: |
| 14 | # EXTRA_TARGETS a list of extra targets to build | ||
| 14 | # CFLAGSCOMPILER a list of flags for all compilations | 15 | # CFLAGSCOMPILER a list of flags for all compilations |
| 15 | # CFLAGSSTRICT a list of flags for almost all compilations | 16 | # CFLAGSSTRICT a list of flags for almost all compilations |
| 16 | # CFLAGSLAX a list of flags for compilations which can't be as | 17 | # CFLAGSLAX a list of flags for compilations which can't be as |
| @@ -67,6 +68,15 @@ ifndef CFLAGSOPT | |||
| 67 | error "comm.gmk: CFLAGSOPT not defined" | 68 | error "comm.gmk: CFLAGSOPT not defined" |
| 68 | endif | 69 | endif |
| 69 | 70 | ||
| 71 | |||
| 72 | # EXTRA TARGETS | ||
| 73 | # | ||
| 74 | # Don't build eventsql by default (might not have sqlite3 installed), | ||
| 75 | # but do build eventcnv and eventtxt. | ||
| 76 | |||
| 77 | EXTRA_TARGETS ?= eventcnv eventtxt | ||
| 78 | |||
| 79 | |||
| 70 | # | 80 | # |
| 71 | # %%PART: When adding a new part, add checks for the parameter with the | 81 | # %%PART: When adding a new part, add checks for the parameter with the |
| 72 | # sources for the new part. | 82 | # sources for the new part. |
| @@ -212,7 +222,7 @@ all: mpmss sacss amcss amcsshe amsss amssshe segsmss awlut awluthe \ | |||
| 212 | finalcv finaltest arenacv bttest teletest \ | 222 | finalcv finaltest arenacv bttest teletest \ |
| 213 | abqtest cbstest btcv mv2test messtest steptest \ | 223 | abqtest cbstest btcv mv2test messtest steptest \ |
| 214 | walkt0 zcoll zmess \ | 224 | walkt0 zcoll zmess \ |
| 215 | eventcnv eventtxt eventsql \ | 225 | $(EXTRA_TARGETS) \ |
| 216 | mps.a mpsplan.a | 226 | mps.a mpsplan.a |
| 217 | 227 | ||
| 218 | 228 | ||
| @@ -241,7 +251,7 @@ mpmss sacss amcss amcssth amcsshe amsss amssshe segsmss awlut awlutth \ | |||
| 241 | walkt0 \ | 251 | walkt0 \ |
| 242 | exposet0 \ | 252 | exposet0 \ |
| 243 | zcoll zmess \ | 253 | zcoll zmess \ |
| 244 | eventcnv eventtxt eventsql replay replaysw \ | 254 | $(EXTRA_TARGETS) replay replaysw \ |
| 245 | mps.a mpsplan.a: phony | 255 | mps.a mpsplan.a: phony |
| 246 | ifdef VARIETY | 256 | ifdef VARIETY |
| 247 | $(MAKE) -f $(PFM).gmk TARGET=$@ variety | 257 | $(MAKE) -f $(PFM).gmk TARGET=$@ variety |