~ubuntu-branches/ubuntu/trusty/openarena/trusty

« back to all changes in this revision

Viewing changes to Makefile

  • Committer: Bazaar Package Importer
  • Author(s): Bruno "Fuddl" Kleinert
  • Date: 2009-11-19 17:37:45 UTC
  • Revision ID: james.westby@ubuntu.com-20091119173745-2c787mp8v6osge39
Tags: 0.8.1-6
* Convert source package to format 3.0 quilt
  * Drop build dependency on quilt
  * Remove quilt calls from debian/rules
  * Drop build dependency on sharutils, because we now can ship (binary) PNG
    icons in debian 3.0 source packages
* Import a patch from Simon McVittie (see #546184 for details) to fix building
  openarena on amd64 processors with a 32bit userland. Thanks to Simon
  McVittie! (Closes: #546184)
* Allow parallel builds for SMP machines to speed up building openarena
* Update Vcs-* fields as this package now lives in Git

Show diffs side-by-side

added added

removed removed

Lines of Context:
4
4
# GNU Make required
5
5
#
6
6
 
7
 
COMPILE_PLATFORM=$(shell uname|sed -e s/_.*//|tr '[:upper:]' '[:lower:]')
 
7
COMPILE_PLATFORM=$(shell uname|sed -e s/_.*//|tr '[:upper:]' '[:lower:]'|sed -e 's/\//_/g')
8
8
 
9
9
COMPILE_ARCH=$(shell uname -m | sed -e s/i.86/i386/)
10
10
 
134
134
endif
135
135
 
136
136
ifndef USE_INTERNAL_SPEEX
137
 
USE_INTERNAL_SPEEX=1
 
137
USE_INTERNAL_SPEEX=0
138
138
endif
139
139
 
140
140
ifndef USE_LOCAL_HEADERS
159
159
UIDIR=$(MOUNT_DIR)/ui
160
160
Q3UIDIR=$(MOUNT_DIR)/q3_ui
161
161
JPDIR=$(MOUNT_DIR)/jpeg-6
162
 
SPEEXDIR=$(MOUNT_DIR)/libspeex
 
162
#SPEEXDIR=$(MOUNT_DIR)/libspeex
163
163
Q3ASMDIR=$(MOUNT_DIR)/tools/asm
164
164
LBURGDIR=$(MOUNT_DIR)/tools/lcc/lburg
165
165
Q3CPPDIR=$(MOUNT_DIR)/tools/lcc/cpp
213
213
INSTALL=install
214
214
MKDIR=mkdir
215
215
 
216
 
ifeq ($(PLATFORM),linux)
 
216
ifneq (,findstring($(PLATFORM),linux gnu_kfreebsd kfreebsd-gnu))
217
217
 
218
218
  ifeq ($(ARCH),alpha)
219
 
    ARCH=axp
 
219
    ARCH=alpha
220
220
  else
221
221
  ifeq ($(ARCH),x86_64)
222
222
    LIB=lib64
291
291
    ifneq ($(USE_OPENAL_DLOPEN),1)
292
292
      CLIENT_LDFLAGS += -lopenal
293
293
    endif
 
294
  else
 
295
  ifeq ($(ARCH),alpha)
 
296
    OPTIMIZE = -O3 -funroll-loops -fomit-frame-pointer
 
297
  endif
294
298
  endif
295
299
 
296
300
  ifeq ($(USE_CURL),1)
516
520
ifeq ($(PLATFORM),freebsd)
517
521
 
518
522
  ifneq (,$(findstring alpha,$(shell uname -m)))
519
 
    ARCH=axp
 
523
    ARCH=alpha
520
524
  else #default to i386
521
525
    ARCH=i386
522
526
  endif #alpha test
536
540
    BASE_CFLAGS += -DUSE_CODEC_VORBIS
537
541
  endif
538
542
 
539
 
  ifeq ($(ARCH),axp)
 
543
  ifeq ($(ARCH),alpha)
540
544
    BASE_CFLAGS += -DNO_VM_COMPILED
541
545
    RELEASE_CFLAGS=$(BASE_CFLAGS) -DNDEBUG -O3 -ffast-math -funroll-loops \
542
546
      -fomit-frame-pointer -fexpensive-optimizations
823
827
    BASE_CFLAGS += -DFLOATING_POINT -DUSE_ALLOCA -I$(SPEEXDIR)/include
824
828
  else
825
829
    CLIENT_LDFLAGS += -lspeex
 
830
        CLIENT_LDFLAGS += -lspeexdsp
826
831
  endif
827
832
endif
828
833
 
1369
1374
endif
1370
1375
 
1371
1376
ifeq ($(USE_VOIP),1)
1372
 
ifeq ($(USE_INTERNAL_SPEEX),1)
1373
 
Q3OBJ += \
1374
 
  $(B)/client/bits.o \
1375
 
  $(B)/client/buffer.o \
1376
 
  $(B)/client/cb_search.o \
1377
 
  $(B)/client/exc_10_16_table.o \
1378
 
  $(B)/client/exc_10_32_table.o \
1379
 
  $(B)/client/exc_20_32_table.o \
1380
 
  $(B)/client/exc_5_256_table.o \
1381
 
  $(B)/client/exc_5_64_table.o \
1382
 
  $(B)/client/exc_8_128_table.o \
1383
 
  $(B)/client/fftwrap.o \
1384
 
  $(B)/client/filterbank.o \
1385
 
  $(B)/client/filters.o \
1386
 
  $(B)/client/gain_table.o \
1387
 
  $(B)/client/gain_table_lbr.o \
1388
 
  $(B)/client/hexc_10_32_table.o \
1389
 
  $(B)/client/hexc_table.o \
1390
 
  $(B)/client/high_lsp_tables.o \
1391
 
  $(B)/client/jitter.o \
1392
 
  $(B)/client/kiss_fft.o \
1393
 
  $(B)/client/kiss_fftr.o \
1394
 
  $(B)/client/lpc.o \
1395
 
  $(B)/client/lsp.o \
1396
 
  $(B)/client/lsp_tables_nb.o \
1397
 
  $(B)/client/ltp.o \
1398
 
  $(B)/client/mdf.o \
1399
 
  $(B)/client/modes.o \
1400
 
  $(B)/client/modes_wb.o \
1401
 
  $(B)/client/nb_celp.o \
1402
 
  $(B)/client/preprocess.o \
1403
 
  $(B)/client/quant_lsp.o \
1404
 
  $(B)/client/resample.o \
1405
 
  $(B)/client/sb_celp.o \
1406
 
  $(B)/client/smallft.o \
1407
 
  $(B)/client/speex.o \
1408
 
  $(B)/client/speex_callbacks.o \
1409
 
  $(B)/client/speex_header.o \
1410
 
  $(B)/client/stereo.o \
1411
 
  $(B)/client/vbr.o \
1412
 
  $(B)/client/vq.o \
1413
 
  $(B)/client/window.o
1414
 
endif
 
1377
#ifeq ($(USE_INTERNAL_SPEEX),1)
 
1378
#Q3OBJ += \
 
1379
#  $(B)/client/bits.o \
 
1380
#  $(B)/client/buffer.o \
 
1381
#  $(B)/client/cb_search.o \
 
1382
#  $(B)/client/exc_10_16_table.o \
 
1383
#  $(B)/client/exc_10_32_table.o \
 
1384
#  $(B)/client/exc_20_32_table.o \
 
1385
#  $(B)/client/exc_5_256_table.o \
 
1386
#  $(B)/client/exc_5_64_table.o \
 
1387
#  $(B)/client/exc_8_128_table.o \
 
1388
#  $(B)/client/fftwrap.o \
 
1389
#  $(B)/client/filterbank.o \
 
1390
#  $(B)/client/filters.o \
 
1391
#  $(B)/client/gain_table.o \
 
1392
#  $(B)/client/gain_table_lbr.o \
 
1393
#  $(B)/client/hexc_10_32_table.o \
 
1394
#  $(B)/client/hexc_table.o \
 
1395
#  $(B)/client/high_lsp_tables.o \
 
1396
#  $(B)/client/jitter.o \
 
1397
#  $(B)/client/kiss_fft.o \
 
1398
#  $(B)/client/kiss_fftr.o \
 
1399
#  $(B)/client/lpc.o \
 
1400
#  $(B)/client/lsp.o \
 
1401
#  $(B)/client/lsp_tables_nb.o \
 
1402
#  $(B)/client/ltp.o \
 
1403
#  $(B)/client/mdf.o \
 
1404
#  $(B)/client/modes.o \
 
1405
#  $(B)/client/modes_wb.o \
 
1406
#  $(B)/client/nb_celp.o \
 
1407
#  $(B)/client/preprocess.o \
 
1408
#  $(B)/client/quant_lsp.o \
 
1409
#  $(B)/client/resample.o \
 
1410
#  $(B)/client/sb_celp.o \
 
1411
#  $(B)/client/smallft.o \
 
1412
#  $(B)/client/speex.o \
 
1413
#  $(B)/client/speex_callbacks.o \
 
1414
#  $(B)/client/speex_header.o \
 
1415
#  $(B)/client/stereo.o \
 
1416
#  $(B)/client/vbr.o \
 
1417
#  $(B)/client/vq.o \
 
1418
#  $(B)/client/window.o
 
1419
#endif
1415
1420
endif
1416
1421
 
1417
1422
 
1893
1898
$(B)/client/%.o: $(JPDIR)/%.c
1894
1899
        $(DO_CC)
1895
1900
 
1896
 
$(B)/client/%.o: $(SPEEXDIR)/%.c
1897
 
        $(DO_CC)
 
1901
#$(B)/client/%.o: $(SPEEXDIR)/%.c
 
1902
#       $(DO_CC)
1898
1903
 
1899
1904
$(B)/client/%.o: $(RDIR)/%.c
1900
1905
        $(DO_CC)