makefile.old
author Neal Gompa (ニール・ゴンパ) <ngompa13@gmail.com>
Sat, 15 May 2010 22:04:10 -0500
changeset 267 dc53d2faef95
parent 176 59f22c19ae86
permissions -rw-r--r--
Moved 'resource.h' inclusion in 'OpenGL_Windows.cpp' to only be included on Win32 platform
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
154
36fb1c2006b5 Make RUNDIR be "." in makefile.old.
Ryan C. Gordon <icculus@icculus.org>
parents: 152
diff changeset
    15
RUNDIR := .
109
d0ed8b1f4f7a Resolved merges of FindOggVorbis.cmake and CMakeLists.txt
Neal Gompa (ニール・ゴンパ) <ngompa13@gmail.com>
parents:
diff changeset
    16
SRCDIR := Source
152
c50f3b7d3fa0 Updated makefile.old with the new dependencies stuff.
Ryan C. Gordon <icculus@icculus.org>
parents: 131
diff changeset
    17
SDLDIR := Dependencies/SDL12
c50f3b7d3fa0 Updated makefile.old with the new dependencies stuff.
Ryan C. Gordon <icculus@icculus.org>
parents: 131
diff changeset
    18
LIBPNGDIR := Dependencies/libpng
c50f3b7d3fa0 Updated makefile.old with the new dependencies stuff.
Ryan C. Gordon <icculus@icculus.org>
parents: 131
diff changeset
    19
JPEGLIBDIR := Dependencies/libjpeg
c50f3b7d3fa0 Updated makefile.old with the new dependencies stuff.
Ryan C. Gordon <icculus@icculus.org>
parents: 131
diff changeset
    20
ZLIBDIR := Dependencies/zlib
c50f3b7d3fa0 Updated makefile.old with the new dependencies stuff.
Ryan C. Gordon <icculus@icculus.org>
parents: 131
diff changeset
    21
OPENALDIR := Dependencies/OpenAL
c50f3b7d3fa0 Updated makefile.old with the new dependencies stuff.
Ryan C. Gordon <icculus@icculus.org>
parents: 131
diff changeset
    22
GLUDIR := Dependencies/GLU
c50f3b7d3fa0 Updated makefile.old with the new dependencies stuff.
Ryan C. Gordon <icculus@icculus.org>
parents: 131
diff changeset
    23
LIBOGGDIR := Dependencies/libogg
c50f3b7d3fa0 Updated makefile.old with the new dependencies stuff.
Ryan C. Gordon <icculus@icculus.org>
parents: 131
diff changeset
    24
LIBVORBISDIR := Dependencies/libvorbis
109
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
152
c50f3b7d3fa0 Updated makefile.old with the new dependencies stuff.
Ryan C. Gordon <icculus@icculus.org>
parents: 131
diff changeset
   102
  	LDFLAGS += ./Dependencies/SDL12/lib/macosx/libSDL-1.2.0.dylib ./Dependencies/SDL12/lib/macosx/libSDLmain-osx.a
176
59f22c19ae86 Fixed Mac builds with makefile.old.
Ryan C. Gordon <icculus@icculus.org>
parents: 154
diff changeset
   103
59f22c19ae86 Fixed Mac builds with makefile.old.
Ryan C. Gordon <icculus@icculus.org>
parents: 154
diff changeset
   104
	INCLUDES += -IDependencies/OpenAL/include/AL
59f22c19ae86 Fixed Mac builds with makefile.old.
Ryan C. Gordon <icculus@icculus.org>
parents: 154
diff changeset
   105
	INCLUDES += -IDependencies/SDL12/include
109
d0ed8b1f4f7a Resolved merges of FindOggVorbis.cmake and CMakeLists.txt
Neal Gompa (ニール・ゴンパ) <ngompa13@gmail.com>
parents:
diff changeset
   106
else
131
d0ca5772f27d Use system g++ and SDL/OpenAL on Linux
Marcus Comstedt <marcus@mc.pp.se>
parents: 122
diff changeset
   107
	CXX := g++
d0ca5772f27d Use system g++ and SDL/OpenAL on Linux
Marcus Comstedt <marcus@mc.pp.se>
parents: 122
diff changeset
   108
	CC := gcc
d0ca5772f27d Use system g++ and SDL/OpenAL on Linux
Marcus Comstedt <marcus@mc.pp.se>
parents: 122
diff changeset
   109
	LD := g++
109
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
  	CFLAGS += -DPLATFORM_LINUX=1
131
d0ca5772f27d Use system g++ and SDL/OpenAL on Linux
Marcus Comstedt <marcus@mc.pp.se>
parents: 122
diff changeset
   112
  	LDFLAGS += `pkg-config --libs sdl`
d0ca5772f27d Use system g++ and SDL/OpenAL on Linux
Marcus Comstedt <marcus@mc.pp.se>
parents: 122
diff changeset
   113
	INCLUDES += `pkg-config --cflags sdl`
d0ca5772f27d Use system g++ and SDL/OpenAL on Linux
Marcus Comstedt <marcus@mc.pp.se>
parents: 122
diff changeset
   114
	# Don't use bundled headers
d0ca5772f27d Use system g++ and SDL/OpenAL on Linux
Marcus Comstedt <marcus@mc.pp.se>
parents: 122
diff changeset
   115
	SDLDIR := /dummy
109
d0ed8b1f4f7a Resolved merges of FindOggVorbis.cmake and CMakeLists.txt
Neal Gompa (ニール・ゴンパ) <ngompa13@gmail.com>
parents:
diff changeset
   116
d0ed8b1f4f7a Resolved merges of FindOggVorbis.cmake and CMakeLists.txt
Neal Gompa (ニール・ゴンパ) <ngompa13@gmail.com>
parents:
diff changeset
   117
  	ifeq ($(strip $(use_devil)),true)
d0ed8b1f4f7a Resolved merges of FindOggVorbis.cmake and CMakeLists.txt
Neal Gompa (ニール・ゴンパ) <ngompa13@gmail.com>
parents:
diff changeset
   118
    	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
   119
  	endif
d0ed8b1f4f7a Resolved merges of FindOggVorbis.cmake and CMakeLists.txt
Neal Gompa (ニール・ゴンパ) <ngompa13@gmail.com>
parents:
diff changeset
   120
d0ed8b1f4f7a Resolved merges of FindOggVorbis.cmake and CMakeLists.txt
Neal Gompa (ニール・ゴンパ) <ngompa13@gmail.com>
parents:
diff changeset
   121
  	ifeq ($(strip $(use_fmod)),true)
d0ed8b1f4f7a Resolved merges of FindOggVorbis.cmake and CMakeLists.txt
Neal Gompa (ニール・ゴンパ) <ngompa13@gmail.com>
parents:
diff changeset
   122
    	POSTLDFLAGS += -lpthread ./libfmod-linux-x86.a
d0ed8b1f4f7a Resolved merges of FindOggVorbis.cmake and CMakeLists.txt
Neal Gompa (ニール・ゴンパ) <ngompa13@gmail.com>
parents:
diff changeset
   123
  	else
131
d0ca5772f27d Use system g++ and SDL/OpenAL on Linux
Marcus Comstedt <marcus@mc.pp.se>
parents: 122
diff changeset
   124
    	LDFLAGS += `pkg-config --libs openal`
d0ca5772f27d Use system g++ and SDL/OpenAL on Linux
Marcus Comstedt <marcus@mc.pp.se>
parents: 122
diff changeset
   125
    	INCLUDES += `pkg-config --cflags openal`
d0ca5772f27d Use system g++ and SDL/OpenAL on Linux
Marcus Comstedt <marcus@mc.pp.se>
parents: 122
diff changeset
   126
	# Don't use bundled headers
d0ca5772f27d Use system g++ and SDL/OpenAL on Linux
Marcus Comstedt <marcus@mc.pp.se>
parents: 122
diff changeset
   127
	OPENALDIR := /dummy
109
d0ed8b1f4f7a Resolved merges of FindOggVorbis.cmake and CMakeLists.txt
Neal Gompa (ニール・ゴンパ) <ngompa13@gmail.com>
parents:
diff changeset
   128
  	endif
d0ed8b1f4f7a Resolved merges of FindOggVorbis.cmake and CMakeLists.txt
Neal Gompa (ニール・ゴンパ) <ngompa13@gmail.com>
parents:
diff changeset
   129
endif
d0ed8b1f4f7a Resolved merges of FindOggVorbis.cmake and CMakeLists.txt
Neal Gompa (ニール・ゴンパ) <ngompa13@gmail.com>
parents:
diff changeset
   130
d0ed8b1f4f7a Resolved merges of FindOggVorbis.cmake and CMakeLists.txt
Neal Gompa (ニール・ゴンパ) <ngompa13@gmail.com>
parents:
diff changeset
   131
DEFINES += \
d0ed8b1f4f7a Resolved merges of FindOggVorbis.cmake and CMakeLists.txt
Neal Gompa (ニール・ゴンパ) <ngompa13@gmail.com>
parents:
diff changeset
   132
	-DPLATFORM_UNIX=1 \
d0ed8b1f4f7a Resolved merges of FindOggVorbis.cmake and CMakeLists.txt
Neal Gompa (ニール・ゴンパ) <ngompa13@gmail.com>
parents:
diff changeset
   133
	-DUSE_SDL=1 \
d0ed8b1f4f7a Resolved merges of FindOggVorbis.cmake and CMakeLists.txt
Neal Gompa (ニール・ゴンパ) <ngompa13@gmail.com>
parents:
diff changeset
   134
	-DTRUE=1 \
d0ed8b1f4f7a Resolved merges of FindOggVorbis.cmake and CMakeLists.txt
Neal Gompa (ニール・ゴンパ) <ngompa13@gmail.com>
parents:
diff changeset
   135
	-DFALSE=0 \
d0ed8b1f4f7a Resolved merges of FindOggVorbis.cmake and CMakeLists.txt
Neal Gompa (ニール・ゴンパ) <ngompa13@gmail.com>
parents:
diff changeset
   136
	-Dstricmp=strcasecmp \
d0ed8b1f4f7a Resolved merges of FindOggVorbis.cmake and CMakeLists.txt
Neal Gompa (ニール・ゴンパ) <ngompa13@gmail.com>
parents:
diff changeset
   137
	-DBinIO_STDINT_HEADER="<stdint.h>" \
d0ed8b1f4f7a Resolved merges of FindOggVorbis.cmake and CMakeLists.txt
Neal Gompa (ニール・ゴンパ) <ngompa13@gmail.com>
parents:
diff changeset
   138
d0ed8b1f4f7a Resolved merges of FindOggVorbis.cmake and CMakeLists.txt
Neal Gompa (ニール・ゴンパ) <ngompa13@gmail.com>
parents:
diff changeset
   139
INCLUDES += \
d0ed8b1f4f7a Resolved merges of FindOggVorbis.cmake and CMakeLists.txt
Neal Gompa (ニール・ゴンパ) <ngompa13@gmail.com>
parents:
diff changeset
   140
			-I$(SRCDIR) \
d0ed8b1f4f7a Resolved merges of FindOggVorbis.cmake and CMakeLists.txt
Neal Gompa (ニール・ゴンパ) <ngompa13@gmail.com>
parents:
diff changeset
   141
			-I$(SDLDIR)/include \
152
c50f3b7d3fa0 Updated makefile.old with the new dependencies stuff.
Ryan C. Gordon <icculus@icculus.org>
parents: 131
diff changeset
   142
			-I./Dependencies/OpenGL/ \
c50f3b7d3fa0 Updated makefile.old with the new dependencies stuff.
Ryan C. Gordon <icculus@icculus.org>
parents: 131
diff changeset
   143
			-I./Dependencies/OpenGL/GL \
109
d0ed8b1f4f7a Resolved merges of FindOggVorbis.cmake and CMakeLists.txt
Neal Gompa (ニール・ゴンパ) <ngompa13@gmail.com>
parents:
diff changeset
   144
d0ed8b1f4f7a Resolved merges of FindOggVorbis.cmake and CMakeLists.txt
Neal Gompa (ニール・ゴンパ) <ngompa13@gmail.com>
parents:
diff changeset
   145
ifeq ($(strip $(use_devil)),true)
d0ed8b1f4f7a Resolved merges of FindOggVorbis.cmake and CMakeLists.txt
Neal Gompa (ニール・ゴンパ) <ngompa13@gmail.com>
parents:
diff changeset
   146
    DEFINES += -DUSE_DEVIL=1
d0ed8b1f4f7a Resolved merges of FindOggVorbis.cmake and CMakeLists.txt
Neal Gompa (ニール・ゴンパ) <ngompa13@gmail.com>
parents:
diff changeset
   147
    INCLUDES += -I$(SRCDIR)/devil/include
d0ed8b1f4f7a Resolved merges of FindOggVorbis.cmake and CMakeLists.txt
Neal Gompa (ニール・ゴンパ) <ngompa13@gmail.com>
parents:
diff changeset
   148
else
d0ed8b1f4f7a Resolved merges of FindOggVorbis.cmake and CMakeLists.txt
Neal Gompa (ニール・ゴンパ) <ngompa13@gmail.com>
parents:
diff changeset
   149
    DEFINES += -DZ_PREFIX=1
d0ed8b1f4f7a Resolved merges of FindOggVorbis.cmake and CMakeLists.txt
Neal Gompa (ニール・ゴンパ) <ngompa13@gmail.com>
parents:
diff changeset
   150
    INCLUDES += -I$(ZLIBDIR) -I$(LIBPNGDIR) -I$(JPEGLIBDIR)
d0ed8b1f4f7a Resolved merges of FindOggVorbis.cmake and CMakeLists.txt
Neal Gompa (ニール・ゴンパ) <ngompa13@gmail.com>
parents:
diff changeset
   151
endif
d0ed8b1f4f7a Resolved merges of FindOggVorbis.cmake and CMakeLists.txt
Neal Gompa (ニール・ゴンパ) <ngompa13@gmail.com>
parents:
diff changeset
   152
d0ed8b1f4f7a Resolved merges of FindOggVorbis.cmake and CMakeLists.txt
Neal Gompa (ニール・ゴンパ) <ngompa13@gmail.com>
parents:
diff changeset
   153
ifeq ($(strip $(use_fmod)),false)
d0ed8b1f4f7a Resolved merges of FindOggVorbis.cmake and CMakeLists.txt
Neal Gompa (ニール・ゴンパ) <ngompa13@gmail.com>
parents:
diff changeset
   154
    DEFINES += -DUSE_OPENAL=1
d0ed8b1f4f7a Resolved merges of FindOggVorbis.cmake and CMakeLists.txt
Neal Gompa (ニール・ゴンパ) <ngompa13@gmail.com>
parents:
diff changeset
   155
    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
   156
endif
d0ed8b1f4f7a Resolved merges of FindOggVorbis.cmake and CMakeLists.txt
Neal Gompa (ニール・ゴンパ) <ngompa13@gmail.com>
parents:
diff changeset
   157
d0ed8b1f4f7a Resolved merges of FindOggVorbis.cmake and CMakeLists.txt
Neal Gompa (ニール・ゴンパ) <ngompa13@gmail.com>
parents:
diff changeset
   158
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
   159
d0ed8b1f4f7a Resolved merges of FindOggVorbis.cmake and CMakeLists.txt
Neal Gompa (ニール・ゴンパ) <ngompa13@gmail.com>
parents:
diff changeset
   160
d0ed8b1f4f7a Resolved merges of FindOggVorbis.cmake and CMakeLists.txt
Neal Gompa (ニール・ゴンパ) <ngompa13@gmail.com>
parents:
diff changeset
   161
ifeq ($(strip $(EXEEXT)),)
d0ed8b1f4f7a Resolved merges of FindOggVorbis.cmake and CMakeLists.txt
Neal Gompa (ニール・ゴンパ) <ngompa13@gmail.com>
parents:
diff changeset
   162
   	EXEEXT := bin
d0ed8b1f4f7a Resolved merges of FindOggVorbis.cmake and CMakeLists.txt
Neal Gompa (ニール・ゴンパ) <ngompa13@gmail.com>
parents:
diff changeset
   163
endif
d0ed8b1f4f7a Resolved merges of FindOggVorbis.cmake and CMakeLists.txt
Neal Gompa (ニール・ゴンパ) <ngompa13@gmail.com>
parents:
diff changeset
   164
EXE := $(RUNDIR)/lugaru-$(EXEEXT)
d0ed8b1f4f7a Resolved merges of FindOggVorbis.cmake and CMakeLists.txt
Neal Gompa (ニール・ゴンパ) <ngompa13@gmail.com>
parents:
diff changeset
   165
d0ed8b1f4f7a Resolved merges of FindOggVorbis.cmake and CMakeLists.txt
Neal Gompa (ニール・ゴンパ) <ngompa13@gmail.com>
parents:
diff changeset
   166
CXXFLAGS := $(CFLAGS)
d0ed8b1f4f7a Resolved merges of FindOggVorbis.cmake and CMakeLists.txt
Neal Gompa (ニール・ゴンパ) <ngompa13@gmail.com>
parents:
diff changeset
   167
d0ed8b1f4f7a Resolved merges of FindOggVorbis.cmake and CMakeLists.txt
Neal Gompa (ニール・ゴンパ) <ngompa13@gmail.com>
parents:
diff changeset
   168
SRCS := \
d0ed8b1f4f7a Resolved merges of FindOggVorbis.cmake and CMakeLists.txt
Neal Gompa (ニール・ゴンパ) <ngompa13@gmail.com>
parents:
diff changeset
   169
	Frustum.cpp \
d0ed8b1f4f7a Resolved merges of FindOggVorbis.cmake and CMakeLists.txt
Neal Gompa (ニール・ゴンパ) <ngompa13@gmail.com>
parents:
diff changeset
   170
	GameDraw.cpp \
d0ed8b1f4f7a Resolved merges of FindOggVorbis.cmake and CMakeLists.txt
Neal Gompa (ニール・ゴンパ) <ngompa13@gmail.com>
parents:
diff changeset
   171
	GameInitDispose.cpp \
d0ed8b1f4f7a Resolved merges of FindOggVorbis.cmake and CMakeLists.txt
Neal Gompa (ニール・ゴンパ) <ngompa13@gmail.com>
parents:
diff changeset
   172
	GameTick.cpp \
d0ed8b1f4f7a Resolved merges of FindOggVorbis.cmake and CMakeLists.txt
Neal Gompa (ニール・ゴンパ) <ngompa13@gmail.com>
parents:
diff changeset
   173
	Globals.cpp \
d0ed8b1f4f7a Resolved merges of FindOggVorbis.cmake and CMakeLists.txt
Neal Gompa (ニール・ゴンパ) <ngompa13@gmail.com>
parents:
diff changeset
   174
	Lights.cpp \
d0ed8b1f4f7a Resolved merges of FindOggVorbis.cmake and CMakeLists.txt
Neal Gompa (ニール・ゴンパ) <ngompa13@gmail.com>
parents:
diff changeset
   175
	Models.cpp \
d0ed8b1f4f7a Resolved merges of FindOggVorbis.cmake and CMakeLists.txt
Neal Gompa (ニール・ゴンパ) <ngompa13@gmail.com>
parents:
diff changeset
   176
	Objects.cpp \
d0ed8b1f4f7a Resolved merges of FindOggVorbis.cmake and CMakeLists.txt
Neal Gompa (ニール・ゴンパ) <ngompa13@gmail.com>
parents:
diff changeset
   177
	pack.c \
d0ed8b1f4f7a Resolved merges of FindOggVorbis.cmake and CMakeLists.txt
Neal Gompa (ニール・ゴンパ) <ngompa13@gmail.com>
parents:
diff changeset
   178
	pack_private.c \
d0ed8b1f4f7a Resolved merges of FindOggVorbis.cmake and CMakeLists.txt
Neal Gompa (ニール・ゴンパ) <ngompa13@gmail.com>
parents:
diff changeset
   179
	Person.cpp \
d0ed8b1f4f7a Resolved merges of FindOggVorbis.cmake and CMakeLists.txt
Neal Gompa (ニール・ゴンパ) <ngompa13@gmail.com>
parents:
diff changeset
   180
	private.c \
d0ed8b1f4f7a Resolved merges of FindOggVorbis.cmake and CMakeLists.txt
Neal Gompa (ニール・ゴンパ) <ngompa13@gmail.com>
parents:
diff changeset
   181
	Quaternions.cpp \
d0ed8b1f4f7a Resolved merges of FindOggVorbis.cmake and CMakeLists.txt
Neal Gompa (ニール・ゴンパ) <ngompa13@gmail.com>
parents:
diff changeset
   182
	Random.c \
d0ed8b1f4f7a Resolved merges of FindOggVorbis.cmake and CMakeLists.txt
Neal Gompa (ニール・ゴンパ) <ngompa13@gmail.com>
parents:
diff changeset
   183
	Skeleton.cpp \
d0ed8b1f4f7a Resolved merges of FindOggVorbis.cmake and CMakeLists.txt
Neal Gompa (ニール・ゴンパ) <ngompa13@gmail.com>
parents:
diff changeset
   184
	Skybox.cpp \
d0ed8b1f4f7a Resolved merges of FindOggVorbis.cmake and CMakeLists.txt
Neal Gompa (ニール・ゴンパ) <ngompa13@gmail.com>
parents:
diff changeset
   185
	Sprites.cpp \
d0ed8b1f4f7a Resolved merges of FindOggVorbis.cmake and CMakeLists.txt
Neal Gompa (ニール・ゴンパ) <ngompa13@gmail.com>
parents:
diff changeset
   186
	Terrain.cpp \
d0ed8b1f4f7a Resolved merges of FindOggVorbis.cmake and CMakeLists.txt
Neal Gompa (ニール・ゴンパ) <ngompa13@gmail.com>
parents:
diff changeset
   187
	Text.cpp \
d0ed8b1f4f7a Resolved merges of FindOggVorbis.cmake and CMakeLists.txt
Neal Gompa (ニール・ゴンパ) <ngompa13@gmail.com>
parents:
diff changeset
   188
	TGALoader.cpp \
d0ed8b1f4f7a Resolved merges of FindOggVorbis.cmake and CMakeLists.txt
Neal Gompa (ニール・ゴンパ) <ngompa13@gmail.com>
parents:
diff changeset
   189
	unpack.c \
d0ed8b1f4f7a Resolved merges of FindOggVorbis.cmake and CMakeLists.txt
Neal Gompa (ニール・ゴンパ) <ngompa13@gmail.com>
parents:
diff changeset
   190
	unpack_private.c \
d0ed8b1f4f7a Resolved merges of FindOggVorbis.cmake and CMakeLists.txt
Neal Gompa (ニール・ゴンパ) <ngompa13@gmail.com>
parents:
diff changeset
   191
	Weapons.cpp \
d0ed8b1f4f7a Resolved merges of FindOggVorbis.cmake and CMakeLists.txt
Neal Gompa (ニール・ゴンパ) <ngompa13@gmail.com>
parents:
diff changeset
   192
	MacCompatibility.cpp \
d0ed8b1f4f7a Resolved merges of FindOggVorbis.cmake and CMakeLists.txt
Neal Gompa (ニール・ゴンパ) <ngompa13@gmail.com>
parents:
diff changeset
   193
	WinInput.cpp \
d0ed8b1f4f7a Resolved merges of FindOggVorbis.cmake and CMakeLists.txt
Neal Gompa (ニール・ゴンパ) <ngompa13@gmail.com>
parents:
diff changeset
   194
	OpenGL_Windows.cpp \
d0ed8b1f4f7a Resolved merges of FindOggVorbis.cmake and CMakeLists.txt
Neal Gompa (ニール・ゴンパ) <ngompa13@gmail.com>
parents:
diff changeset
   195
	openal_wrapper.cpp \
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
SRCS := $(foreach f,$(SRCS),$(SRCDIR)/$(f))
d0ed8b1f4f7a Resolved merges of FindOggVorbis.cmake and CMakeLists.txt
Neal Gompa (ニール・ゴンパ) <ngompa13@gmail.com>
parents:
diff changeset
   198
d0ed8b1f4f7a Resolved merges of FindOggVorbis.cmake and CMakeLists.txt
Neal Gompa (ニール・ゴンパ) <ngompa13@gmail.com>
parents:
diff changeset
   199
d0ed8b1f4f7a Resolved merges of FindOggVorbis.cmake and CMakeLists.txt
Neal Gompa (ニール・ゴンパ) <ngompa13@gmail.com>
parents:
diff changeset
   200
UNUSED_SRCS := \
d0ed8b1f4f7a Resolved merges of FindOggVorbis.cmake and CMakeLists.txt
Neal Gompa (ニール・ゴンパ) <ngompa13@gmail.com>
parents:
diff changeset
   201
	DRIVER.CC \
d0ed8b1f4f7a Resolved merges of FindOggVorbis.cmake and CMakeLists.txt
Neal Gompa (ニール・ゴンパ) <ngompa13@gmail.com>
parents:
diff changeset
   202
	MD5.CC \
d0ed8b1f4f7a Resolved merges of FindOggVorbis.cmake and CMakeLists.txt
Neal Gompa (ニール・ゴンパ) <ngompa13@gmail.com>
parents:
diff changeset
   203
152
c50f3b7d3fa0 Updated makefile.old with the new dependencies stuff.
Ryan C. Gordon <icculus@icculus.org>
parents: 131
diff changeset
   204
#    pnggccrd.c \
c50f3b7d3fa0 Updated makefile.old with the new dependencies stuff.
Ryan C. Gordon <icculus@icculus.org>
parents: 131
diff changeset
   205
#    pngvcrd.c \
109
d0ed8b1f4f7a Resolved merges of FindOggVorbis.cmake and CMakeLists.txt
Neal Gompa (ニール・ゴンパ) <ngompa13@gmail.com>
parents:
diff changeset
   206
d0ed8b1f4f7a Resolved merges of FindOggVorbis.cmake and CMakeLists.txt
Neal Gompa (ニール・ゴンパ) <ngompa13@gmail.com>
parents:
diff changeset
   207
PNGSRCS := \
d0ed8b1f4f7a Resolved merges of FindOggVorbis.cmake and CMakeLists.txt
Neal Gompa (ニール・ゴンパ) <ngompa13@gmail.com>
parents:
diff changeset
   208
    png.c \
d0ed8b1f4f7a Resolved merges of FindOggVorbis.cmake and CMakeLists.txt
Neal Gompa (ニール・ゴンパ) <ngompa13@gmail.com>
parents:
diff changeset
   209
    pngerror.c \
d0ed8b1f4f7a Resolved merges of FindOggVorbis.cmake and CMakeLists.txt
Neal Gompa (ニール・ゴンパ) <ngompa13@gmail.com>
parents:
diff changeset
   210
    pngget.c \
d0ed8b1f4f7a Resolved merges of FindOggVorbis.cmake and CMakeLists.txt
Neal Gompa (ニール・ゴンパ) <ngompa13@gmail.com>
parents:
diff changeset
   211
    pngmem.c \
d0ed8b1f4f7a Resolved merges of FindOggVorbis.cmake and CMakeLists.txt
Neal Gompa (ニール・ゴンパ) <ngompa13@gmail.com>
parents:
diff changeset
   212
    pngpread.c \
d0ed8b1f4f7a Resolved merges of FindOggVorbis.cmake and CMakeLists.txt
Neal Gompa (ニール・ゴンパ) <ngompa13@gmail.com>
parents:
diff changeset
   213
    pngread.c \
d0ed8b1f4f7a Resolved merges of FindOggVorbis.cmake and CMakeLists.txt
Neal Gompa (ニール・ゴンパ) <ngompa13@gmail.com>
parents:
diff changeset
   214
    pngrio.c \
d0ed8b1f4f7a Resolved merges of FindOggVorbis.cmake and CMakeLists.txt
Neal Gompa (ニール・ゴンパ) <ngompa13@gmail.com>
parents:
diff changeset
   215
    pngrtran.c \
d0ed8b1f4f7a Resolved merges of FindOggVorbis.cmake and CMakeLists.txt
Neal Gompa (ニール・ゴンパ) <ngompa13@gmail.com>
parents:
diff changeset
   216
    pngrutil.c \
d0ed8b1f4f7a Resolved merges of FindOggVorbis.cmake and CMakeLists.txt
Neal Gompa (ニール・ゴンパ) <ngompa13@gmail.com>
parents:
diff changeset
   217
    pngset.c \
d0ed8b1f4f7a Resolved merges of FindOggVorbis.cmake and CMakeLists.txt
Neal Gompa (ニール・ゴンパ) <ngompa13@gmail.com>
parents:
diff changeset
   218
    pngtrans.c \
d0ed8b1f4f7a Resolved merges of FindOggVorbis.cmake and CMakeLists.txt
Neal Gompa (ニール・ゴンパ) <ngompa13@gmail.com>
parents:
diff changeset
   219
    pngwio.c \
d0ed8b1f4f7a Resolved merges of FindOggVorbis.cmake and CMakeLists.txt
Neal Gompa (ニール・ゴンパ) <ngompa13@gmail.com>
parents:
diff changeset
   220
    pngwrite.c \
d0ed8b1f4f7a Resolved merges of FindOggVorbis.cmake and CMakeLists.txt
Neal Gompa (ニール・ゴンパ) <ngompa13@gmail.com>
parents:
diff changeset
   221
    pngwtran.c \
d0ed8b1f4f7a Resolved merges of FindOggVorbis.cmake and CMakeLists.txt
Neal Gompa (ニール・ゴンパ) <ngompa13@gmail.com>
parents:
diff changeset
   222
    pngwutil.c \
d0ed8b1f4f7a Resolved merges of FindOggVorbis.cmake and CMakeLists.txt
Neal Gompa (ニール・ゴンパ) <ngompa13@gmail.com>
parents:
diff changeset
   223
d0ed8b1f4f7a Resolved merges of FindOggVorbis.cmake and CMakeLists.txt
Neal Gompa (ニール・ゴンパ) <ngompa13@gmail.com>
parents:
diff changeset
   224
PNGSRCS := $(foreach f,$(PNGSRCS),$(LIBPNGDIR)/$(f))
d0ed8b1f4f7a Resolved merges of FindOggVorbis.cmake and CMakeLists.txt
Neal Gompa (ニール・ゴンパ) <ngompa13@gmail.com>
parents:
diff changeset
   225
152
c50f3b7d3fa0 Updated makefile.old with the new dependencies stuff.
Ryan C. Gordon <icculus@icculus.org>
parents: 131
diff changeset
   226
#    jdphuff.c \
c50f3b7d3fa0 Updated makefile.old with the new dependencies stuff.
Ryan C. Gordon <icculus@icculus.org>
parents: 131
diff changeset
   227
#    jidctred.c \
c50f3b7d3fa0 Updated makefile.old with the new dependencies stuff.
Ryan C. Gordon <icculus@icculus.org>
parents: 131
diff changeset
   228
#    jcphuff.c \
c50f3b7d3fa0 Updated makefile.old with the new dependencies stuff.
Ryan C. Gordon <icculus@icculus.org>
parents: 131
diff changeset
   229
109
d0ed8b1f4f7a Resolved merges of FindOggVorbis.cmake and CMakeLists.txt
Neal Gompa (ニール・ゴンパ) <ngompa13@gmail.com>
parents:
diff changeset
   230
JPEGSRCS := \
d0ed8b1f4f7a Resolved merges of FindOggVorbis.cmake and CMakeLists.txt
Neal Gompa (ニール・ゴンパ) <ngompa13@gmail.com>
parents:
diff changeset
   231
	jdapistd.c \
d0ed8b1f4f7a Resolved merges of FindOggVorbis.cmake and CMakeLists.txt
Neal Gompa (ニール・ゴンパ) <ngompa13@gmail.com>
parents:
diff changeset
   232
    jdmaster.c \
d0ed8b1f4f7a Resolved merges of FindOggVorbis.cmake and CMakeLists.txt
Neal Gompa (ニール・ゴンパ) <ngompa13@gmail.com>
parents:
diff changeset
   233
    jdapimin.c \
d0ed8b1f4f7a Resolved merges of FindOggVorbis.cmake and CMakeLists.txt
Neal Gompa (ニール・ゴンパ) <ngompa13@gmail.com>
parents:
diff changeset
   234
    jcapimin.c \
d0ed8b1f4f7a Resolved merges of FindOggVorbis.cmake and CMakeLists.txt
Neal Gompa (ニール・ゴンパ) <ngompa13@gmail.com>
parents:
diff changeset
   235
    jdmerge.c \
d0ed8b1f4f7a Resolved merges of FindOggVorbis.cmake and CMakeLists.txt
Neal Gompa (ニール・ゴンパ) <ngompa13@gmail.com>
parents:
diff changeset
   236
    jdatasrc.c \
d0ed8b1f4f7a Resolved merges of FindOggVorbis.cmake and CMakeLists.txt
Neal Gompa (ニール・ゴンパ) <ngompa13@gmail.com>
parents:
diff changeset
   237
    jdatadst.c \
d0ed8b1f4f7a Resolved merges of FindOggVorbis.cmake and CMakeLists.txt
Neal Gompa (ニール・ゴンパ) <ngompa13@gmail.com>
parents:
diff changeset
   238
    jdcoefct.c \
d0ed8b1f4f7a Resolved merges of FindOggVorbis.cmake and CMakeLists.txt
Neal Gompa (ニール・ゴンパ) <ngompa13@gmail.com>
parents:
diff changeset
   239
    jdcolor.c \
d0ed8b1f4f7a Resolved merges of FindOggVorbis.cmake and CMakeLists.txt
Neal Gompa (ニール・ゴンパ) <ngompa13@gmail.com>
parents:
diff changeset
   240
    jddctmgr.c \
d0ed8b1f4f7a Resolved merges of FindOggVorbis.cmake and CMakeLists.txt
Neal Gompa (ニール・ゴンパ) <ngompa13@gmail.com>
parents:
diff changeset
   241
    jdhuff.c \
d0ed8b1f4f7a Resolved merges of FindOggVorbis.cmake and CMakeLists.txt
Neal Gompa (ニール・ゴンパ) <ngompa13@gmail.com>
parents:
diff changeset
   242
    jdinput.c \
d0ed8b1f4f7a Resolved merges of FindOggVorbis.cmake and CMakeLists.txt
Neal Gompa (ニール・ゴンパ) <ngompa13@gmail.com>
parents:
diff changeset
   243
    jdmainct.c \
d0ed8b1f4f7a Resolved merges of FindOggVorbis.cmake and CMakeLists.txt
Neal Gompa (ニール・ゴンパ) <ngompa13@gmail.com>
parents:
diff changeset
   244
    jdmarker.c \
d0ed8b1f4f7a Resolved merges of FindOggVorbis.cmake and CMakeLists.txt
Neal Gompa (ニール・ゴンパ) <ngompa13@gmail.com>
parents:
diff changeset
   245
    jdpostct.c \
d0ed8b1f4f7a Resolved merges of FindOggVorbis.cmake and CMakeLists.txt
Neal Gompa (ニール・ゴンパ) <ngompa13@gmail.com>
parents:
diff changeset
   246
    jdsample.c \
d0ed8b1f4f7a Resolved merges of FindOggVorbis.cmake and CMakeLists.txt
Neal Gompa (ニール・ゴンパ) <ngompa13@gmail.com>
parents:
diff changeset
   247
    jdtrans.c \
d0ed8b1f4f7a Resolved merges of FindOggVorbis.cmake and CMakeLists.txt
Neal Gompa (ニール・ゴンパ) <ngompa13@gmail.com>
parents:
diff changeset
   248
    jerror.c \
d0ed8b1f4f7a Resolved merges of FindOggVorbis.cmake and CMakeLists.txt
Neal Gompa (ニール・ゴンパ) <ngompa13@gmail.com>
parents:
diff changeset
   249
    jidctflt.c \
d0ed8b1f4f7a Resolved merges of FindOggVorbis.cmake and CMakeLists.txt
Neal Gompa (ニール・ゴンパ) <ngompa13@gmail.com>
parents:
diff changeset
   250
    jidctfst.c \
d0ed8b1f4f7a Resolved merges of FindOggVorbis.cmake and CMakeLists.txt
Neal Gompa (ニール・ゴンパ) <ngompa13@gmail.com>
parents:
diff changeset
   251
    jidctint.c \
d0ed8b1f4f7a Resolved merges of FindOggVorbis.cmake and CMakeLists.txt
Neal Gompa (ニール・ゴンパ) <ngompa13@gmail.com>
parents:
diff changeset
   252
    jmemmgr.c \
d0ed8b1f4f7a Resolved merges of FindOggVorbis.cmake and CMakeLists.txt
Neal Gompa (ニール・ゴンパ) <ngompa13@gmail.com>
parents:
diff changeset
   253
    jutils.c \
d0ed8b1f4f7a Resolved merges of FindOggVorbis.cmake and CMakeLists.txt
Neal Gompa (ニール・ゴンパ) <ngompa13@gmail.com>
parents:
diff changeset
   254
    jmemnobs.c \
d0ed8b1f4f7a Resolved merges of FindOggVorbis.cmake and CMakeLists.txt
Neal Gompa (ニール・ゴンパ) <ngompa13@gmail.com>
parents:
diff changeset
   255
    jquant1.c \
d0ed8b1f4f7a Resolved merges of FindOggVorbis.cmake and CMakeLists.txt
Neal Gompa (ニール・ゴンパ) <ngompa13@gmail.com>
parents:
diff changeset
   256
    jquant2.c \
d0ed8b1f4f7a Resolved merges of FindOggVorbis.cmake and CMakeLists.txt
Neal Gompa (ニール・ゴンパ) <ngompa13@gmail.com>
parents:
diff changeset
   257
    jcomapi.c \
d0ed8b1f4f7a Resolved merges of FindOggVorbis.cmake and CMakeLists.txt
Neal Gompa (ニール・ゴンパ) <ngompa13@gmail.com>
parents:
diff changeset
   258
    jcmarker.c \
d0ed8b1f4f7a Resolved merges of FindOggVorbis.cmake and CMakeLists.txt
Neal Gompa (ニール・ゴンパ) <ngompa13@gmail.com>
parents:
diff changeset
   259
    jcapistd.c \
d0ed8b1f4f7a Resolved merges of FindOggVorbis.cmake and CMakeLists.txt
Neal Gompa (ニール・ゴンパ) <ngompa13@gmail.com>
parents:
diff changeset
   260
    jcparam.c \
d0ed8b1f4f7a Resolved merges of FindOggVorbis.cmake and CMakeLists.txt
Neal Gompa (ニール・ゴンパ) <ngompa13@gmail.com>
parents:
diff changeset
   261
    jcinit.c \
d0ed8b1f4f7a Resolved merges of FindOggVorbis.cmake and CMakeLists.txt
Neal Gompa (ニール・ゴンパ) <ngompa13@gmail.com>
parents:
diff changeset
   262
    jcdctmgr.c \
d0ed8b1f4f7a Resolved merges of FindOggVorbis.cmake and CMakeLists.txt
Neal Gompa (ニール・ゴンパ) <ngompa13@gmail.com>
parents:
diff changeset
   263
    jccoefct.c \
d0ed8b1f4f7a Resolved merges of FindOggVorbis.cmake and CMakeLists.txt
Neal Gompa (ニール・ゴンパ) <ngompa13@gmail.com>
parents:
diff changeset
   264
    jcmainct.c \
d0ed8b1f4f7a Resolved merges of FindOggVorbis.cmake and CMakeLists.txt
Neal Gompa (ニール・ゴンパ) <ngompa13@gmail.com>
parents:
diff changeset
   265
    jfdctflt.c \
d0ed8b1f4f7a Resolved merges of FindOggVorbis.cmake and CMakeLists.txt
Neal Gompa (ニール・ゴンパ) <ngompa13@gmail.com>
parents:
diff changeset
   266
    jfdctint.c \
d0ed8b1f4f7a Resolved merges of FindOggVorbis.cmake and CMakeLists.txt
Neal Gompa (ニール・ゴンパ) <ngompa13@gmail.com>
parents:
diff changeset
   267
    jfdctfst.c \
d0ed8b1f4f7a Resolved merges of FindOggVorbis.cmake and CMakeLists.txt
Neal Gompa (ニール・ゴンパ) <ngompa13@gmail.com>
parents:
diff changeset
   268
    jchuff.c \
d0ed8b1f4f7a Resolved merges of FindOggVorbis.cmake and CMakeLists.txt
Neal Gompa (ニール・ゴンパ) <ngompa13@gmail.com>
parents:
diff changeset
   269
    jcsample.c \
d0ed8b1f4f7a Resolved merges of FindOggVorbis.cmake and CMakeLists.txt
Neal Gompa (ニール・ゴンパ) <ngompa13@gmail.com>
parents:
diff changeset
   270
    jcmaster.c \
d0ed8b1f4f7a Resolved merges of FindOggVorbis.cmake and CMakeLists.txt
Neal Gompa (ニール・ゴンパ) <ngompa13@gmail.com>
parents:
diff changeset
   271
    jccolor.c \
d0ed8b1f4f7a Resolved merges of FindOggVorbis.cmake and CMakeLists.txt
Neal Gompa (ニール・ゴンパ) <ngompa13@gmail.com>
parents:
diff changeset
   272
    jcprepct.c \
152
c50f3b7d3fa0 Updated makefile.old with the new dependencies stuff.
Ryan C. Gordon <icculus@icculus.org>
parents: 131
diff changeset
   273
    jcarith.c \
c50f3b7d3fa0 Updated makefile.old with the new dependencies stuff.
Ryan C. Gordon <icculus@icculus.org>
parents: 131
diff changeset
   274
    jdarith.c \
c50f3b7d3fa0 Updated makefile.old with the new dependencies stuff.
Ryan C. Gordon <icculus@icculus.org>
parents: 131
diff changeset
   275
    jaricom.c \
109
d0ed8b1f4f7a Resolved merges of FindOggVorbis.cmake and CMakeLists.txt
Neal Gompa (ニール・ゴンパ) <ngompa13@gmail.com>
parents:
diff changeset
   276
d0ed8b1f4f7a Resolved merges of FindOggVorbis.cmake and CMakeLists.txt
Neal Gompa (ニール・ゴンパ) <ngompa13@gmail.com>
parents:
diff changeset
   277
JPEGSRCS := $(foreach f,$(JPEGSRCS),$(JPEGLIBDIR)/$(f))
d0ed8b1f4f7a Resolved merges of FindOggVorbis.cmake and CMakeLists.txt
Neal Gompa (ニール・ゴンパ) <ngompa13@gmail.com>
parents:
diff changeset
   278
152
c50f3b7d3fa0 Updated makefile.old with the new dependencies stuff.
Ryan C. Gordon <icculus@icculus.org>
parents: 131
diff changeset
   279
#	gzio.c \
109
d0ed8b1f4f7a Resolved merges of FindOggVorbis.cmake and CMakeLists.txt
Neal Gompa (ニール・ゴンパ) <ngompa13@gmail.com>
parents:
diff changeset
   280
d0ed8b1f4f7a Resolved merges of FindOggVorbis.cmake and CMakeLists.txt
Neal Gompa (ニール・ゴンパ) <ngompa13@gmail.com>
parents:
diff changeset
   281
ZLIBSRCS = \
d0ed8b1f4f7a Resolved merges of FindOggVorbis.cmake and CMakeLists.txt
Neal Gompa (ニール・ゴンパ) <ngompa13@gmail.com>
parents:
diff changeset
   282
	adler32.c \
d0ed8b1f4f7a Resolved merges of FindOggVorbis.cmake and CMakeLists.txt
Neal Gompa (ニール・ゴンパ) <ngompa13@gmail.com>
parents:
diff changeset
   283
	compress.c \
d0ed8b1f4f7a Resolved merges of FindOggVorbis.cmake and CMakeLists.txt
Neal Gompa (ニール・ゴンパ) <ngompa13@gmail.com>
parents:
diff changeset
   284
	crc32.c \
d0ed8b1f4f7a Resolved merges of FindOggVorbis.cmake and CMakeLists.txt
Neal Gompa (ニール・ゴンパ) <ngompa13@gmail.com>
parents:
diff changeset
   285
	deflate.c \
d0ed8b1f4f7a Resolved merges of FindOggVorbis.cmake and CMakeLists.txt
Neal Gompa (ニール・ゴンパ) <ngompa13@gmail.com>
parents:
diff changeset
   286
	infback.c \
d0ed8b1f4f7a Resolved merges of FindOggVorbis.cmake and CMakeLists.txt
Neal Gompa (ニール・ゴンパ) <ngompa13@gmail.com>
parents:
diff changeset
   287
	inffast.c \
d0ed8b1f4f7a Resolved merges of FindOggVorbis.cmake and CMakeLists.txt
Neal Gompa (ニール・ゴンパ) <ngompa13@gmail.com>
parents:
diff changeset
   288
	inflate.c \
d0ed8b1f4f7a Resolved merges of FindOggVorbis.cmake and CMakeLists.txt
Neal Gompa (ニール・ゴンパ) <ngompa13@gmail.com>
parents:
diff changeset
   289
	inftrees.c \
d0ed8b1f4f7a Resolved merges of FindOggVorbis.cmake and CMakeLists.txt
Neal Gompa (ニール・ゴンパ) <ngompa13@gmail.com>
parents:
diff changeset
   290
	trees.c \
d0ed8b1f4f7a Resolved merges of FindOggVorbis.cmake and CMakeLists.txt
Neal Gompa (ニール・ゴンパ) <ngompa13@gmail.com>
parents:
diff changeset
   291
	uncompr.c \
d0ed8b1f4f7a Resolved merges of FindOggVorbis.cmake and CMakeLists.txt
Neal Gompa (ニール・ゴンパ) <ngompa13@gmail.com>
parents:
diff changeset
   292
	zutil.c \
d0ed8b1f4f7a Resolved merges of FindOggVorbis.cmake and CMakeLists.txt
Neal Gompa (ニール・ゴンパ) <ngompa13@gmail.com>
parents:
diff changeset
   293
d0ed8b1f4f7a Resolved merges of FindOggVorbis.cmake and CMakeLists.txt
Neal Gompa (ニール・ゴンパ) <ngompa13@gmail.com>
parents:
diff changeset
   294
ZLIBSRCS := $(foreach f,$(ZLIBSRCS),$(ZLIBDIR)/$(f))
d0ed8b1f4f7a Resolved merges of FindOggVorbis.cmake and CMakeLists.txt
Neal Gompa (ニール・ゴンパ) <ngompa13@gmail.com>
parents:
diff changeset
   295
d0ed8b1f4f7a Resolved merges of FindOggVorbis.cmake and CMakeLists.txt
Neal Gompa (ニール・ゴンパ) <ngompa13@gmail.com>
parents:
diff changeset
   296
d0ed8b1f4f7a Resolved merges of FindOggVorbis.cmake and CMakeLists.txt
Neal Gompa (ニール・ゴンパ) <ngompa13@gmail.com>
parents:
diff changeset
   297
GLUSRCS := \
d0ed8b1f4f7a Resolved merges of FindOggVorbis.cmake and CMakeLists.txt
Neal Gompa (ニール・ゴンパ) <ngompa13@gmail.com>
parents:
diff changeset
   298
	dict.c \
d0ed8b1f4f7a Resolved merges of FindOggVorbis.cmake and CMakeLists.txt
Neal Gompa (ニール・ゴンパ) <ngompa13@gmail.com>
parents:
diff changeset
   299
	geom.c \
d0ed8b1f4f7a Resolved merges of FindOggVorbis.cmake and CMakeLists.txt
Neal Gompa (ニール・ゴンパ) <ngompa13@gmail.com>
parents:
diff changeset
   300
	memalloc.c \
d0ed8b1f4f7a Resolved merges of FindOggVorbis.cmake and CMakeLists.txt
Neal Gompa (ニール・ゴンパ) <ngompa13@gmail.com>
parents:
diff changeset
   301
	mesh.c \
d0ed8b1f4f7a Resolved merges of FindOggVorbis.cmake and CMakeLists.txt
Neal Gompa (ニール・ゴンパ) <ngompa13@gmail.com>
parents:
diff changeset
   302
	mipmap.c \
d0ed8b1f4f7a Resolved merges of FindOggVorbis.cmake and CMakeLists.txt
Neal Gompa (ニール・ゴンパ) <ngompa13@gmail.com>
parents:
diff changeset
   303
	normal.c \
d0ed8b1f4f7a Resolved merges of FindOggVorbis.cmake and CMakeLists.txt
Neal Gompa (ニール・ゴンパ) <ngompa13@gmail.com>
parents:
diff changeset
   304
	priorityq.c \
d0ed8b1f4f7a Resolved merges of FindOggVorbis.cmake and CMakeLists.txt
Neal Gompa (ニール・ゴンパ) <ngompa13@gmail.com>
parents:
diff changeset
   305
	render.c \
d0ed8b1f4f7a Resolved merges of FindOggVorbis.cmake and CMakeLists.txt
Neal Gompa (ニール・ゴンパ) <ngompa13@gmail.com>
parents:
diff changeset
   306
	sweep.c \
d0ed8b1f4f7a Resolved merges of FindOggVorbis.cmake and CMakeLists.txt
Neal Gompa (ニール・ゴンパ) <ngompa13@gmail.com>
parents:
diff changeset
   307
	tess.c \
d0ed8b1f4f7a Resolved merges of FindOggVorbis.cmake and CMakeLists.txt
Neal Gompa (ニール・ゴンパ) <ngompa13@gmail.com>
parents:
diff changeset
   308
	tessmono.c \
d0ed8b1f4f7a Resolved merges of FindOggVorbis.cmake and CMakeLists.txt
Neal Gompa (ニール・ゴンパ) <ngompa13@gmail.com>
parents:
diff changeset
   309
	util.c \
d0ed8b1f4f7a Resolved merges of FindOggVorbis.cmake and CMakeLists.txt
Neal Gompa (ニール・ゴンパ) <ngompa13@gmail.com>
parents:
diff changeset
   310
d0ed8b1f4f7a Resolved merges of FindOggVorbis.cmake and CMakeLists.txt
Neal Gompa (ニール・ゴンパ) <ngompa13@gmail.com>
parents:
diff changeset
   311
GLUSRCS := $(foreach f,$(GLUSRCS),$(GLUDIR)/$(f))
d0ed8b1f4f7a Resolved merges of FindOggVorbis.cmake and CMakeLists.txt
Neal Gompa (ニール・ゴンパ) <ngompa13@gmail.com>
parents:
diff changeset
   312
d0ed8b1f4f7a Resolved merges of FindOggVorbis.cmake and CMakeLists.txt
Neal Gompa (ニール・ゴンパ) <ngompa13@gmail.com>
parents:
diff changeset
   313
d0ed8b1f4f7a Resolved merges of FindOggVorbis.cmake and CMakeLists.txt
Neal Gompa (ニール・ゴンパ) <ngompa13@gmail.com>
parents:
diff changeset
   314
OGGSRCS := \
d0ed8b1f4f7a Resolved merges of FindOggVorbis.cmake and CMakeLists.txt
Neal Gompa (ニール・ゴンパ) <ngompa13@gmail.com>
parents:
diff changeset
   315
	bitwise.o \
d0ed8b1f4f7a Resolved merges of FindOggVorbis.cmake and CMakeLists.txt
Neal Gompa (ニール・ゴンパ) <ngompa13@gmail.com>
parents:
diff changeset
   316
	framing.o
d0ed8b1f4f7a Resolved merges of FindOggVorbis.cmake and CMakeLists.txt
Neal Gompa (ニール・ゴンパ) <ngompa13@gmail.com>
parents:
diff changeset
   317
d0ed8b1f4f7a Resolved merges of FindOggVorbis.cmake and CMakeLists.txt
Neal Gompa (ニール・ゴンパ) <ngompa13@gmail.com>
parents:
diff changeset
   318
OGGSRCS := $(foreach f,$(OGGSRCS),$(LIBOGGDIR)/src/$(f))
d0ed8b1f4f7a Resolved merges of FindOggVorbis.cmake and CMakeLists.txt
Neal Gompa (ニール・ゴンパ) <ngompa13@gmail.com>
parents:
diff changeset
   319
d0ed8b1f4f7a Resolved merges of FindOggVorbis.cmake and CMakeLists.txt
Neal Gompa (ニール・ゴンパ) <ngompa13@gmail.com>
parents:
diff changeset
   320
VORBISSRCS := \
d0ed8b1f4f7a Resolved merges of FindOggVorbis.cmake and CMakeLists.txt
Neal Gompa (ニール・ゴンパ) <ngompa13@gmail.com>
parents:
diff changeset
   321
	analysis.o \
d0ed8b1f4f7a Resolved merges of FindOggVorbis.cmake and CMakeLists.txt
Neal Gompa (ニール・ゴンパ) <ngompa13@gmail.com>
parents:
diff changeset
   322
    bitrate.o \
d0ed8b1f4f7a Resolved merges of FindOggVorbis.cmake and CMakeLists.txt
Neal Gompa (ニール・ゴンパ) <ngompa13@gmail.com>
parents:
diff changeset
   323
    block.o \
d0ed8b1f4f7a Resolved merges of FindOggVorbis.cmake and CMakeLists.txt
Neal Gompa (ニール・ゴンパ) <ngompa13@gmail.com>
parents:
diff changeset
   324
    codebook.o \
d0ed8b1f4f7a Resolved merges of FindOggVorbis.cmake and CMakeLists.txt
Neal Gompa (ニール・ゴンパ) <ngompa13@gmail.com>
parents:
diff changeset
   325
    envelope.o \
d0ed8b1f4f7a Resolved merges of FindOggVorbis.cmake and CMakeLists.txt
Neal Gompa (ニール・ゴンパ) <ngompa13@gmail.com>
parents:
diff changeset
   326
    floor0.o \
d0ed8b1f4f7a Resolved merges of FindOggVorbis.cmake and CMakeLists.txt
Neal Gompa (ニール・ゴンパ) <ngompa13@gmail.com>
parents:
diff changeset
   327
    floor1.o \
d0ed8b1f4f7a Resolved merges of FindOggVorbis.cmake and CMakeLists.txt
Neal Gompa (ニール・ゴンパ) <ngompa13@gmail.com>
parents:
diff changeset
   328
    info.o \
d0ed8b1f4f7a Resolved merges of FindOggVorbis.cmake and CMakeLists.txt
Neal Gompa (ニール・ゴンパ) <ngompa13@gmail.com>
parents:
diff changeset
   329
    lpc.o \
d0ed8b1f4f7a Resolved merges of FindOggVorbis.cmake and CMakeLists.txt
Neal Gompa (ニール・ゴンパ) <ngompa13@gmail.com>
parents:
diff changeset
   330
    lsp.o \
d0ed8b1f4f7a Resolved merges of FindOggVorbis.cmake and CMakeLists.txt
Neal Gompa (ニール・ゴンパ) <ngompa13@gmail.com>
parents:
diff changeset
   331
    mapping0.o \
d0ed8b1f4f7a Resolved merges of FindOggVorbis.cmake and CMakeLists.txt
Neal Gompa (ニール・ゴンパ) <ngompa13@gmail.com>
parents:
diff changeset
   332
    mdct.o \
d0ed8b1f4f7a Resolved merges of FindOggVorbis.cmake and CMakeLists.txt
Neal Gompa (ニール・ゴンパ) <ngompa13@gmail.com>
parents:
diff changeset
   333
    psy.o \
d0ed8b1f4f7a Resolved merges of FindOggVorbis.cmake and CMakeLists.txt
Neal Gompa (ニール・ゴンパ) <ngompa13@gmail.com>
parents:
diff changeset
   334
    registry.o \
d0ed8b1f4f7a Resolved merges of FindOggVorbis.cmake and CMakeLists.txt
Neal Gompa (ニール・ゴンパ) <ngompa13@gmail.com>
parents:
diff changeset
   335
    res0.o \
d0ed8b1f4f7a Resolved merges of FindOggVorbis.cmake and CMakeLists.txt
Neal Gompa (ニール・ゴンパ) <ngompa13@gmail.com>
parents:
diff changeset
   336
    sharedbook.o \
d0ed8b1f4f7a Resolved merges of FindOggVorbis.cmake and CMakeLists.txt
Neal Gompa (ニール・ゴンパ) <ngompa13@gmail.com>
parents:
diff changeset
   337
    smallft.o \
d0ed8b1f4f7a Resolved merges of FindOggVorbis.cmake and CMakeLists.txt
Neal Gompa (ニール・ゴンパ) <ngompa13@gmail.com>
parents:
diff changeset
   338
    synthesis.o \
d0ed8b1f4f7a Resolved merges of FindOggVorbis.cmake and CMakeLists.txt
Neal Gompa (ニール・ゴンパ) <ngompa13@gmail.com>
parents:
diff changeset
   339
    vorbisfile.o \
d0ed8b1f4f7a Resolved merges of FindOggVorbis.cmake and CMakeLists.txt
Neal Gompa (ニール・ゴンパ) <ngompa13@gmail.com>
parents:
diff changeset
   340
    window.o
d0ed8b1f4f7a Resolved merges of FindOggVorbis.cmake and CMakeLists.txt
Neal Gompa (ニール・ゴンパ) <ngompa13@gmail.com>
parents:
diff changeset
   341
d0ed8b1f4f7a Resolved merges of FindOggVorbis.cmake and CMakeLists.txt
Neal Gompa (ニール・ゴンパ) <ngompa13@gmail.com>
parents:
diff changeset
   342
VORBISSRCS := $(foreach f,$(VORBISSRCS),$(LIBVORBISDIR)/lib/$(f))
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
ifeq ($(strip $(macosx)),false)
d0ed8b1f4f7a Resolved merges of FindOggVorbis.cmake and CMakeLists.txt
Neal Gompa (ニール・ゴンパ) <ngompa13@gmail.com>
parents:
diff changeset
   345
	SRCS += $(GLUSRCS)
d0ed8b1f4f7a Resolved merges of FindOggVorbis.cmake and CMakeLists.txt
Neal Gompa (ニール・ゴンパ) <ngompa13@gmail.com>
parents:
diff changeset
   346
endif
d0ed8b1f4f7a Resolved merges of FindOggVorbis.cmake and CMakeLists.txt
Neal Gompa (ニール・ゴンパ) <ngompa13@gmail.com>
parents:
diff changeset
   347
d0ed8b1f4f7a Resolved merges of FindOggVorbis.cmake and CMakeLists.txt
Neal Gompa (ニール・ゴンパ) <ngompa13@gmail.com>
parents:
diff changeset
   348
ifeq ($(strip $(use_devil)),false)
d0ed8b1f4f7a Resolved merges of FindOggVorbis.cmake and CMakeLists.txt
Neal Gompa (ニール・ゴンパ) <ngompa13@gmail.com>
parents:
diff changeset
   349
    SRCS += $(PNGSRCS) $(JPEGSRCS) $(ZLIBSRCS)
d0ed8b1f4f7a Resolved merges of FindOggVorbis.cmake and CMakeLists.txt
Neal Gompa (ニール・ゴンパ) <ngompa13@gmail.com>
parents:
diff changeset
   350
endif
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
ifeq ($(strip $(use_fmod)),false)
d0ed8b1f4f7a Resolved merges of FindOggVorbis.cmake and CMakeLists.txt
Neal Gompa (ニール・ゴンパ) <ngompa13@gmail.com>
parents:
diff changeset
   353
    SRCS += $(OGGSRCS) $(VORBISSRCS)
d0ed8b1f4f7a Resolved merges of FindOggVorbis.cmake and CMakeLists.txt
Neal Gompa (ニール・ゴンパ) <ngompa13@gmail.com>
parents:
diff changeset
   354
endif
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
OBJS := $(SRCS:.CC=.o)
d0ed8b1f4f7a Resolved merges of FindOggVorbis.cmake and CMakeLists.txt
Neal Gompa (ニール・ゴンパ) <ngompa13@gmail.com>
parents:
diff changeset
   357
OBJS := $(OBJS:.cc=.o)
d0ed8b1f4f7a Resolved merges of FindOggVorbis.cmake and CMakeLists.txt
Neal Gompa (ニール・ゴンパ) <ngompa13@gmail.com>
parents:
diff changeset
   358
OBJS := $(OBJS:.cpp=.o)
d0ed8b1f4f7a Resolved merges of FindOggVorbis.cmake and CMakeLists.txt
Neal Gompa (ニール・ゴンパ) <ngompa13@gmail.com>
parents:
diff changeset
   359
OBJS := $(OBJS:.c=.o)
d0ed8b1f4f7a Resolved merges of FindOggVorbis.cmake and CMakeLists.txt
Neal Gompa (ニール・ゴンパ) <ngompa13@gmail.com>
parents:
diff changeset
   360
OBJS := $(OBJS:.m=.o)
d0ed8b1f4f7a Resolved merges of FindOggVorbis.cmake and CMakeLists.txt
Neal Gompa (ニール・ゴンパ) <ngompa13@gmail.com>
parents:
diff changeset
   361
OBJS := $(foreach f,$(OBJS),$(BINDIR)/$(f))
d0ed8b1f4f7a Resolved merges of FindOggVorbis.cmake and CMakeLists.txt
Neal Gompa (ニール・ゴンパ) <ngompa13@gmail.com>
parents:
diff changeset
   362
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
.PHONY: clean all
d0ed8b1f4f7a Resolved merges of FindOggVorbis.cmake and CMakeLists.txt
Neal Gompa (ニール・ゴンパ) <ngompa13@gmail.com>
parents:
diff changeset
   365
d0ed8b1f4f7a Resolved merges of FindOggVorbis.cmake and CMakeLists.txt
Neal Gompa (ニール・ゴンパ) <ngompa13@gmail.com>
parents:
diff changeset
   366
all : $(EXE)
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 : %.cpp
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
	$(CXX) -o $@ $(CXXFLAGS) $<
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 : %.CC
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
	$(CXX) -x c++ -o $@ $(CXXFLAGS) $<
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
$(BINDIR)/%.o : %.cc
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
	$(CXX) -o $@ $(CXXFLAGS) $<
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
$(BINDIR)/%.o : %.m
d0ed8b1f4f7a Resolved merges of FindOggVorbis.cmake and CMakeLists.txt
Neal Gompa (ニール・ゴンパ) <ngompa13@gmail.com>
parents:
diff changeset
   381
	@mkdir -p $(dir $@)
d0ed8b1f4f7a Resolved merges of FindOggVorbis.cmake and CMakeLists.txt
Neal Gompa (ニール・ゴンパ) <ngompa13@gmail.com>
parents:
diff changeset
   382
	$(CC) -o $@ $(CFLAGS) $<
d0ed8b1f4f7a Resolved merges of FindOggVorbis.cmake and CMakeLists.txt
Neal Gompa (ニール・ゴンパ) <ngompa13@gmail.com>
parents:
diff changeset
   383
d0ed8b1f4f7a Resolved merges of FindOggVorbis.cmake and CMakeLists.txt
Neal Gompa (ニール・ゴンパ) <ngompa13@gmail.com>
parents:
diff changeset
   384
$(BINDIR)/%.o : %.c
d0ed8b1f4f7a Resolved merges of FindOggVorbis.cmake and CMakeLists.txt
Neal Gompa (ニール・ゴンパ) <ngompa13@gmail.com>
parents:
diff changeset
   385
	@mkdir -p $(dir $@)
d0ed8b1f4f7a Resolved merges of FindOggVorbis.cmake and CMakeLists.txt
Neal Gompa (ニール・ゴンパ) <ngompa13@gmail.com>
parents:
diff changeset
   386
	$(CC) -o $@ $(CFLAGS) $<
d0ed8b1f4f7a Resolved merges of FindOggVorbis.cmake and CMakeLists.txt
Neal Gompa (ニール・ゴンパ) <ngompa13@gmail.com>
parents:
diff changeset
   387
d0ed8b1f4f7a Resolved merges of FindOggVorbis.cmake and CMakeLists.txt
Neal Gompa (ニール・ゴンパ) <ngompa13@gmail.com>
parents:
diff changeset
   388
$(EXE) : $(OBJS) $(APPOBJS)
d0ed8b1f4f7a Resolved merges of FindOggVorbis.cmake and CMakeLists.txt
Neal Gompa (ニール・ゴンパ) <ngompa13@gmail.com>
parents:
diff changeset
   389
	@mkdir -p $(dir $@)
d0ed8b1f4f7a Resolved merges of FindOggVorbis.cmake and CMakeLists.txt
Neal Gompa (ニール・ゴンパ) <ngompa13@gmail.com>
parents:
diff changeset
   390
	$(LD) -o $@ $(LDFLAGS) $(OBJS) $(APPOBJS) $(POSTLDFLAGS)
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
clean:
d0ed8b1f4f7a Resolved merges of FindOggVorbis.cmake and CMakeLists.txt
Neal Gompa (ニール・ゴンパ) <ngompa13@gmail.com>
parents:
diff changeset
   393
	rm -f $(BINDIR)/*.o
d0ed8b1f4f7a Resolved merges of FindOggVorbis.cmake and CMakeLists.txt
Neal Gompa (ニール・ゴンパ) <ngompa13@gmail.com>
parents:
diff changeset
   394
	rm -f $(BINDIR)/$(SRCDIR)/*.o
d0ed8b1f4f7a Resolved merges of FindOggVorbis.cmake and CMakeLists.txt
Neal Gompa (ニール・ゴンパ) <ngompa13@gmail.com>
parents:
diff changeset
   395
	rm -f $(BINDIR)/$(GLUDIR)/*.o
d0ed8b1f4f7a Resolved merges of FindOggVorbis.cmake and CMakeLists.txt
Neal Gompa (ニール・ゴンパ) <ngompa13@gmail.com>
parents:
diff changeset
   396
	rm -f $(BINDIR)/$(LIBPNGDIR)/*.o
d0ed8b1f4f7a Resolved merges of FindOggVorbis.cmake and CMakeLists.txt
Neal Gompa (ニール・ゴンパ) <ngompa13@gmail.com>
parents:
diff changeset
   397
	rm -f $(BINDIR)/$(JPEGLIBDIR)/*.o
d0ed8b1f4f7a Resolved merges of FindOggVorbis.cmake and CMakeLists.txt
Neal Gompa (ニール・ゴンパ) <ngompa13@gmail.com>
parents:
diff changeset
   398
	rm -f $(BINDIR)/$(ZLIBDIR)/*.o
d0ed8b1f4f7a Resolved merges of FindOggVorbis.cmake and CMakeLists.txt
Neal Gompa (ニール・ゴンパ) <ngompa13@gmail.com>
parents:
diff changeset
   399
	rm -f $(BINDIR)/$(LIBOGGDIR)/src/*.o
d0ed8b1f4f7a Resolved merges of FindOggVorbis.cmake and CMakeLists.txt
Neal Gompa (ニール・ゴンパ) <ngompa13@gmail.com>
parents:
diff changeset
   400
	rm -f $(BINDIR)/$(LIBVORBISDIR)/lib/*.o
d0ed8b1f4f7a Resolved merges of FindOggVorbis.cmake and CMakeLists.txt
Neal Gompa (ニール・ゴンパ) <ngompa13@gmail.com>
parents:
diff changeset
   401
	rm -f $(EXE)
d0ed8b1f4f7a Resolved merges of FindOggVorbis.cmake and CMakeLists.txt
Neal Gompa (ニール・ゴンパ) <ngompa13@gmail.com>
parents:
diff changeset
   402
d0ed8b1f4f7a Resolved merges of FindOggVorbis.cmake and CMakeLists.txt
Neal Gompa (ニール・ゴンパ) <ngompa13@gmail.com>
parents:
diff changeset
   403
# end of makefile ...
d0ed8b1f4f7a Resolved merges of FindOggVorbis.cmake and CMakeLists.txt
Neal Gompa (ニール・ゴンパ) <ngompa13@gmail.com>
parents:
diff changeset
   404