makefile.old
author Neal Gompa (ニール・ゴンパ) <ngompa13@gmail.com>
Tue, 11 May 2010 22:09:34 -0500
branchcmake
changeset 109 d0ed8b1f4f7a
child 122 c3af28d0f07c
permissions -rw-r--r--
Resolved merges of FindOggVorbis.cmake and CMakeLists.txt
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
109
d0ed8b1f4f7a Resolved merges of FindOggVorbis.cmake and CMakeLists.txt
Neal Gompa (ニール・ゴンパ) <ngompa13@gmail.com>
parents:
diff changeset
     1
d0ed8b1f4f7a Resolved merges of FindOggVorbis.cmake and CMakeLists.txt
Neal Gompa (ニール・ゴンパ) <ngompa13@gmail.com>
parents:
diff changeset
     2
macosx := false
d0ed8b1f4f7a Resolved merges of FindOggVorbis.cmake and CMakeLists.txt
Neal Gompa (ニール・ゴンパ) <ngompa13@gmail.com>
parents:
diff changeset
     3
use_devil := false
d0ed8b1f4f7a Resolved merges of FindOggVorbis.cmake and CMakeLists.txt
Neal Gompa (ニール・ゴンパ) <ngompa13@gmail.com>
parents:
diff changeset
     4
use_fmod := false
d0ed8b1f4f7a Resolved merges of FindOggVorbis.cmake and CMakeLists.txt
Neal Gompa (ニール・ゴンパ) <ngompa13@gmail.com>
parents:
diff changeset
     5
d0ed8b1f4f7a Resolved merges of FindOggVorbis.cmake and CMakeLists.txt
Neal Gompa (ニール・ゴンパ) <ngompa13@gmail.com>
parents:
diff changeset
     6
ifeq ($(strip $(shell uname -s)),Darwin)
d0ed8b1f4f7a Resolved merges of FindOggVorbis.cmake and CMakeLists.txt
Neal Gompa (ニール・ゴンパ) <ngompa13@gmail.com>
parents:
diff changeset
     7
	macosx := true
d0ed8b1f4f7a Resolved merges of FindOggVorbis.cmake and CMakeLists.txt
Neal Gompa (ニール・ゴンパ) <ngompa13@gmail.com>
parents:
diff changeset
     8
endif
d0ed8b1f4f7a Resolved merges of FindOggVorbis.cmake and CMakeLists.txt
Neal Gompa (ニール・ゴンパ) <ngompa13@gmail.com>
parents:
diff changeset
     9
d0ed8b1f4f7a Resolved merges of FindOggVorbis.cmake and CMakeLists.txt
Neal Gompa (ニール・ゴンパ) <ngompa13@gmail.com>
parents:
diff changeset
    10
#OPT += -O0
d0ed8b1f4f7a Resolved merges of FindOggVorbis.cmake and CMakeLists.txt
Neal Gompa (ニール・ゴンパ) <ngompa13@gmail.com>
parents:
diff changeset
    11
OPT += -O3 -fno-strict-aliasing -falign-loops=16 -fno-math-errno
d0ed8b1f4f7a Resolved merges of FindOggVorbis.cmake and CMakeLists.txt
Neal Gompa (ニール・ゴンパ) <ngompa13@gmail.com>
parents:
diff changeset
    12
#OPT += -Os -fno-strict-aliasing
d0ed8b1f4f7a Resolved merges of FindOggVorbis.cmake and CMakeLists.txt
Neal Gompa (ニール・ゴンパ) <ngompa13@gmail.com>
parents:
diff changeset
    13
d0ed8b1f4f7a Resolved merges of FindOggVorbis.cmake and CMakeLists.txt
Neal Gompa (ニール・ゴンパ) <ngompa13@gmail.com>
parents:
diff changeset
    14
BINDIR := bin
d0ed8b1f4f7a Resolved merges of FindOggVorbis.cmake and CMakeLists.txt
Neal Gompa (ニール・ゴンパ) <ngompa13@gmail.com>
parents:
diff changeset
    15
RUNDIR := Data
d0ed8b1f4f7a Resolved merges of FindOggVorbis.cmake and CMakeLists.txt
Neal Gompa (ニール・ゴンパ) <ngompa13@gmail.com>
parents:
diff changeset
    16
SRCDIR := Source
d0ed8b1f4f7a Resolved merges of FindOggVorbis.cmake and CMakeLists.txt
Neal Gompa (ニール・ゴンパ) <ngompa13@gmail.com>
parents:
diff changeset
    17
SDLDIR := SDL12
d0ed8b1f4f7a Resolved merges of FindOggVorbis.cmake and CMakeLists.txt
Neal Gompa (ニール・ゴンパ) <ngompa13@gmail.com>
parents:
diff changeset
    18
LIBPNGDIR := libpng-1.2.8
d0ed8b1f4f7a Resolved merges of FindOggVorbis.cmake and CMakeLists.txt
Neal Gompa (ニール・ゴンパ) <ngompa13@gmail.com>
parents:
diff changeset
    19
JPEGLIBDIR := jpeg-6b
d0ed8b1f4f7a Resolved merges of FindOggVorbis.cmake and CMakeLists.txt
Neal Gompa (ニール・ゴンパ) <ngompa13@gmail.com>
parents:
diff changeset
    20
ZLIBDIR := zlib-1.2.3
d0ed8b1f4f7a Resolved merges of FindOggVorbis.cmake and CMakeLists.txt
Neal Gompa (ニール・ゴンパ) <ngompa13@gmail.com>
parents:
diff changeset
    21
OPENALDIR := OpenAL
d0ed8b1f4f7a Resolved merges of FindOggVorbis.cmake and CMakeLists.txt
Neal Gompa (ニール・ゴンパ) <ngompa13@gmail.com>
parents:
diff changeset
    22
GLUDIR := GLU
d0ed8b1f4f7a Resolved merges of FindOggVorbis.cmake and CMakeLists.txt
Neal Gompa (ニール・ゴンパ) <ngompa13@gmail.com>
parents:
diff changeset
    23
LIBOGGDIR := libogg-1.0
d0ed8b1f4f7a Resolved merges of FindOggVorbis.cmake and CMakeLists.txt
Neal Gompa (ニール・ゴンパ) <ngompa13@gmail.com>
parents:
diff changeset
    24
LIBVORBISDIR := libvorbis-1.0.1
d0ed8b1f4f7a Resolved merges of FindOggVorbis.cmake and CMakeLists.txt
Neal Gompa (ニール・ゴンパ) <ngompa13@gmail.com>
parents:
diff changeset
    25
d0ed8b1f4f7a Resolved merges of FindOggVorbis.cmake and CMakeLists.txt
Neal Gompa (ニール・ゴンパ) <ngompa13@gmail.com>
parents:
diff changeset
    26
ifeq ($(strip $(macosx)),true)
d0ed8b1f4f7a Resolved merges of FindOggVorbis.cmake and CMakeLists.txt
Neal Gompa (ニール・ゴンパ) <ngompa13@gmail.com>
parents:
diff changeset
    27
	CXX := g++-4.0
d0ed8b1f4f7a Resolved merges of FindOggVorbis.cmake and CMakeLists.txt
Neal Gompa (ニール・ゴンパ) <ngompa13@gmail.com>
parents:
diff changeset
    28
	CC := gcc-4.0
d0ed8b1f4f7a Resolved merges of FindOggVorbis.cmake and CMakeLists.txt
Neal Gompa (ニール・ゴンパ) <ngompa13@gmail.com>
parents:
diff changeset
    29
	LD := g++-4.0
d0ed8b1f4f7a Resolved merges of FindOggVorbis.cmake and CMakeLists.txt
Neal Gompa (ニール・ゴンパ) <ngompa13@gmail.com>
parents:
diff changeset
    30
d0ed8b1f4f7a Resolved merges of FindOggVorbis.cmake and CMakeLists.txt
Neal Gompa (ニール・ゴンパ) <ngompa13@gmail.com>
parents:
diff changeset
    31
  	ifeq ($(strip $(use_devil)),true)
d0ed8b1f4f7a Resolved merges of FindOggVorbis.cmake and CMakeLists.txt
Neal Gompa (ニール・ゴンパ) <ngompa13@gmail.com>
parents:
diff changeset
    32
        $(error DEVIL isn't supported in the Mac OS X builds right now.)
d0ed8b1f4f7a Resolved merges of FindOggVorbis.cmake and CMakeLists.txt
Neal Gompa (ニール・ゴンパ) <ngompa13@gmail.com>
parents:
diff changeset
    33
    endif
d0ed8b1f4f7a Resolved merges of FindOggVorbis.cmake and CMakeLists.txt
Neal Gompa (ニール・ゴンパ) <ngompa13@gmail.com>
parents:
diff changeset
    34
d0ed8b1f4f7a Resolved merges of FindOggVorbis.cmake and CMakeLists.txt
Neal Gompa (ニール・ゴンパ) <ngompa13@gmail.com>
parents:
diff changeset
    35
  	ifeq ($(strip $(use_fmod)),true)
d0ed8b1f4f7a Resolved merges of FindOggVorbis.cmake and CMakeLists.txt
Neal Gompa (ニール・ゴンパ) <ngompa13@gmail.com>
parents:
diff changeset
    36
        $(error FMOD isn't supported in the Mac OS X builds right now.)
d0ed8b1f4f7a Resolved merges of FindOggVorbis.cmake and CMakeLists.txt
Neal Gompa (ニール・ゴンパ) <ngompa13@gmail.com>
parents:
diff changeset
    37
    endif
d0ed8b1f4f7a Resolved merges of FindOggVorbis.cmake and CMakeLists.txt
Neal Gompa (ニール・ゴンパ) <ngompa13@gmail.com>
parents:
diff changeset
    38
d0ed8b1f4f7a Resolved merges of FindOggVorbis.cmake and CMakeLists.txt
Neal Gompa (ニール・ゴンパ) <ngompa13@gmail.com>
parents:
diff changeset
    39
	ifeq ($(strip $(XCODE_DIR)),)
d0ed8b1f4f7a Resolved merges of FindOggVorbis.cmake and CMakeLists.txt
Neal Gompa (ニール・ゴンパ) <ngompa13@gmail.com>
parents:
diff changeset
    40
        XCODE_DIR := /Developer
d0ed8b1f4f7a Resolved merges of FindOggVorbis.cmake and CMakeLists.txt
Neal Gompa (ニール・ゴンパ) <ngompa13@gmail.com>
parents:
diff changeset
    41
    endif
d0ed8b1f4f7a Resolved merges of FindOggVorbis.cmake and CMakeLists.txt
Neal Gompa (ニール・ゴンパ) <ngompa13@gmail.com>
parents:
diff changeset
    42
d0ed8b1f4f7a Resolved merges of FindOggVorbis.cmake and CMakeLists.txt
Neal Gompa (ニール・ゴンパ) <ngompa13@gmail.com>
parents:
diff changeset
    43
	ifeq ($(strip $(macosx_arch)),)
d0ed8b1f4f7a Resolved merges of FindOggVorbis.cmake and CMakeLists.txt
Neal Gompa (ニール・ゴンパ) <ngompa13@gmail.com>
parents:
diff changeset
    44
	  	macosx_arch := $(shell uname -m)
d0ed8b1f4f7a Resolved merges of FindOggVorbis.cmake and CMakeLists.txt
Neal Gompa (ニール・ゴンパ) <ngompa13@gmail.com>
parents:
diff changeset
    45
	endif
d0ed8b1f4f7a Resolved merges of FindOggVorbis.cmake and CMakeLists.txt
Neal Gompa (ニール・ゴンパ) <ngompa13@gmail.com>
parents:
diff changeset
    46
d0ed8b1f4f7a Resolved merges of FindOggVorbis.cmake and CMakeLists.txt
Neal Gompa (ニール・ゴンパ) <ngompa13@gmail.com>
parents:
diff changeset
    47
	ifeq ($(strip $(macosx_arch)),ppc)
d0ed8b1f4f7a Resolved merges of FindOggVorbis.cmake and CMakeLists.txt
Neal Gompa (ニール・ゴンパ) <ngompa13@gmail.com>
parents:
diff changeset
    48
        macosx_arch_okay := true
d0ed8b1f4f7a Resolved merges of FindOggVorbis.cmake and CMakeLists.txt
Neal Gompa (ニール・ゴンパ) <ngompa13@gmail.com>
parents:
diff changeset
    49
        macosx_version_min := 10.4
d0ed8b1f4f7a Resolved merges of FindOggVorbis.cmake and CMakeLists.txt
Neal Gompa (ニール・ゴンパ) <ngompa13@gmail.com>
parents:
diff changeset
    50
        macosx_version_min_required := 1040
d0ed8b1f4f7a Resolved merges of FindOggVorbis.cmake and CMakeLists.txt
Neal Gompa (ニール・ゴンパ) <ngompa13@gmail.com>
parents:
diff changeset
    51
		macosx_sdk_dir := MacOSX10.4u.sdk
d0ed8b1f4f7a Resolved merges of FindOggVorbis.cmake and CMakeLists.txt
Neal Gompa (ニール・ゴンパ) <ngompa13@gmail.com>
parents:
diff changeset
    52
		macosx_gcc_dir := powerpc-apple-darwin10/4.0.1
d0ed8b1f4f7a Resolved merges of FindOggVorbis.cmake and CMakeLists.txt
Neal Gompa (ニール・ゴンパ) <ngompa13@gmail.com>
parents:
diff changeset
    53
		macosx_gcc_libdir := $(macosx_gcc_dir)
d0ed8b1f4f7a Resolved merges of FindOggVorbis.cmake and CMakeLists.txt
Neal Gompa (ニール・ゴンパ) <ngompa13@gmail.com>
parents:
diff changeset
    54
		macosx_cxx_dir := powerpc-apple-darwin8
d0ed8b1f4f7a Resolved merges of FindOggVorbis.cmake and CMakeLists.txt
Neal Gompa (ニール・ゴンパ) <ngompa13@gmail.com>
parents:
diff changeset
    55
    endif
d0ed8b1f4f7a Resolved merges of FindOggVorbis.cmake and CMakeLists.txt
Neal Gompa (ニール・ゴンパ) <ngompa13@gmail.com>
parents:
diff changeset
    56
d0ed8b1f4f7a Resolved merges of FindOggVorbis.cmake and CMakeLists.txt
Neal Gompa (ニール・ゴンパ) <ngompa13@gmail.com>
parents:
diff changeset
    57
	ifeq ($(strip $(macosx_arch)),i386)
d0ed8b1f4f7a Resolved merges of FindOggVorbis.cmake and CMakeLists.txt
Neal Gompa (ニール・ゴンパ) <ngompa13@gmail.com>
parents:
diff changeset
    58
        macosx_arch_okay := true
d0ed8b1f4f7a Resolved merges of FindOggVorbis.cmake and CMakeLists.txt
Neal Gompa (ニール・ゴンパ) <ngompa13@gmail.com>
parents:
diff changeset
    59
        macosx_version_min := 10.4
d0ed8b1f4f7a Resolved merges of FindOggVorbis.cmake and CMakeLists.txt
Neal Gompa (ニール・ゴンパ) <ngompa13@gmail.com>
parents:
diff changeset
    60
        macosx_version_min_required := 1040
d0ed8b1f4f7a Resolved merges of FindOggVorbis.cmake and CMakeLists.txt
Neal Gompa (ニール・ゴンパ) <ngompa13@gmail.com>
parents:
diff changeset
    61
		macosx_sdk_dir := MacOSX10.4u.sdk
d0ed8b1f4f7a Resolved merges of FindOggVorbis.cmake and CMakeLists.txt
Neal Gompa (ニール・ゴンパ) <ngompa13@gmail.com>
parents:
diff changeset
    62
		macosx_gcc_dir := i686-apple-darwin10/4.0.1
d0ed8b1f4f7a Resolved merges of FindOggVorbis.cmake and CMakeLists.txt
Neal Gompa (ニール・ゴンパ) <ngompa13@gmail.com>
parents:
diff changeset
    63
		macosx_gcc_libdir := $(macosx_gcc_dir)
d0ed8b1f4f7a Resolved merges of FindOggVorbis.cmake and CMakeLists.txt
Neal Gompa (ニール・ゴンパ) <ngompa13@gmail.com>
parents:
diff changeset
    64
		macosx_cxx_dir := i686-apple-darwin8
d0ed8b1f4f7a Resolved merges of FindOggVorbis.cmake and CMakeLists.txt
Neal Gompa (ニール・ゴンパ) <ngompa13@gmail.com>
parents:
diff changeset
    65
    endif
d0ed8b1f4f7a Resolved merges of FindOggVorbis.cmake and CMakeLists.txt
Neal Gompa (ニール・ゴンパ) <ngompa13@gmail.com>
parents:
diff changeset
    66
d0ed8b1f4f7a Resolved merges of FindOggVorbis.cmake and CMakeLists.txt
Neal Gompa (ニール・ゴンパ) <ngompa13@gmail.com>
parents:
diff changeset
    67
	ifeq ($(strip $(macosx_arch)),x86_64)
d0ed8b1f4f7a Resolved merges of FindOggVorbis.cmake and CMakeLists.txt
Neal Gompa (ニール・ゴンパ) <ngompa13@gmail.com>
parents:
diff changeset
    68
        macosx_arch_okay := true
d0ed8b1f4f7a Resolved merges of FindOggVorbis.cmake and CMakeLists.txt
Neal Gompa (ニール・ゴンパ) <ngompa13@gmail.com>
parents:
diff changeset
    69
        macosx_version_min := 10.6
d0ed8b1f4f7a Resolved merges of FindOggVorbis.cmake and CMakeLists.txt
Neal Gompa (ニール・ゴンパ) <ngompa13@gmail.com>
parents:
diff changeset
    70
        macosx_version_min_required := 1060
d0ed8b1f4f7a Resolved merges of FindOggVorbis.cmake and CMakeLists.txt
Neal Gompa (ニール・ゴンパ) <ngompa13@gmail.com>
parents:
diff changeset
    71
		macosx_sdk_dir := MacOSX10.6.sdk
d0ed8b1f4f7a Resolved merges of FindOggVorbis.cmake and CMakeLists.txt
Neal Gompa (ニール・ゴンパ) <ngompa13@gmail.com>
parents:
diff changeset
    72
		macosx_gcc_dir := i686-apple-darwin10/4.0.1
d0ed8b1f4f7a Resolved merges of FindOggVorbis.cmake and CMakeLists.txt
Neal Gompa (ニール・ゴンパ) <ngompa13@gmail.com>
parents:
diff changeset
    73
		macosx_gcc_libdir := $(macosx_gcc_dir)/x86_64
d0ed8b1f4f7a Resolved merges of FindOggVorbis.cmake and CMakeLists.txt
Neal Gompa (ニール・ゴンパ) <ngompa13@gmail.com>
parents:
diff changeset
    74
		macosx_cxx_dir := x86_64-apple-darwin8
d0ed8b1f4f7a Resolved merges of FindOggVorbis.cmake and CMakeLists.txt
Neal Gompa (ニール・ゴンパ) <ngompa13@gmail.com>
parents:
diff changeset
    75
    endif
d0ed8b1f4f7a Resolved merges of FindOggVorbis.cmake and CMakeLists.txt
Neal Gompa (ニール・ゴンパ) <ngompa13@gmail.com>
parents:
diff changeset
    76
d0ed8b1f4f7a Resolved merges of FindOggVorbis.cmake and CMakeLists.txt
Neal Gompa (ニール・ゴンパ) <ngompa13@gmail.com>
parents:
diff changeset
    77
	ifneq ($(strip $(macosx_arch_okay)),true)
d0ed8b1f4f7a Resolved merges of FindOggVorbis.cmake and CMakeLists.txt
Neal Gompa (ニール・ゴンパ) <ngompa13@gmail.com>
parents:
diff changeset
    78
        $(error Unknown Mac OS X architecture. Please update the makefile.)
d0ed8b1f4f7a Resolved merges of FindOggVorbis.cmake and CMakeLists.txt
Neal Gompa (ニール・ゴンパ) <ngompa13@gmail.com>
parents:
diff changeset
    79
    endif
d0ed8b1f4f7a Resolved merges of FindOggVorbis.cmake and CMakeLists.txt
Neal Gompa (ニール・ゴンパ) <ngompa13@gmail.com>
parents:
diff changeset
    80
d0ed8b1f4f7a Resolved merges of FindOggVorbis.cmake and CMakeLists.txt
Neal Gompa (ニール・ゴンパ) <ngompa13@gmail.com>
parents:
diff changeset
    81
   	EXEEXT := $(macosx_arch)
d0ed8b1f4f7a Resolved merges of FindOggVorbis.cmake and CMakeLists.txt
Neal Gompa (ニール・ゴンパ) <ngompa13@gmail.com>
parents:
diff changeset
    82
d0ed8b1f4f7a Resolved merges of FindOggVorbis.cmake and CMakeLists.txt
Neal Gompa (ニール・ゴンパ) <ngompa13@gmail.com>
parents:
diff changeset
    83
    CFLAGS += -arch $(macosx_arch)
d0ed8b1f4f7a Resolved merges of FindOggVorbis.cmake and CMakeLists.txt
Neal Gompa (ニール・ゴンパ) <ngompa13@gmail.com>
parents:
diff changeset
    84
    CFLAGS += -mmacosx-version-min=$(macosx_version_min)
d0ed8b1f4f7a Resolved merges of FindOggVorbis.cmake and CMakeLists.txt
Neal Gompa (ニール・ゴンパ) <ngompa13@gmail.com>
parents:
diff changeset
    85
    CFLAGS += -DMAC_OS_X_VERSION_MIN_REQUIRED=$(macosx_version_min_required)
d0ed8b1f4f7a Resolved merges of FindOggVorbis.cmake and CMakeLists.txt
Neal Gompa (ニール・ゴンパ) <ngompa13@gmail.com>
parents:
diff changeset
    86
    CFLAGS += -nostdinc
d0ed8b1f4f7a Resolved merges of FindOggVorbis.cmake and CMakeLists.txt
Neal Gompa (ニール・ゴンパ) <ngompa13@gmail.com>
parents:
diff changeset
    87
    CFLAGS += -F$(XCODE_DIR)/SDKs/$(macosx_sdk_dir)/System/Library/Frameworks
d0ed8b1f4f7a Resolved merges of FindOggVorbis.cmake and CMakeLists.txt
Neal Gompa (ニール・ゴンパ) <ngompa13@gmail.com>
parents:
diff changeset
    88
    CFLAGS += -I$(XCODE_DIR)/SDKs/$(macosx_sdk_dir)/usr/lib/gcc/$(macosx_gcc_dir)/include
d0ed8b1f4f7a Resolved merges of FindOggVorbis.cmake and CMakeLists.txt
Neal Gompa (ニール・ゴンパ) <ngompa13@gmail.com>
parents:
diff changeset
    89
    CFLAGS += -isystem $(XCODE_DIR)/SDKs/$(macosx_sdk_dir)/usr/include
d0ed8b1f4f7a Resolved merges of FindOggVorbis.cmake and CMakeLists.txt
Neal Gompa (ニール・ゴンパ) <ngompa13@gmail.com>
parents:
diff changeset
    90
    CFLAGS += -isystem $(XCODE_DIR)/SDKs/$(macosx_sdk_dir)/usr/include/c++/4.0.0
d0ed8b1f4f7a Resolved merges of FindOggVorbis.cmake and CMakeLists.txt
Neal Gompa (ニール・ゴンパ) <ngompa13@gmail.com>
parents:
diff changeset
    91
    CFLAGS += -isystem $(XCODE_DIR)/SDKs/$(macosx_sdk_dir)/usr/include/c++/4.0.0/$(macosx_cxx_dir)
d0ed8b1f4f7a Resolved merges of FindOggVorbis.cmake and CMakeLists.txt
Neal Gompa (ニール・ゴンパ) <ngompa13@gmail.com>
parents:
diff changeset
    92
    CFLAGS += -isystem $(XCODE_DIR)/SDKs/$(macosx_sdk_dir)/usr/include/c++/4.0.0/$(macosx_cxx_dir)/bits
d0ed8b1f4f7a Resolved merges of FindOggVorbis.cmake and CMakeLists.txt
Neal Gompa (ニール・ゴンパ) <ngompa13@gmail.com>
parents:
diff changeset
    93
    CFLAGS += -isystem $(XCODE_DIR)/SDKs/$(macosx_sdk_dir)/usr/include/c++/4.0.0/backward
d0ed8b1f4f7a Resolved merges of FindOggVorbis.cmake and CMakeLists.txt
Neal Gompa (ニール・ゴンパ) <ngompa13@gmail.com>
parents:
diff changeset
    94
  	CFLAGS += -mdynamic-no-pic
d0ed8b1f4f7a Resolved merges of FindOggVorbis.cmake and CMakeLists.txt
Neal Gompa (ニール・ゴンパ) <ngompa13@gmail.com>
parents:
diff changeset
    95
d0ed8b1f4f7a Resolved merges of FindOggVorbis.cmake and CMakeLists.txt
Neal Gompa (ニール・ゴンパ) <ngompa13@gmail.com>
parents:
diff changeset
    96
    LDFLAGS += -arch $(macosx_arch)
d0ed8b1f4f7a Resolved merges of FindOggVorbis.cmake and CMakeLists.txt
Neal Gompa (ニール・ゴンパ) <ngompa13@gmail.com>
parents:
diff changeset
    97
    LDFLAGS += -mmacosx-version-min=$(macosx_version_min)
d0ed8b1f4f7a Resolved merges of FindOggVorbis.cmake and CMakeLists.txt
Neal Gompa (ニール・ゴンパ) <ngompa13@gmail.com>
parents:
diff changeset
    98
    LDFLAGS += -F$(XCODE_DIR)/SDKs/$(macosx_sdk_dir)/System/Library/Frameworks
d0ed8b1f4f7a Resolved merges of FindOggVorbis.cmake and CMakeLists.txt
Neal Gompa (ニール・ゴンパ) <ngompa13@gmail.com>
parents:
diff changeset
    99
    LDFLAGS += -L$(XCODE_DIR)/SDKs/$(macosx_sdk_dir)/usr/lib/gcc/$(macosx_gcc_libdir)
d0ed8b1f4f7a Resolved merges of FindOggVorbis.cmake and CMakeLists.txt
Neal Gompa (ニール・ゴンパ) <ngompa13@gmail.com>
parents:
diff changeset
   100
    LDFLAGS += -Wl,-syslibroot,$(XCODE_DIR)/SDKs/$(macosx_sdk_dir)
d0ed8b1f4f7a Resolved merges of FindOggVorbis.cmake and CMakeLists.txt
Neal Gompa (ニール・ゴンパ) <ngompa13@gmail.com>
parents:
diff changeset
   101
  	LDFLAGS += -framework Cocoa -framework OpenGL -framework IOKit -framework CoreFoundation -framework Carbon -framework OpenAL
d0ed8b1f4f7a Resolved merges of FindOggVorbis.cmake and CMakeLists.txt
Neal Gompa (ニール・ゴンパ) <ngompa13@gmail.com>
parents:
diff changeset
   102
  	LDFLAGS += ./libSDL-1.2.0.dylib ./libSDLmain-osx.a
d0ed8b1f4f7a Resolved merges of FindOggVorbis.cmake and CMakeLists.txt
Neal Gompa (ニール・ゴンパ) <ngompa13@gmail.com>
parents:
diff changeset
   103
else
d0ed8b1f4f7a Resolved merges of FindOggVorbis.cmake and CMakeLists.txt
Neal Gompa (ニール・ゴンパ) <ngompa13@gmail.com>
parents:
diff changeset
   104
	CXX := /opt/crosstool/gcc-4.1.2-glibc-2.3.6/i686-unknown-linux-gnu/i686-unknown-linux-gnu/bin/g++
d0ed8b1f4f7a Resolved merges of FindOggVorbis.cmake and CMakeLists.txt
Neal Gompa (ニール・ゴンパ) <ngompa13@gmail.com>
parents:
diff changeset
   105
	CC := /opt/crosstool/gcc-4.1.2-glibc-2.3.6/i686-unknown-linux-gnu/i686-unknown-linux-gnu/bin/gcc
d0ed8b1f4f7a Resolved merges of FindOggVorbis.cmake and CMakeLists.txt
Neal Gompa (ニール・ゴンパ) <ngompa13@gmail.com>
parents:
diff changeset
   106
	LD := /opt/crosstool/gcc-4.1.2-glibc-2.3.6/i686-unknown-linux-gnu/i686-unknown-linux-gnu/bin/g++
d0ed8b1f4f7a Resolved merges of FindOggVorbis.cmake and CMakeLists.txt
Neal Gompa (ニール・ゴンパ) <ngompa13@gmail.com>
parents:
diff changeset
   107
d0ed8b1f4f7a Resolved merges of FindOggVorbis.cmake and CMakeLists.txt
Neal Gompa (ニール・ゴンパ) <ngompa13@gmail.com>
parents:
diff changeset
   108
  	CFLAGS += -DPLATFORM_LINUX=1
d0ed8b1f4f7a Resolved merges of FindOggVorbis.cmake and CMakeLists.txt
Neal Gompa (ニール・ゴンパ) <ngompa13@gmail.com>
parents:
diff changeset
   109
  	LDFLAGS += ./libSDL-1.2.so.0 -Wl,-rpath,\$$ORIGIN
d0ed8b1f4f7a Resolved merges of FindOggVorbis.cmake and CMakeLists.txt
Neal Gompa (ニール・ゴンパ) <ngompa13@gmail.com>
parents:
diff changeset
   110
d0ed8b1f4f7a Resolved merges of FindOggVorbis.cmake and CMakeLists.txt
Neal Gompa (ニール・ゴンパ) <ngompa13@gmail.com>
parents:
diff changeset
   111
  	ifeq ($(strip $(use_devil)),true)
d0ed8b1f4f7a Resolved merges of FindOggVorbis.cmake and CMakeLists.txt
Neal Gompa (ニール・ゴンパ) <ngompa13@gmail.com>
parents:
diff changeset
   112
    	LDFLAGS += ./libIL.so.1 ./libILU.so.1 ./libILUT.so.1
d0ed8b1f4f7a Resolved merges of FindOggVorbis.cmake and CMakeLists.txt
Neal Gompa (ニール・ゴンパ) <ngompa13@gmail.com>
parents:
diff changeset
   113
  	endif
d0ed8b1f4f7a Resolved merges of FindOggVorbis.cmake and CMakeLists.txt
Neal Gompa (ニール・ゴンパ) <ngompa13@gmail.com>
parents:
diff changeset
   114
d0ed8b1f4f7a Resolved merges of FindOggVorbis.cmake and CMakeLists.txt
Neal Gompa (ニール・ゴンパ) <ngompa13@gmail.com>
parents:
diff changeset
   115
  	ifeq ($(strip $(use_fmod)),true)
d0ed8b1f4f7a Resolved merges of FindOggVorbis.cmake and CMakeLists.txt
Neal Gompa (ニール・ゴンパ) <ngompa13@gmail.com>
parents:
diff changeset
   116
    	POSTLDFLAGS += -lpthread ./libfmod-linux-x86.a
d0ed8b1f4f7a Resolved merges of FindOggVorbis.cmake and CMakeLists.txt
Neal Gompa (ニール・ゴンパ) <ngompa13@gmail.com>
parents:
diff changeset
   117
  	else
d0ed8b1f4f7a Resolved merges of FindOggVorbis.cmake and CMakeLists.txt
Neal Gompa (ニール・ゴンパ) <ngompa13@gmail.com>
parents:
diff changeset
   118
    	LDFLAGS += ./libopenal.so.1
d0ed8b1f4f7a Resolved merges of FindOggVorbis.cmake and CMakeLists.txt
Neal Gompa (ニール・ゴンパ) <ngompa13@gmail.com>
parents:
diff changeset
   119
  	endif
d0ed8b1f4f7a Resolved merges of FindOggVorbis.cmake and CMakeLists.txt
Neal Gompa (ニール・ゴンパ) <ngompa13@gmail.com>
parents:
diff changeset
   120
endif
d0ed8b1f4f7a Resolved merges of FindOggVorbis.cmake and CMakeLists.txt
Neal Gompa (ニール・ゴンパ) <ngompa13@gmail.com>
parents:
diff changeset
   121
d0ed8b1f4f7a Resolved merges of FindOggVorbis.cmake and CMakeLists.txt
Neal Gompa (ニール・ゴンパ) <ngompa13@gmail.com>
parents:
diff changeset
   122
DEFINES += \
d0ed8b1f4f7a Resolved merges of FindOggVorbis.cmake and CMakeLists.txt
Neal Gompa (ニール・ゴンパ) <ngompa13@gmail.com>
parents:
diff changeset
   123
	-DPLATFORM_UNIX=1 \
d0ed8b1f4f7a Resolved merges of FindOggVorbis.cmake and CMakeLists.txt
Neal Gompa (ニール・ゴンパ) <ngompa13@gmail.com>
parents:
diff changeset
   124
	-DUSE_SDL=1 \
d0ed8b1f4f7a Resolved merges of FindOggVorbis.cmake and CMakeLists.txt
Neal Gompa (ニール・ゴンパ) <ngompa13@gmail.com>
parents:
diff changeset
   125
	-DTRUE=1 \
d0ed8b1f4f7a Resolved merges of FindOggVorbis.cmake and CMakeLists.txt
Neal Gompa (ニール・ゴンパ) <ngompa13@gmail.com>
parents:
diff changeset
   126
	-DFALSE=0 \
d0ed8b1f4f7a Resolved merges of FindOggVorbis.cmake and CMakeLists.txt
Neal Gompa (ニール・ゴンパ) <ngompa13@gmail.com>
parents:
diff changeset
   127
	-Dstricmp=strcasecmp \
d0ed8b1f4f7a Resolved merges of FindOggVorbis.cmake and CMakeLists.txt
Neal Gompa (ニール・ゴンパ) <ngompa13@gmail.com>
parents:
diff changeset
   128
	-DBinIO_STDINT_HEADER="<stdint.h>" \
d0ed8b1f4f7a Resolved merges of FindOggVorbis.cmake and CMakeLists.txt
Neal Gompa (ニール・ゴンパ) <ngompa13@gmail.com>
parents:
diff changeset
   129
d0ed8b1f4f7a Resolved merges of FindOggVorbis.cmake and CMakeLists.txt
Neal Gompa (ニール・ゴンパ) <ngompa13@gmail.com>
parents:
diff changeset
   130
INCLUDES += \
d0ed8b1f4f7a Resolved merges of FindOggVorbis.cmake and CMakeLists.txt
Neal Gompa (ニール・ゴンパ) <ngompa13@gmail.com>
parents:
diff changeset
   131
			-I$(SRCDIR) \
d0ed8b1f4f7a Resolved merges of FindOggVorbis.cmake and CMakeLists.txt
Neal Gompa (ニール・ゴンパ) <ngompa13@gmail.com>
parents:
diff changeset
   132
			-I$(SDLDIR)/include \
d0ed8b1f4f7a Resolved merges of FindOggVorbis.cmake and CMakeLists.txt
Neal Gompa (ニール・ゴンパ) <ngompa13@gmail.com>
parents:
diff changeset
   133
			-I./OpenGL/ \
d0ed8b1f4f7a Resolved merges of FindOggVorbis.cmake and CMakeLists.txt
Neal Gompa (ニール・ゴンパ) <ngompa13@gmail.com>
parents:
diff changeset
   134
			-I./OpenGL/GL \
d0ed8b1f4f7a Resolved merges of FindOggVorbis.cmake and CMakeLists.txt
Neal Gompa (ニール・ゴンパ) <ngompa13@gmail.com>
parents:
diff changeset
   135
d0ed8b1f4f7a Resolved merges of FindOggVorbis.cmake and CMakeLists.txt
Neal Gompa (ニール・ゴンパ) <ngompa13@gmail.com>
parents:
diff changeset
   136
ifeq ($(strip $(use_devil)),true)
d0ed8b1f4f7a Resolved merges of FindOggVorbis.cmake and CMakeLists.txt
Neal Gompa (ニール・ゴンパ) <ngompa13@gmail.com>
parents:
diff changeset
   137
    DEFINES += -DUSE_DEVIL=1
d0ed8b1f4f7a Resolved merges of FindOggVorbis.cmake and CMakeLists.txt
Neal Gompa (ニール・ゴンパ) <ngompa13@gmail.com>
parents:
diff changeset
   138
    INCLUDES += -I$(SRCDIR)/devil/include
d0ed8b1f4f7a Resolved merges of FindOggVorbis.cmake and CMakeLists.txt
Neal Gompa (ニール・ゴンパ) <ngompa13@gmail.com>
parents:
diff changeset
   139
else
d0ed8b1f4f7a Resolved merges of FindOggVorbis.cmake and CMakeLists.txt
Neal Gompa (ニール・ゴンパ) <ngompa13@gmail.com>
parents:
diff changeset
   140
    DEFINES += -DZ_PREFIX=1
d0ed8b1f4f7a Resolved merges of FindOggVorbis.cmake and CMakeLists.txt
Neal Gompa (ニール・ゴンパ) <ngompa13@gmail.com>
parents:
diff changeset
   141
    INCLUDES += -I$(ZLIBDIR) -I$(LIBPNGDIR) -I$(JPEGLIBDIR)
d0ed8b1f4f7a Resolved merges of FindOggVorbis.cmake and CMakeLists.txt
Neal Gompa (ニール・ゴンパ) <ngompa13@gmail.com>
parents:
diff changeset
   142
endif
d0ed8b1f4f7a Resolved merges of FindOggVorbis.cmake and CMakeLists.txt
Neal Gompa (ニール・ゴンパ) <ngompa13@gmail.com>
parents:
diff changeset
   143
d0ed8b1f4f7a Resolved merges of FindOggVorbis.cmake and CMakeLists.txt
Neal Gompa (ニール・ゴンパ) <ngompa13@gmail.com>
parents:
diff changeset
   144
ifeq ($(strip $(use_fmod)),false)
d0ed8b1f4f7a Resolved merges of FindOggVorbis.cmake and CMakeLists.txt
Neal Gompa (ニール・ゴンパ) <ngompa13@gmail.com>
parents:
diff changeset
   145
    DEFINES += -DUSE_OPENAL=1
d0ed8b1f4f7a Resolved merges of FindOggVorbis.cmake and CMakeLists.txt
Neal Gompa (ニール・ゴンパ) <ngompa13@gmail.com>
parents:
diff changeset
   146
    INCLUDES += -I$(OPENALDIR)/include -I$(LIBOGGDIR)/include -I$(LIBVORBISDIR)/include
d0ed8b1f4f7a Resolved merges of FindOggVorbis.cmake and CMakeLists.txt
Neal Gompa (ニール・ゴンパ) <ngompa13@gmail.com>
parents:
diff changeset
   147
endif
d0ed8b1f4f7a Resolved merges of FindOggVorbis.cmake and CMakeLists.txt
Neal Gompa (ニール・ゴンパ) <ngompa13@gmail.com>
parents:
diff changeset
   148
d0ed8b1f4f7a Resolved merges of FindOggVorbis.cmake and CMakeLists.txt
Neal Gompa (ニール・ゴンパ) <ngompa13@gmail.com>
parents:
diff changeset
   149
CFLAGS += -g -c $(OPT) $(INCLUDES) $(DEFINES) -fsigned-char -pipe -w
d0ed8b1f4f7a Resolved merges of FindOggVorbis.cmake and CMakeLists.txt
Neal Gompa (ニール・ゴンパ) <ngompa13@gmail.com>
parents:
diff changeset
   150
d0ed8b1f4f7a Resolved merges of FindOggVorbis.cmake and CMakeLists.txt
Neal Gompa (ニール・ゴンパ) <ngompa13@gmail.com>
parents:
diff changeset
   151
d0ed8b1f4f7a Resolved merges of FindOggVorbis.cmake and CMakeLists.txt
Neal Gompa (ニール・ゴンパ) <ngompa13@gmail.com>
parents:
diff changeset
   152
ifeq ($(strip $(EXEEXT)),)
d0ed8b1f4f7a Resolved merges of FindOggVorbis.cmake and CMakeLists.txt
Neal Gompa (ニール・ゴンパ) <ngompa13@gmail.com>
parents:
diff changeset
   153
   	EXEEXT := bin
d0ed8b1f4f7a Resolved merges of FindOggVorbis.cmake and CMakeLists.txt
Neal Gompa (ニール・ゴンパ) <ngompa13@gmail.com>
parents:
diff changeset
   154
endif
d0ed8b1f4f7a Resolved merges of FindOggVorbis.cmake and CMakeLists.txt
Neal Gompa (ニール・ゴンパ) <ngompa13@gmail.com>
parents:
diff changeset
   155
EXE := $(RUNDIR)/lugaru-$(EXEEXT)
d0ed8b1f4f7a Resolved merges of FindOggVorbis.cmake and CMakeLists.txt
Neal Gompa (ニール・ゴンパ) <ngompa13@gmail.com>
parents:
diff changeset
   156
d0ed8b1f4f7a Resolved merges of FindOggVorbis.cmake and CMakeLists.txt
Neal Gompa (ニール・ゴンパ) <ngompa13@gmail.com>
parents:
diff changeset
   157
CXXFLAGS := $(CFLAGS)
d0ed8b1f4f7a Resolved merges of FindOggVorbis.cmake and CMakeLists.txt
Neal Gompa (ニール・ゴンパ) <ngompa13@gmail.com>
parents:
diff changeset
   158
d0ed8b1f4f7a Resolved merges of FindOggVorbis.cmake and CMakeLists.txt
Neal Gompa (ニール・ゴンパ) <ngompa13@gmail.com>
parents:
diff changeset
   159
SRCS := \
d0ed8b1f4f7a Resolved merges of FindOggVorbis.cmake and CMakeLists.txt
Neal Gompa (ニール・ゴンパ) <ngompa13@gmail.com>
parents:
diff changeset
   160
	Frustum.cpp \
d0ed8b1f4f7a Resolved merges of FindOggVorbis.cmake and CMakeLists.txt
Neal Gompa (ニール・ゴンパ) <ngompa13@gmail.com>
parents:
diff changeset
   161
	GameDraw.cpp \
d0ed8b1f4f7a Resolved merges of FindOggVorbis.cmake and CMakeLists.txt
Neal Gompa (ニール・ゴンパ) <ngompa13@gmail.com>
parents:
diff changeset
   162
	GameInitDispose.cpp \
d0ed8b1f4f7a Resolved merges of FindOggVorbis.cmake and CMakeLists.txt
Neal Gompa (ニール・ゴンパ) <ngompa13@gmail.com>
parents:
diff changeset
   163
	GameTick.cpp \
d0ed8b1f4f7a Resolved merges of FindOggVorbis.cmake and CMakeLists.txt
Neal Gompa (ニール・ゴンパ) <ngompa13@gmail.com>
parents:
diff changeset
   164
	Globals.cpp \
d0ed8b1f4f7a Resolved merges of FindOggVorbis.cmake and CMakeLists.txt
Neal Gompa (ニール・ゴンパ) <ngompa13@gmail.com>
parents:
diff changeset
   165
	Lights.cpp \
d0ed8b1f4f7a Resolved merges of FindOggVorbis.cmake and CMakeLists.txt
Neal Gompa (ニール・ゴンパ) <ngompa13@gmail.com>
parents:
diff changeset
   166
	Models.cpp \
d0ed8b1f4f7a Resolved merges of FindOggVorbis.cmake and CMakeLists.txt
Neal Gompa (ニール・ゴンパ) <ngompa13@gmail.com>
parents:
diff changeset
   167
	Objects.cpp \
d0ed8b1f4f7a Resolved merges of FindOggVorbis.cmake and CMakeLists.txt
Neal Gompa (ニール・ゴンパ) <ngompa13@gmail.com>
parents:
diff changeset
   168
	pack.c \
d0ed8b1f4f7a Resolved merges of FindOggVorbis.cmake and CMakeLists.txt
Neal Gompa (ニール・ゴンパ) <ngompa13@gmail.com>
parents:
diff changeset
   169
	pack_private.c \
d0ed8b1f4f7a Resolved merges of FindOggVorbis.cmake and CMakeLists.txt
Neal Gompa (ニール・ゴンパ) <ngompa13@gmail.com>
parents:
diff changeset
   170
	Person.cpp \
d0ed8b1f4f7a Resolved merges of FindOggVorbis.cmake and CMakeLists.txt
Neal Gompa (ニール・ゴンパ) <ngompa13@gmail.com>
parents:
diff changeset
   171
	private.c \
d0ed8b1f4f7a Resolved merges of FindOggVorbis.cmake and CMakeLists.txt
Neal Gompa (ニール・ゴンパ) <ngompa13@gmail.com>
parents:
diff changeset
   172
	Quaternions.cpp \
d0ed8b1f4f7a Resolved merges of FindOggVorbis.cmake and CMakeLists.txt
Neal Gompa (ニール・ゴンパ) <ngompa13@gmail.com>
parents:
diff changeset
   173
	Random.c \
d0ed8b1f4f7a Resolved merges of FindOggVorbis.cmake and CMakeLists.txt
Neal Gompa (ニール・ゴンパ) <ngompa13@gmail.com>
parents:
diff changeset
   174
	Skeleton.cpp \
d0ed8b1f4f7a Resolved merges of FindOggVorbis.cmake and CMakeLists.txt
Neal Gompa (ニール・ゴンパ) <ngompa13@gmail.com>
parents:
diff changeset
   175
	Skybox.cpp \
d0ed8b1f4f7a Resolved merges of FindOggVorbis.cmake and CMakeLists.txt
Neal Gompa (ニール・ゴンパ) <ngompa13@gmail.com>
parents:
diff changeset
   176
	Sprites.cpp \
d0ed8b1f4f7a Resolved merges of FindOggVorbis.cmake and CMakeLists.txt
Neal Gompa (ニール・ゴンパ) <ngompa13@gmail.com>
parents:
diff changeset
   177
	Terrain.cpp \
d0ed8b1f4f7a Resolved merges of FindOggVorbis.cmake and CMakeLists.txt
Neal Gompa (ニール・ゴンパ) <ngompa13@gmail.com>
parents:
diff changeset
   178
	Text.cpp \
d0ed8b1f4f7a Resolved merges of FindOggVorbis.cmake and CMakeLists.txt
Neal Gompa (ニール・ゴンパ) <ngompa13@gmail.com>
parents:
diff changeset
   179
	TGALoader.cpp \
d0ed8b1f4f7a Resolved merges of FindOggVorbis.cmake and CMakeLists.txt
Neal Gompa (ニール・ゴンパ) <ngompa13@gmail.com>
parents:
diff changeset
   180
	unpack.c \
d0ed8b1f4f7a Resolved merges of FindOggVorbis.cmake and CMakeLists.txt
Neal Gompa (ニール・ゴンパ) <ngompa13@gmail.com>
parents:
diff changeset
   181
	unpack_private.c \
d0ed8b1f4f7a Resolved merges of FindOggVorbis.cmake and CMakeLists.txt
Neal Gompa (ニール・ゴンパ) <ngompa13@gmail.com>
parents:
diff changeset
   182
	Weapons.cpp \
d0ed8b1f4f7a Resolved merges of FindOggVorbis.cmake and CMakeLists.txt
Neal Gompa (ニール・ゴンパ) <ngompa13@gmail.com>
parents:
diff changeset
   183
	MacCompatibility.cpp \
d0ed8b1f4f7a Resolved merges of FindOggVorbis.cmake and CMakeLists.txt
Neal Gompa (ニール・ゴンパ) <ngompa13@gmail.com>
parents:
diff changeset
   184
	logger/logger.cpp \
d0ed8b1f4f7a Resolved merges of FindOggVorbis.cmake and CMakeLists.txt
Neal Gompa (ニール・ゴンパ) <ngompa13@gmail.com>
parents:
diff changeset
   185
	WinInput.cpp \
d0ed8b1f4f7a Resolved merges of FindOggVorbis.cmake and CMakeLists.txt
Neal Gompa (ニール・ゴンパ) <ngompa13@gmail.com>
parents:
diff changeset
   186
	OpenGL_Windows.cpp \
d0ed8b1f4f7a Resolved merges of FindOggVorbis.cmake and CMakeLists.txt
Neal Gompa (ニール・ゴンパ) <ngompa13@gmail.com>
parents:
diff changeset
   187
	openal_wrapper.cpp \
d0ed8b1f4f7a Resolved merges of FindOggVorbis.cmake and CMakeLists.txt
Neal Gompa (ニール・ゴンパ) <ngompa13@gmail.com>
parents:
diff changeset
   188
d0ed8b1f4f7a Resolved merges of FindOggVorbis.cmake and CMakeLists.txt
Neal Gompa (ニール・ゴンパ) <ngompa13@gmail.com>
parents:
diff changeset
   189
SRCS := $(foreach f,$(SRCS),$(SRCDIR)/$(f))
d0ed8b1f4f7a Resolved merges of FindOggVorbis.cmake and CMakeLists.txt
Neal Gompa (ニール・ゴンパ) <ngompa13@gmail.com>
parents:
diff changeset
   190
d0ed8b1f4f7a Resolved merges of FindOggVorbis.cmake and CMakeLists.txt
Neal Gompa (ニール・ゴンパ) <ngompa13@gmail.com>
parents:
diff changeset
   191
d0ed8b1f4f7a Resolved merges of FindOggVorbis.cmake and CMakeLists.txt
Neal Gompa (ニール・ゴンパ) <ngompa13@gmail.com>
parents:
diff changeset
   192
UNUSED_SRCS := \
d0ed8b1f4f7a Resolved merges of FindOggVorbis.cmake and CMakeLists.txt
Neal Gompa (ニール・ゴンパ) <ngompa13@gmail.com>
parents:
diff changeset
   193
	DRIVER.CC \
d0ed8b1f4f7a Resolved merges of FindOggVorbis.cmake and CMakeLists.txt
Neal Gompa (ニール・ゴンパ) <ngompa13@gmail.com>
parents:
diff changeset
   194
	MD5.CC \
d0ed8b1f4f7a Resolved merges of FindOggVorbis.cmake and CMakeLists.txt
Neal Gompa (ニール・ゴンパ) <ngompa13@gmail.com>
parents:
diff changeset
   195
d0ed8b1f4f7a Resolved merges of FindOggVorbis.cmake and CMakeLists.txt
Neal Gompa (ニール・ゴンパ) <ngompa13@gmail.com>
parents:
diff changeset
   196
d0ed8b1f4f7a Resolved merges of FindOggVorbis.cmake and CMakeLists.txt
Neal Gompa (ニール・ゴンパ) <ngompa13@gmail.com>
parents:
diff changeset
   197
PNGSRCS := \
d0ed8b1f4f7a Resolved merges of FindOggVorbis.cmake and CMakeLists.txt
Neal Gompa (ニール・ゴンパ) <ngompa13@gmail.com>
parents:
diff changeset
   198
    png.c \
d0ed8b1f4f7a Resolved merges of FindOggVorbis.cmake and CMakeLists.txt
Neal Gompa (ニール・ゴンパ) <ngompa13@gmail.com>
parents:
diff changeset
   199
    pngerror.c \
d0ed8b1f4f7a Resolved merges of FindOggVorbis.cmake and CMakeLists.txt
Neal Gompa (ニール・ゴンパ) <ngompa13@gmail.com>
parents:
diff changeset
   200
    pnggccrd.c \
d0ed8b1f4f7a Resolved merges of FindOggVorbis.cmake and CMakeLists.txt
Neal Gompa (ニール・ゴンパ) <ngompa13@gmail.com>
parents:
diff changeset
   201
    pngget.c \
d0ed8b1f4f7a Resolved merges of FindOggVorbis.cmake and CMakeLists.txt
Neal Gompa (ニール・ゴンパ) <ngompa13@gmail.com>
parents:
diff changeset
   202
    pngmem.c \
d0ed8b1f4f7a Resolved merges of FindOggVorbis.cmake and CMakeLists.txt
Neal Gompa (ニール・ゴンパ) <ngompa13@gmail.com>
parents:
diff changeset
   203
    pngpread.c \
d0ed8b1f4f7a Resolved merges of FindOggVorbis.cmake and CMakeLists.txt
Neal Gompa (ニール・ゴンパ) <ngompa13@gmail.com>
parents:
diff changeset
   204
    pngread.c \
d0ed8b1f4f7a Resolved merges of FindOggVorbis.cmake and CMakeLists.txt
Neal Gompa (ニール・ゴンパ) <ngompa13@gmail.com>
parents:
diff changeset
   205
    pngrio.c \
d0ed8b1f4f7a Resolved merges of FindOggVorbis.cmake and CMakeLists.txt
Neal Gompa (ニール・ゴンパ) <ngompa13@gmail.com>
parents:
diff changeset
   206
    pngrtran.c \
d0ed8b1f4f7a Resolved merges of FindOggVorbis.cmake and CMakeLists.txt
Neal Gompa (ニール・ゴンパ) <ngompa13@gmail.com>
parents:
diff changeset
   207
    pngrutil.c \
d0ed8b1f4f7a Resolved merges of FindOggVorbis.cmake and CMakeLists.txt
Neal Gompa (ニール・ゴンパ) <ngompa13@gmail.com>
parents:
diff changeset
   208
    pngset.c \
d0ed8b1f4f7a Resolved merges of FindOggVorbis.cmake and CMakeLists.txt
Neal Gompa (ニール・ゴンパ) <ngompa13@gmail.com>
parents:
diff changeset
   209
    pngtrans.c \
d0ed8b1f4f7a Resolved merges of FindOggVorbis.cmake and CMakeLists.txt
Neal Gompa (ニール・ゴンパ) <ngompa13@gmail.com>
parents:
diff changeset
   210
    pngvcrd.c \
d0ed8b1f4f7a Resolved merges of FindOggVorbis.cmake and CMakeLists.txt
Neal Gompa (ニール・ゴンパ) <ngompa13@gmail.com>
parents:
diff changeset
   211
    pngwio.c \
d0ed8b1f4f7a Resolved merges of FindOggVorbis.cmake and CMakeLists.txt
Neal Gompa (ニール・ゴンパ) <ngompa13@gmail.com>
parents:
diff changeset
   212
    pngwrite.c \
d0ed8b1f4f7a Resolved merges of FindOggVorbis.cmake and CMakeLists.txt
Neal Gompa (ニール・ゴンパ) <ngompa13@gmail.com>
parents:
diff changeset
   213
    pngwtran.c \
d0ed8b1f4f7a Resolved merges of FindOggVorbis.cmake and CMakeLists.txt
Neal Gompa (ニール・ゴンパ) <ngompa13@gmail.com>
parents:
diff changeset
   214
    pngwutil.c \
d0ed8b1f4f7a Resolved merges of FindOggVorbis.cmake and CMakeLists.txt
Neal Gompa (ニール・ゴンパ) <ngompa13@gmail.com>
parents:
diff changeset
   215
d0ed8b1f4f7a Resolved merges of FindOggVorbis.cmake and CMakeLists.txt
Neal Gompa (ニール・ゴンパ) <ngompa13@gmail.com>
parents:
diff changeset
   216
PNGSRCS := $(foreach f,$(PNGSRCS),$(LIBPNGDIR)/$(f))
d0ed8b1f4f7a Resolved merges of FindOggVorbis.cmake and CMakeLists.txt
Neal Gompa (ニール・ゴンパ) <ngompa13@gmail.com>
parents:
diff changeset
   217
d0ed8b1f4f7a Resolved merges of FindOggVorbis.cmake and CMakeLists.txt
Neal Gompa (ニール・ゴンパ) <ngompa13@gmail.com>
parents:
diff changeset
   218
JPEGSRCS := \
d0ed8b1f4f7a Resolved merges of FindOggVorbis.cmake and CMakeLists.txt
Neal Gompa (ニール・ゴンパ) <ngompa13@gmail.com>
parents:
diff changeset
   219
	jdapistd.c \
d0ed8b1f4f7a Resolved merges of FindOggVorbis.cmake and CMakeLists.txt
Neal Gompa (ニール・ゴンパ) <ngompa13@gmail.com>
parents:
diff changeset
   220
    jdmaster.c \
d0ed8b1f4f7a Resolved merges of FindOggVorbis.cmake and CMakeLists.txt
Neal Gompa (ニール・ゴンパ) <ngompa13@gmail.com>
parents:
diff changeset
   221
    jdapimin.c \
d0ed8b1f4f7a Resolved merges of FindOggVorbis.cmake and CMakeLists.txt
Neal Gompa (ニール・ゴンパ) <ngompa13@gmail.com>
parents:
diff changeset
   222
    jcapimin.c \
d0ed8b1f4f7a Resolved merges of FindOggVorbis.cmake and CMakeLists.txt
Neal Gompa (ニール・ゴンパ) <ngompa13@gmail.com>
parents:
diff changeset
   223
    jdmerge.c \
d0ed8b1f4f7a Resolved merges of FindOggVorbis.cmake and CMakeLists.txt
Neal Gompa (ニール・ゴンパ) <ngompa13@gmail.com>
parents:
diff changeset
   224
    jdatasrc.c \
d0ed8b1f4f7a Resolved merges of FindOggVorbis.cmake and CMakeLists.txt
Neal Gompa (ニール・ゴンパ) <ngompa13@gmail.com>
parents:
diff changeset
   225
    jdatadst.c \
d0ed8b1f4f7a Resolved merges of FindOggVorbis.cmake and CMakeLists.txt
Neal Gompa (ニール・ゴンパ) <ngompa13@gmail.com>
parents:
diff changeset
   226
    jdcoefct.c \
d0ed8b1f4f7a Resolved merges of FindOggVorbis.cmake and CMakeLists.txt
Neal Gompa (ニール・ゴンパ) <ngompa13@gmail.com>
parents:
diff changeset
   227
    jdcolor.c \
d0ed8b1f4f7a Resolved merges of FindOggVorbis.cmake and CMakeLists.txt
Neal Gompa (ニール・ゴンパ) <ngompa13@gmail.com>
parents:
diff changeset
   228
    jddctmgr.c \
d0ed8b1f4f7a Resolved merges of FindOggVorbis.cmake and CMakeLists.txt
Neal Gompa (ニール・ゴンパ) <ngompa13@gmail.com>
parents:
diff changeset
   229
    jdhuff.c \
d0ed8b1f4f7a Resolved merges of FindOggVorbis.cmake and CMakeLists.txt
Neal Gompa (ニール・ゴンパ) <ngompa13@gmail.com>
parents:
diff changeset
   230
    jdinput.c \
d0ed8b1f4f7a Resolved merges of FindOggVorbis.cmake and CMakeLists.txt
Neal Gompa (ニール・ゴンパ) <ngompa13@gmail.com>
parents:
diff changeset
   231
    jdmainct.c \
d0ed8b1f4f7a Resolved merges of FindOggVorbis.cmake and CMakeLists.txt
Neal Gompa (ニール・ゴンパ) <ngompa13@gmail.com>
parents:
diff changeset
   232
    jdmarker.c \
d0ed8b1f4f7a Resolved merges of FindOggVorbis.cmake and CMakeLists.txt
Neal Gompa (ニール・ゴンパ) <ngompa13@gmail.com>
parents:
diff changeset
   233
    jdphuff.c \
d0ed8b1f4f7a Resolved merges of FindOggVorbis.cmake and CMakeLists.txt
Neal Gompa (ニール・ゴンパ) <ngompa13@gmail.com>
parents:
diff changeset
   234
    jdpostct.c \
d0ed8b1f4f7a Resolved merges of FindOggVorbis.cmake and CMakeLists.txt
Neal Gompa (ニール・ゴンパ) <ngompa13@gmail.com>
parents:
diff changeset
   235
    jdsample.c \
d0ed8b1f4f7a Resolved merges of FindOggVorbis.cmake and CMakeLists.txt
Neal Gompa (ニール・ゴンパ) <ngompa13@gmail.com>
parents:
diff changeset
   236
    jdtrans.c \
d0ed8b1f4f7a Resolved merges of FindOggVorbis.cmake and CMakeLists.txt
Neal Gompa (ニール・ゴンパ) <ngompa13@gmail.com>
parents:
diff changeset
   237
    jerror.c \
d0ed8b1f4f7a Resolved merges of FindOggVorbis.cmake and CMakeLists.txt
Neal Gompa (ニール・ゴンパ) <ngompa13@gmail.com>
parents:
diff changeset
   238
    jidctflt.c \
d0ed8b1f4f7a Resolved merges of FindOggVorbis.cmake and CMakeLists.txt
Neal Gompa (ニール・ゴンパ) <ngompa13@gmail.com>
parents:
diff changeset
   239
    jidctfst.c \
d0ed8b1f4f7a Resolved merges of FindOggVorbis.cmake and CMakeLists.txt
Neal Gompa (ニール・ゴンパ) <ngompa13@gmail.com>
parents:
diff changeset
   240
    jidctint.c \
d0ed8b1f4f7a Resolved merges of FindOggVorbis.cmake and CMakeLists.txt
Neal Gompa (ニール・ゴンパ) <ngompa13@gmail.com>
parents:
diff changeset
   241
    jidctred.c \
d0ed8b1f4f7a Resolved merges of FindOggVorbis.cmake and CMakeLists.txt
Neal Gompa (ニール・ゴンパ) <ngompa13@gmail.com>
parents:
diff changeset
   242
    jmemmgr.c \
d0ed8b1f4f7a Resolved merges of FindOggVorbis.cmake and CMakeLists.txt
Neal Gompa (ニール・ゴンパ) <ngompa13@gmail.com>
parents:
diff changeset
   243
    jutils.c \
d0ed8b1f4f7a Resolved merges of FindOggVorbis.cmake and CMakeLists.txt
Neal Gompa (ニール・ゴンパ) <ngompa13@gmail.com>
parents:
diff changeset
   244
    jmemnobs.c \
d0ed8b1f4f7a Resolved merges of FindOggVorbis.cmake and CMakeLists.txt
Neal Gompa (ニール・ゴンパ) <ngompa13@gmail.com>
parents:
diff changeset
   245
    jquant1.c \
d0ed8b1f4f7a Resolved merges of FindOggVorbis.cmake and CMakeLists.txt
Neal Gompa (ニール・ゴンパ) <ngompa13@gmail.com>
parents:
diff changeset
   246
    jquant2.c \
d0ed8b1f4f7a Resolved merges of FindOggVorbis.cmake and CMakeLists.txt
Neal Gompa (ニール・ゴンパ) <ngompa13@gmail.com>
parents:
diff changeset
   247
    jcomapi.c \
d0ed8b1f4f7a Resolved merges of FindOggVorbis.cmake and CMakeLists.txt
Neal Gompa (ニール・ゴンパ) <ngompa13@gmail.com>
parents:
diff changeset
   248
    jcmarker.c \
d0ed8b1f4f7a Resolved merges of FindOggVorbis.cmake and CMakeLists.txt
Neal Gompa (ニール・ゴンパ) <ngompa13@gmail.com>
parents:
diff changeset
   249
    jcapistd.c \
d0ed8b1f4f7a Resolved merges of FindOggVorbis.cmake and CMakeLists.txt
Neal Gompa (ニール・ゴンパ) <ngompa13@gmail.com>
parents:
diff changeset
   250
    jcparam.c \
d0ed8b1f4f7a Resolved merges of FindOggVorbis.cmake and CMakeLists.txt
Neal Gompa (ニール・ゴンパ) <ngompa13@gmail.com>
parents:
diff changeset
   251
    jcinit.c \
d0ed8b1f4f7a Resolved merges of FindOggVorbis.cmake and CMakeLists.txt
Neal Gompa (ニール・ゴンパ) <ngompa13@gmail.com>
parents:
diff changeset
   252
    jcdctmgr.c \
d0ed8b1f4f7a Resolved merges of FindOggVorbis.cmake and CMakeLists.txt
Neal Gompa (ニール・ゴンパ) <ngompa13@gmail.com>
parents:
diff changeset
   253
    jccoefct.c \
d0ed8b1f4f7a Resolved merges of FindOggVorbis.cmake and CMakeLists.txt
Neal Gompa (ニール・ゴンパ) <ngompa13@gmail.com>
parents:
diff changeset
   254
    jcmainct.c \
d0ed8b1f4f7a Resolved merges of FindOggVorbis.cmake and CMakeLists.txt
Neal Gompa (ニール・ゴンパ) <ngompa13@gmail.com>
parents:
diff changeset
   255
    jfdctflt.c \
d0ed8b1f4f7a Resolved merges of FindOggVorbis.cmake and CMakeLists.txt
Neal Gompa (ニール・ゴンパ) <ngompa13@gmail.com>
parents:
diff changeset
   256
    jfdctint.c \
d0ed8b1f4f7a Resolved merges of FindOggVorbis.cmake and CMakeLists.txt
Neal Gompa (ニール・ゴンパ) <ngompa13@gmail.com>
parents:
diff changeset
   257
    jfdctfst.c \
d0ed8b1f4f7a Resolved merges of FindOggVorbis.cmake and CMakeLists.txt
Neal Gompa (ニール・ゴンパ) <ngompa13@gmail.com>
parents:
diff changeset
   258
    jchuff.c \
d0ed8b1f4f7a Resolved merges of FindOggVorbis.cmake and CMakeLists.txt
Neal Gompa (ニール・ゴンパ) <ngompa13@gmail.com>
parents:
diff changeset
   259
    jcphuff.c \
d0ed8b1f4f7a Resolved merges of FindOggVorbis.cmake and CMakeLists.txt
Neal Gompa (ニール・ゴンパ) <ngompa13@gmail.com>
parents:
diff changeset
   260
    jcsample.c \
d0ed8b1f4f7a Resolved merges of FindOggVorbis.cmake and CMakeLists.txt
Neal Gompa (ニール・ゴンパ) <ngompa13@gmail.com>
parents:
diff changeset
   261
    jcmaster.c \
d0ed8b1f4f7a Resolved merges of FindOggVorbis.cmake and CMakeLists.txt
Neal Gompa (ニール・ゴンパ) <ngompa13@gmail.com>
parents:
diff changeset
   262
    jccolor.c \
d0ed8b1f4f7a Resolved merges of FindOggVorbis.cmake and CMakeLists.txt
Neal Gompa (ニール・ゴンパ) <ngompa13@gmail.com>
parents:
diff changeset
   263
    jcprepct.c \
d0ed8b1f4f7a Resolved merges of FindOggVorbis.cmake and CMakeLists.txt
Neal Gompa (ニール・ゴンパ) <ngompa13@gmail.com>
parents:
diff changeset
   264
d0ed8b1f4f7a Resolved merges of FindOggVorbis.cmake and CMakeLists.txt
Neal Gompa (ニール・ゴンパ) <ngompa13@gmail.com>
parents:
diff changeset
   265
JPEGSRCS := $(foreach f,$(JPEGSRCS),$(JPEGLIBDIR)/$(f))
d0ed8b1f4f7a Resolved merges of FindOggVorbis.cmake and CMakeLists.txt
Neal Gompa (ニール・ゴンパ) <ngompa13@gmail.com>
parents:
diff changeset
   266
d0ed8b1f4f7a Resolved merges of FindOggVorbis.cmake and CMakeLists.txt
Neal Gompa (ニール・ゴンパ) <ngompa13@gmail.com>
parents:
diff changeset
   267
d0ed8b1f4f7a Resolved merges of FindOggVorbis.cmake and CMakeLists.txt
Neal Gompa (ニール・ゴンパ) <ngompa13@gmail.com>
parents:
diff changeset
   268
ZLIBSRCS = \
d0ed8b1f4f7a Resolved merges of FindOggVorbis.cmake and CMakeLists.txt
Neal Gompa (ニール・ゴンパ) <ngompa13@gmail.com>
parents:
diff changeset
   269
	adler32.c \
d0ed8b1f4f7a Resolved merges of FindOggVorbis.cmake and CMakeLists.txt
Neal Gompa (ニール・ゴンパ) <ngompa13@gmail.com>
parents:
diff changeset
   270
	compress.c \
d0ed8b1f4f7a Resolved merges of FindOggVorbis.cmake and CMakeLists.txt
Neal Gompa (ニール・ゴンパ) <ngompa13@gmail.com>
parents:
diff changeset
   271
	crc32.c \
d0ed8b1f4f7a Resolved merges of FindOggVorbis.cmake and CMakeLists.txt
Neal Gompa (ニール・ゴンパ) <ngompa13@gmail.com>
parents:
diff changeset
   272
	deflate.c \
d0ed8b1f4f7a Resolved merges of FindOggVorbis.cmake and CMakeLists.txt
Neal Gompa (ニール・ゴンパ) <ngompa13@gmail.com>
parents:
diff changeset
   273
	gzio.c \
d0ed8b1f4f7a Resolved merges of FindOggVorbis.cmake and CMakeLists.txt
Neal Gompa (ニール・ゴンパ) <ngompa13@gmail.com>
parents:
diff changeset
   274
	infback.c \
d0ed8b1f4f7a Resolved merges of FindOggVorbis.cmake and CMakeLists.txt
Neal Gompa (ニール・ゴンパ) <ngompa13@gmail.com>
parents:
diff changeset
   275
	inffast.c \
d0ed8b1f4f7a Resolved merges of FindOggVorbis.cmake and CMakeLists.txt
Neal Gompa (ニール・ゴンパ) <ngompa13@gmail.com>
parents:
diff changeset
   276
	inflate.c \
d0ed8b1f4f7a Resolved merges of FindOggVorbis.cmake and CMakeLists.txt
Neal Gompa (ニール・ゴンパ) <ngompa13@gmail.com>
parents:
diff changeset
   277
	inftrees.c \
d0ed8b1f4f7a Resolved merges of FindOggVorbis.cmake and CMakeLists.txt
Neal Gompa (ニール・ゴンパ) <ngompa13@gmail.com>
parents:
diff changeset
   278
	trees.c \
d0ed8b1f4f7a Resolved merges of FindOggVorbis.cmake and CMakeLists.txt
Neal Gompa (ニール・ゴンパ) <ngompa13@gmail.com>
parents:
diff changeset
   279
	uncompr.c \
d0ed8b1f4f7a Resolved merges of FindOggVorbis.cmake and CMakeLists.txt
Neal Gompa (ニール・ゴンパ) <ngompa13@gmail.com>
parents:
diff changeset
   280
	zutil.c \
d0ed8b1f4f7a Resolved merges of FindOggVorbis.cmake and CMakeLists.txt
Neal Gompa (ニール・ゴンパ) <ngompa13@gmail.com>
parents:
diff changeset
   281
d0ed8b1f4f7a Resolved merges of FindOggVorbis.cmake and CMakeLists.txt
Neal Gompa (ニール・ゴンパ) <ngompa13@gmail.com>
parents:
diff changeset
   282
ZLIBSRCS := $(foreach f,$(ZLIBSRCS),$(ZLIBDIR)/$(f))
d0ed8b1f4f7a Resolved merges of FindOggVorbis.cmake and CMakeLists.txt
Neal Gompa (ニール・ゴンパ) <ngompa13@gmail.com>
parents:
diff changeset
   283
d0ed8b1f4f7a Resolved merges of FindOggVorbis.cmake and CMakeLists.txt
Neal Gompa (ニール・ゴンパ) <ngompa13@gmail.com>
parents:
diff changeset
   284
d0ed8b1f4f7a Resolved merges of FindOggVorbis.cmake and CMakeLists.txt
Neal Gompa (ニール・ゴンパ) <ngompa13@gmail.com>
parents:
diff changeset
   285
GLUSRCS := \
d0ed8b1f4f7a Resolved merges of FindOggVorbis.cmake and CMakeLists.txt
Neal Gompa (ニール・ゴンパ) <ngompa13@gmail.com>
parents:
diff changeset
   286
	dict.c \
d0ed8b1f4f7a Resolved merges of FindOggVorbis.cmake and CMakeLists.txt
Neal Gompa (ニール・ゴンパ) <ngompa13@gmail.com>
parents:
diff changeset
   287
	geom.c \
d0ed8b1f4f7a Resolved merges of FindOggVorbis.cmake and CMakeLists.txt
Neal Gompa (ニール・ゴンパ) <ngompa13@gmail.com>
parents:
diff changeset
   288
	memalloc.c \
d0ed8b1f4f7a Resolved merges of FindOggVorbis.cmake and CMakeLists.txt
Neal Gompa (ニール・ゴンパ) <ngompa13@gmail.com>
parents:
diff changeset
   289
	mesh.c \
d0ed8b1f4f7a Resolved merges of FindOggVorbis.cmake and CMakeLists.txt
Neal Gompa (ニール・ゴンパ) <ngompa13@gmail.com>
parents:
diff changeset
   290
	mipmap.c \
d0ed8b1f4f7a Resolved merges of FindOggVorbis.cmake and CMakeLists.txt
Neal Gompa (ニール・ゴンパ) <ngompa13@gmail.com>
parents:
diff changeset
   291
	normal.c \
d0ed8b1f4f7a Resolved merges of FindOggVorbis.cmake and CMakeLists.txt
Neal Gompa (ニール・ゴンパ) <ngompa13@gmail.com>
parents:
diff changeset
   292
	priorityq.c \
d0ed8b1f4f7a Resolved merges of FindOggVorbis.cmake and CMakeLists.txt
Neal Gompa (ニール・ゴンパ) <ngompa13@gmail.com>
parents:
diff changeset
   293
	render.c \
d0ed8b1f4f7a Resolved merges of FindOggVorbis.cmake and CMakeLists.txt
Neal Gompa (ニール・ゴンパ) <ngompa13@gmail.com>
parents:
diff changeset
   294
	sweep.c \
d0ed8b1f4f7a Resolved merges of FindOggVorbis.cmake and CMakeLists.txt
Neal Gompa (ニール・ゴンパ) <ngompa13@gmail.com>
parents:
diff changeset
   295
	tess.c \
d0ed8b1f4f7a Resolved merges of FindOggVorbis.cmake and CMakeLists.txt
Neal Gompa (ニール・ゴンパ) <ngompa13@gmail.com>
parents:
diff changeset
   296
	tessmono.c \
d0ed8b1f4f7a Resolved merges of FindOggVorbis.cmake and CMakeLists.txt
Neal Gompa (ニール・ゴンパ) <ngompa13@gmail.com>
parents:
diff changeset
   297
	util.c \
d0ed8b1f4f7a Resolved merges of FindOggVorbis.cmake and CMakeLists.txt
Neal Gompa (ニール・ゴンパ) <ngompa13@gmail.com>
parents:
diff changeset
   298
d0ed8b1f4f7a Resolved merges of FindOggVorbis.cmake and CMakeLists.txt
Neal Gompa (ニール・ゴンパ) <ngompa13@gmail.com>
parents:
diff changeset
   299
GLUSRCS := $(foreach f,$(GLUSRCS),$(GLUDIR)/$(f))
d0ed8b1f4f7a Resolved merges of FindOggVorbis.cmake and CMakeLists.txt
Neal Gompa (ニール・ゴンパ) <ngompa13@gmail.com>
parents:
diff changeset
   300
d0ed8b1f4f7a Resolved merges of FindOggVorbis.cmake and CMakeLists.txt
Neal Gompa (ニール・ゴンパ) <ngompa13@gmail.com>
parents:
diff changeset
   301
d0ed8b1f4f7a Resolved merges of FindOggVorbis.cmake and CMakeLists.txt
Neal Gompa (ニール・ゴンパ) <ngompa13@gmail.com>
parents:
diff changeset
   302
OGGSRCS := \
d0ed8b1f4f7a Resolved merges of FindOggVorbis.cmake and CMakeLists.txt
Neal Gompa (ニール・ゴンパ) <ngompa13@gmail.com>
parents:
diff changeset
   303
	bitwise.o \
d0ed8b1f4f7a Resolved merges of FindOggVorbis.cmake and CMakeLists.txt
Neal Gompa (ニール・ゴンパ) <ngompa13@gmail.com>
parents:
diff changeset
   304
	framing.o
d0ed8b1f4f7a Resolved merges of FindOggVorbis.cmake and CMakeLists.txt
Neal Gompa (ニール・ゴンパ) <ngompa13@gmail.com>
parents:
diff changeset
   305
d0ed8b1f4f7a Resolved merges of FindOggVorbis.cmake and CMakeLists.txt
Neal Gompa (ニール・ゴンパ) <ngompa13@gmail.com>
parents:
diff changeset
   306
OGGSRCS := $(foreach f,$(OGGSRCS),$(LIBOGGDIR)/src/$(f))
d0ed8b1f4f7a Resolved merges of FindOggVorbis.cmake and CMakeLists.txt
Neal Gompa (ニール・ゴンパ) <ngompa13@gmail.com>
parents:
diff changeset
   307
d0ed8b1f4f7a Resolved merges of FindOggVorbis.cmake and CMakeLists.txt
Neal Gompa (ニール・ゴンパ) <ngompa13@gmail.com>
parents:
diff changeset
   308
VORBISSRCS := \
d0ed8b1f4f7a Resolved merges of FindOggVorbis.cmake and CMakeLists.txt
Neal Gompa (ニール・ゴンパ) <ngompa13@gmail.com>
parents:
diff changeset
   309
	analysis.o \
d0ed8b1f4f7a Resolved merges of FindOggVorbis.cmake and CMakeLists.txt
Neal Gompa (ニール・ゴンパ) <ngompa13@gmail.com>
parents:
diff changeset
   310
    bitrate.o \
d0ed8b1f4f7a Resolved merges of FindOggVorbis.cmake and CMakeLists.txt
Neal Gompa (ニール・ゴンパ) <ngompa13@gmail.com>
parents:
diff changeset
   311
    block.o \
d0ed8b1f4f7a Resolved merges of FindOggVorbis.cmake and CMakeLists.txt
Neal Gompa (ニール・ゴンパ) <ngompa13@gmail.com>
parents:
diff changeset
   312
    codebook.o \
d0ed8b1f4f7a Resolved merges of FindOggVorbis.cmake and CMakeLists.txt
Neal Gompa (ニール・ゴンパ) <ngompa13@gmail.com>
parents:
diff changeset
   313
    envelope.o \
d0ed8b1f4f7a Resolved merges of FindOggVorbis.cmake and CMakeLists.txt
Neal Gompa (ニール・ゴンパ) <ngompa13@gmail.com>
parents:
diff changeset
   314
    floor0.o \
d0ed8b1f4f7a Resolved merges of FindOggVorbis.cmake and CMakeLists.txt
Neal Gompa (ニール・ゴンパ) <ngompa13@gmail.com>
parents:
diff changeset
   315
    floor1.o \
d0ed8b1f4f7a Resolved merges of FindOggVorbis.cmake and CMakeLists.txt
Neal Gompa (ニール・ゴンパ) <ngompa13@gmail.com>
parents:
diff changeset
   316
    info.o \
d0ed8b1f4f7a Resolved merges of FindOggVorbis.cmake and CMakeLists.txt
Neal Gompa (ニール・ゴンパ) <ngompa13@gmail.com>
parents:
diff changeset
   317
    lpc.o \
d0ed8b1f4f7a Resolved merges of FindOggVorbis.cmake and CMakeLists.txt
Neal Gompa (ニール・ゴンパ) <ngompa13@gmail.com>
parents:
diff changeset
   318
    lsp.o \
d0ed8b1f4f7a Resolved merges of FindOggVorbis.cmake and CMakeLists.txt
Neal Gompa (ニール・ゴンパ) <ngompa13@gmail.com>
parents:
diff changeset
   319
    mapping0.o \
d0ed8b1f4f7a Resolved merges of FindOggVorbis.cmake and CMakeLists.txt
Neal Gompa (ニール・ゴンパ) <ngompa13@gmail.com>
parents:
diff changeset
   320
    mdct.o \
d0ed8b1f4f7a Resolved merges of FindOggVorbis.cmake and CMakeLists.txt
Neal Gompa (ニール・ゴンパ) <ngompa13@gmail.com>
parents:
diff changeset
   321
    psy.o \
d0ed8b1f4f7a Resolved merges of FindOggVorbis.cmake and CMakeLists.txt
Neal Gompa (ニール・ゴンパ) <ngompa13@gmail.com>
parents:
diff changeset
   322
    registry.o \
d0ed8b1f4f7a Resolved merges of FindOggVorbis.cmake and CMakeLists.txt
Neal Gompa (ニール・ゴンパ) <ngompa13@gmail.com>
parents:
diff changeset
   323
    res0.o \
d0ed8b1f4f7a Resolved merges of FindOggVorbis.cmake and CMakeLists.txt
Neal Gompa (ニール・ゴンパ) <ngompa13@gmail.com>
parents:
diff changeset
   324
    sharedbook.o \
d0ed8b1f4f7a Resolved merges of FindOggVorbis.cmake and CMakeLists.txt
Neal Gompa (ニール・ゴンパ) <ngompa13@gmail.com>
parents:
diff changeset
   325
    smallft.o \
d0ed8b1f4f7a Resolved merges of FindOggVorbis.cmake and CMakeLists.txt
Neal Gompa (ニール・ゴンパ) <ngompa13@gmail.com>
parents:
diff changeset
   326
    synthesis.o \
d0ed8b1f4f7a Resolved merges of FindOggVorbis.cmake and CMakeLists.txt
Neal Gompa (ニール・ゴンパ) <ngompa13@gmail.com>
parents:
diff changeset
   327
    vorbisfile.o \
d0ed8b1f4f7a Resolved merges of FindOggVorbis.cmake and CMakeLists.txt
Neal Gompa (ニール・ゴンパ) <ngompa13@gmail.com>
parents:
diff changeset
   328
    window.o
d0ed8b1f4f7a Resolved merges of FindOggVorbis.cmake and CMakeLists.txt
Neal Gompa (ニール・ゴンパ) <ngompa13@gmail.com>
parents:
diff changeset
   329
d0ed8b1f4f7a Resolved merges of FindOggVorbis.cmake and CMakeLists.txt
Neal Gompa (ニール・ゴンパ) <ngompa13@gmail.com>
parents:
diff changeset
   330
VORBISSRCS := $(foreach f,$(VORBISSRCS),$(LIBVORBISDIR)/lib/$(f))
d0ed8b1f4f7a Resolved merges of FindOggVorbis.cmake and CMakeLists.txt
Neal Gompa (ニール・ゴンパ) <ngompa13@gmail.com>
parents:
diff changeset
   331
d0ed8b1f4f7a Resolved merges of FindOggVorbis.cmake and CMakeLists.txt
Neal Gompa (ニール・ゴンパ) <ngompa13@gmail.com>
parents:
diff changeset
   332
ifeq ($(strip $(macosx)),false)
d0ed8b1f4f7a Resolved merges of FindOggVorbis.cmake and CMakeLists.txt
Neal Gompa (ニール・ゴンパ) <ngompa13@gmail.com>
parents:
diff changeset
   333
	SRCS += $(GLUSRCS)
d0ed8b1f4f7a Resolved merges of FindOggVorbis.cmake and CMakeLists.txt
Neal Gompa (ニール・ゴンパ) <ngompa13@gmail.com>
parents:
diff changeset
   334
endif
d0ed8b1f4f7a Resolved merges of FindOggVorbis.cmake and CMakeLists.txt
Neal Gompa (ニール・ゴンパ) <ngompa13@gmail.com>
parents:
diff changeset
   335
d0ed8b1f4f7a Resolved merges of FindOggVorbis.cmake and CMakeLists.txt
Neal Gompa (ニール・ゴンパ) <ngompa13@gmail.com>
parents:
diff changeset
   336
ifeq ($(strip $(use_devil)),false)
d0ed8b1f4f7a Resolved merges of FindOggVorbis.cmake and CMakeLists.txt
Neal Gompa (ニール・ゴンパ) <ngompa13@gmail.com>
parents:
diff changeset
   337
    SRCS += $(PNGSRCS) $(JPEGSRCS) $(ZLIBSRCS)
d0ed8b1f4f7a Resolved merges of FindOggVorbis.cmake and CMakeLists.txt
Neal Gompa (ニール・ゴンパ) <ngompa13@gmail.com>
parents:
diff changeset
   338
endif
d0ed8b1f4f7a Resolved merges of FindOggVorbis.cmake and CMakeLists.txt
Neal Gompa (ニール・ゴンパ) <ngompa13@gmail.com>
parents:
diff changeset
   339
d0ed8b1f4f7a Resolved merges of FindOggVorbis.cmake and CMakeLists.txt
Neal Gompa (ニール・ゴンパ) <ngompa13@gmail.com>
parents:
diff changeset
   340
ifeq ($(strip $(use_fmod)),false)
d0ed8b1f4f7a Resolved merges of FindOggVorbis.cmake and CMakeLists.txt
Neal Gompa (ニール・ゴンパ) <ngompa13@gmail.com>
parents:
diff changeset
   341
    SRCS += $(OGGSRCS) $(VORBISSRCS)
d0ed8b1f4f7a Resolved merges of FindOggVorbis.cmake and CMakeLists.txt
Neal Gompa (ニール・ゴンパ) <ngompa13@gmail.com>
parents:
diff changeset
   342
endif
d0ed8b1f4f7a Resolved merges of FindOggVorbis.cmake and CMakeLists.txt
Neal Gompa (ニール・ゴンパ) <ngompa13@gmail.com>
parents:
diff changeset
   343
d0ed8b1f4f7a Resolved merges of FindOggVorbis.cmake and CMakeLists.txt
Neal Gompa (ニール・ゴンパ) <ngompa13@gmail.com>
parents:
diff changeset
   344
OBJS := $(SRCS:.CC=.o)
d0ed8b1f4f7a Resolved merges of FindOggVorbis.cmake and CMakeLists.txt
Neal Gompa (ニール・ゴンパ) <ngompa13@gmail.com>
parents:
diff changeset
   345
OBJS := $(OBJS:.cc=.o)
d0ed8b1f4f7a Resolved merges of FindOggVorbis.cmake and CMakeLists.txt
Neal Gompa (ニール・ゴンパ) <ngompa13@gmail.com>
parents:
diff changeset
   346
OBJS := $(OBJS:.cpp=.o)
d0ed8b1f4f7a Resolved merges of FindOggVorbis.cmake and CMakeLists.txt
Neal Gompa (ニール・ゴンパ) <ngompa13@gmail.com>
parents:
diff changeset
   347
OBJS := $(OBJS:.c=.o)
d0ed8b1f4f7a Resolved merges of FindOggVorbis.cmake and CMakeLists.txt
Neal Gompa (ニール・ゴンパ) <ngompa13@gmail.com>
parents:
diff changeset
   348
OBJS := $(OBJS:.m=.o)
d0ed8b1f4f7a Resolved merges of FindOggVorbis.cmake and CMakeLists.txt
Neal Gompa (ニール・ゴンパ) <ngompa13@gmail.com>
parents:
diff changeset
   349
OBJS := $(foreach f,$(OBJS),$(BINDIR)/$(f))
d0ed8b1f4f7a Resolved merges of FindOggVorbis.cmake and CMakeLists.txt
Neal Gompa (ニール・ゴンパ) <ngompa13@gmail.com>
parents:
diff changeset
   350
d0ed8b1f4f7a Resolved merges of FindOggVorbis.cmake and CMakeLists.txt
Neal Gompa (ニール・ゴンパ) <ngompa13@gmail.com>
parents:
diff changeset
   351
d0ed8b1f4f7a Resolved merges of FindOggVorbis.cmake and CMakeLists.txt
Neal Gompa (ニール・ゴンパ) <ngompa13@gmail.com>
parents:
diff changeset
   352
.PHONY: clean all
d0ed8b1f4f7a Resolved merges of FindOggVorbis.cmake and CMakeLists.txt
Neal Gompa (ニール・ゴンパ) <ngompa13@gmail.com>
parents:
diff changeset
   353
d0ed8b1f4f7a Resolved merges of FindOggVorbis.cmake and CMakeLists.txt
Neal Gompa (ニール・ゴンパ) <ngompa13@gmail.com>
parents:
diff changeset
   354
all : $(EXE)
d0ed8b1f4f7a Resolved merges of FindOggVorbis.cmake and CMakeLists.txt
Neal Gompa (ニール・ゴンパ) <ngompa13@gmail.com>
parents:
diff changeset
   355
d0ed8b1f4f7a Resolved merges of FindOggVorbis.cmake and CMakeLists.txt
Neal Gompa (ニール・ゴンパ) <ngompa13@gmail.com>
parents:
diff changeset
   356
$(BINDIR)/%.o : %.cpp
d0ed8b1f4f7a Resolved merges of FindOggVorbis.cmake and CMakeLists.txt
Neal Gompa (ニール・ゴンパ) <ngompa13@gmail.com>
parents:
diff changeset
   357
	@mkdir -p $(dir $@)
d0ed8b1f4f7a Resolved merges of FindOggVorbis.cmake and CMakeLists.txt
Neal Gompa (ニール・ゴンパ) <ngompa13@gmail.com>
parents:
diff changeset
   358
	$(CXX) -o $@ $(CXXFLAGS) $<
d0ed8b1f4f7a Resolved merges of FindOggVorbis.cmake and CMakeLists.txt
Neal Gompa (ニール・ゴンパ) <ngompa13@gmail.com>
parents:
diff changeset
   359
d0ed8b1f4f7a Resolved merges of FindOggVorbis.cmake and CMakeLists.txt
Neal Gompa (ニール・ゴンパ) <ngompa13@gmail.com>
parents:
diff changeset
   360
$(BINDIR)/%.o : %.CC
d0ed8b1f4f7a Resolved merges of FindOggVorbis.cmake and CMakeLists.txt
Neal Gompa (ニール・ゴンパ) <ngompa13@gmail.com>
parents:
diff changeset
   361
	@mkdir -p $(dir $@)
d0ed8b1f4f7a Resolved merges of FindOggVorbis.cmake and CMakeLists.txt
Neal Gompa (ニール・ゴンパ) <ngompa13@gmail.com>
parents:
diff changeset
   362
	$(CXX) -x c++ -o $@ $(CXXFLAGS) $<
d0ed8b1f4f7a Resolved merges of FindOggVorbis.cmake and CMakeLists.txt
Neal Gompa (ニール・ゴンパ) <ngompa13@gmail.com>
parents:
diff changeset
   363
d0ed8b1f4f7a Resolved merges of FindOggVorbis.cmake and CMakeLists.txt
Neal Gompa (ニール・ゴンパ) <ngompa13@gmail.com>
parents:
diff changeset
   364
$(BINDIR)/%.o : %.cc
d0ed8b1f4f7a Resolved merges of FindOggVorbis.cmake and CMakeLists.txt
Neal Gompa (ニール・ゴンパ) <ngompa13@gmail.com>
parents:
diff changeset
   365
	@mkdir -p $(dir $@)
d0ed8b1f4f7a Resolved merges of FindOggVorbis.cmake and CMakeLists.txt
Neal Gompa (ニール・ゴンパ) <ngompa13@gmail.com>
parents:
diff changeset
   366
	$(CXX) -o $@ $(CXXFLAGS) $<
d0ed8b1f4f7a Resolved merges of FindOggVorbis.cmake and CMakeLists.txt
Neal Gompa (ニール・ゴンパ) <ngompa13@gmail.com>
parents:
diff changeset
   367
d0ed8b1f4f7a Resolved merges of FindOggVorbis.cmake and CMakeLists.txt
Neal Gompa (ニール・ゴンパ) <ngompa13@gmail.com>
parents:
diff changeset
   368
$(BINDIR)/%.o : %.m
d0ed8b1f4f7a Resolved merges of FindOggVorbis.cmake and CMakeLists.txt
Neal Gompa (ニール・ゴンパ) <ngompa13@gmail.com>
parents:
diff changeset
   369
	@mkdir -p $(dir $@)
d0ed8b1f4f7a Resolved merges of FindOggVorbis.cmake and CMakeLists.txt
Neal Gompa (ニール・ゴンパ) <ngompa13@gmail.com>
parents:
diff changeset
   370
	$(CC) -o $@ $(CFLAGS) $<
d0ed8b1f4f7a Resolved merges of FindOggVorbis.cmake and CMakeLists.txt
Neal Gompa (ニール・ゴンパ) <ngompa13@gmail.com>
parents:
diff changeset
   371
d0ed8b1f4f7a Resolved merges of FindOggVorbis.cmake and CMakeLists.txt
Neal Gompa (ニール・ゴンパ) <ngompa13@gmail.com>
parents:
diff changeset
   372
$(BINDIR)/%.o : %.c
d0ed8b1f4f7a Resolved merges of FindOggVorbis.cmake and CMakeLists.txt
Neal Gompa (ニール・ゴンパ) <ngompa13@gmail.com>
parents:
diff changeset
   373
	@mkdir -p $(dir $@)
d0ed8b1f4f7a Resolved merges of FindOggVorbis.cmake and CMakeLists.txt
Neal Gompa (ニール・ゴンパ) <ngompa13@gmail.com>
parents:
diff changeset
   374
	$(CC) -o $@ $(CFLAGS) $<
d0ed8b1f4f7a Resolved merges of FindOggVorbis.cmake and CMakeLists.txt
Neal Gompa (ニール・ゴンパ) <ngompa13@gmail.com>
parents:
diff changeset
   375
d0ed8b1f4f7a Resolved merges of FindOggVorbis.cmake and CMakeLists.txt
Neal Gompa (ニール・ゴンパ) <ngompa13@gmail.com>
parents:
diff changeset
   376
$(EXE) : $(OBJS) $(APPOBJS)
d0ed8b1f4f7a Resolved merges of FindOggVorbis.cmake and CMakeLists.txt
Neal Gompa (ニール・ゴンパ) <ngompa13@gmail.com>
parents:
diff changeset
   377
	@mkdir -p $(dir $@)
d0ed8b1f4f7a Resolved merges of FindOggVorbis.cmake and CMakeLists.txt
Neal Gompa (ニール・ゴンパ) <ngompa13@gmail.com>
parents:
diff changeset
   378
	$(LD) -o $@ $(LDFLAGS) $(OBJS) $(APPOBJS) $(POSTLDFLAGS)
d0ed8b1f4f7a Resolved merges of FindOggVorbis.cmake and CMakeLists.txt
Neal Gompa (ニール・ゴンパ) <ngompa13@gmail.com>
parents:
diff changeset
   379
d0ed8b1f4f7a Resolved merges of FindOggVorbis.cmake and CMakeLists.txt
Neal Gompa (ニール・ゴンパ) <ngompa13@gmail.com>
parents:
diff changeset
   380
clean:
d0ed8b1f4f7a Resolved merges of FindOggVorbis.cmake and CMakeLists.txt
Neal Gompa (ニール・ゴンパ) <ngompa13@gmail.com>
parents:
diff changeset
   381
	rm -f $(BINDIR)/*.o
d0ed8b1f4f7a Resolved merges of FindOggVorbis.cmake and CMakeLists.txt
Neal Gompa (ニール・ゴンパ) <ngompa13@gmail.com>
parents:
diff changeset
   382
	rm -f $(BINDIR)/$(SRCDIR)/*.o
d0ed8b1f4f7a Resolved merges of FindOggVorbis.cmake and CMakeLists.txt
Neal Gompa (ニール・ゴンパ) <ngompa13@gmail.com>
parents:
diff changeset
   383
	rm -f $(BINDIR)/$(SRCDIR)/logger/*.o
d0ed8b1f4f7a Resolved merges of FindOggVorbis.cmake and CMakeLists.txt
Neal Gompa (ニール・ゴンパ) <ngompa13@gmail.com>
parents:
diff changeset
   384
	rm -f $(BINDIR)/$(GLUDIR)/*.o
d0ed8b1f4f7a Resolved merges of FindOggVorbis.cmake and CMakeLists.txt
Neal Gompa (ニール・ゴンパ) <ngompa13@gmail.com>
parents:
diff changeset
   385
	rm -f $(BINDIR)/$(LIBPNGDIR)/*.o
d0ed8b1f4f7a Resolved merges of FindOggVorbis.cmake and CMakeLists.txt
Neal Gompa (ニール・ゴンパ) <ngompa13@gmail.com>
parents:
diff changeset
   386
	rm -f $(BINDIR)/$(JPEGLIBDIR)/*.o
d0ed8b1f4f7a Resolved merges of FindOggVorbis.cmake and CMakeLists.txt
Neal Gompa (ニール・ゴンパ) <ngompa13@gmail.com>
parents:
diff changeset
   387
	rm -f $(BINDIR)/$(ZLIBDIR)/*.o
d0ed8b1f4f7a Resolved merges of FindOggVorbis.cmake and CMakeLists.txt
Neal Gompa (ニール・ゴンパ) <ngompa13@gmail.com>
parents:
diff changeset
   388
	rm -f $(BINDIR)/$(LIBOGGDIR)/src/*.o
d0ed8b1f4f7a Resolved merges of FindOggVorbis.cmake and CMakeLists.txt
Neal Gompa (ニール・ゴンパ) <ngompa13@gmail.com>
parents:
diff changeset
   389
	rm -f $(BINDIR)/$(LIBVORBISDIR)/lib/*.o
d0ed8b1f4f7a Resolved merges of FindOggVorbis.cmake and CMakeLists.txt
Neal Gompa (ニール・ゴンパ) <ngompa13@gmail.com>
parents:
diff changeset
   390
	rm -f $(EXE)
d0ed8b1f4f7a Resolved merges of FindOggVorbis.cmake and CMakeLists.txt
Neal Gompa (ニール・ゴンパ) <ngompa13@gmail.com>
parents:
diff changeset
   391
d0ed8b1f4f7a Resolved merges of FindOggVorbis.cmake and CMakeLists.txt
Neal Gompa (ニール・ゴンパ) <ngompa13@gmail.com>
parents:
diff changeset
   392
# end of makefile ...
d0ed8b1f4f7a Resolved merges of FindOggVorbis.cmake and CMakeLists.txt
Neal Gompa (ニール・ゴンパ) <ngompa13@gmail.com>
parents:
diff changeset
   393