Commits

ecsv  committed d4cf7c0

Add mupen64plus Makefile to compile glide64mk2

  • Participants
  • Parent commits eacee4b

Comments (0)

Files changed (5)

File data/Glide64mk2.ini

+;_____________________________________________________________________
+; SETTINGS:
+; This section contains the plugin settings, such as
+; resolution.
+;
+; resolution - specifies which resolution to use
+;  Resolutions are as follows:
+; 0  - 320, 200
+; 1  - 320, 240
+; 2  - 400, 256
+; 3  - 512, 384
+; 4  - 640, 200
+; 5  - 640, 350
+; 6  - 640, 400
+; 7  - 640, 480
+; 8  - 800, 600
+; 9  - 960, 720
+; 10 - 856, 480
+; 11 - 512, 256
+; 12 - 1024, 768
+; 13 - 1280, 1024
+; 14 - 1600, 1200
+; 15 - 400, 300
+; 16 - 1152, 864
+; 17 - 1280, 960
+; 18 - 1600, 1024
+; 19 - 1792, 1344
+; 20 - 1856, 1392
+; 21 - 1920, 1440
+; 22 - 2048, 1536
+; 23 - 2048, 2048
+; Note: some video cards or monitors do not support all
+; resolutions!
+;
+; Note#2:For compatibility issues always distribute this
+; file with the resolution: 640, 480 (7)  
+;
+
+[SETTINGS]
+card_id = 0
+resolution=8
+filter_cache = 0
+autodetect_ucode = 1
+ucode = 2
+wireframe = 0
+wfmode=1
+filtering = 1
+depthmode = 0
+fog = 1
+buff_clear = 1
+vsync = 1
+swapmode = 1
+run_in_window = 0
+show_fps = 0
+clock = 0
+clock_24_hr = 0
+wrap_big_tex = 0
+custom_ini = 1
+hotkeys = 1
+ssformat=1
+logging = 0
+log_clear = 0
+unk_as_red = 0
+log_unk = 0
+unk_clear = 0
+new_swap = 1
+hires_motionblur = 0
+flame_corona = 0
+fb_smart = 1
+fb_read_always = 0
+fb_clear = 0
+fb_hires = 1
+fb_depth_clear = 0
+motionblur = 1
+elogging = 0
+lodmode = 0
+fb_get_info = 0
+fb_render = 1
+detect_cpu_write = 0
+fillrec_depth_compare = 0
+tex_wrap_hack = 0
+read_back_to_screen = 0
+advanced_options = 0
+texenh_options = 0
+ghq_fltr = 0
+ghq_cmpr = 0
+ghq_enht = 0
+ghq_hirs = 0
+ghq_enht_cmpr = 0
+ghq_enht_tile = 0
+ghq_enht_f16bpp = 0
+ghq_enht_gz = 1
+ghq_enht_nobg=0
+ghq_hirs_cmpr = 0
+ghq_hirs_tile = 0
+ghq_hirs_f16bpp = 0
+ghq_hirs_gz = 1
+ghq_hirs_altcrc = 1
+ghq_cache_save = 1
+ghq_cache_size=0
+ghq_hirs_let_texartists_fly = 0
+ghq_hirs_dump = 0
+wrpResolution=0
+wrpVRAM=0
+wrpFBO=0
+wrpAnisotropic=0
+
+; UCODE:
+; These are ucode crcs used in the uCode detector.
+; If a crc is not found here, the plugin will ask you
+; to add it. All these values are in hexadecimal.
+;
+; uCodes:
+; -1 - Unknown, display error
+; 0 - RSP SW 2.0X (Super Mario 64)
+; 1 - F3DEX 1.XX (Star Fox 64)
+; 2 - F3DEX 2.XX (The Legend of Zelda: Ocarina of Time)
+; 3 - F3DEX ? (WaveRace)
+; 4 - RSP SW 2.0D EXT (Star Wars: Shadows of the Empire)
+; 5 - RSP SW 2.0 (Diddy Kong Racing); 
+; 6 - S2DEX 1.XX  (Yoshi's Story - SimCity 2000)
+; 7 - RSP SW PD (Perfect Dark)
+; 8 - F3DEXBG 2.08 (Conker's Bad Fur Day)
+
+[UCODE]
+006bd77f=0
+03044b84=2
+030f4b84=2
+05165579=1
+05777c62=1
+057e7c62=1
+07200895=0
+0bf36d36=9
+0d7bbffb=-1 
+0d7cbffb=5
+0ff79527=2
+0ff795bf=-1 
+1118b3e0=1
+1517a281=1
+168e9cd5=2
+1a1e18a0=2
+1a1e1920=2
+1a62dbaf=2
+1a62dc2f=2
+1de712ff=1
+1ea9e30f=6
+1f120bbb=21
+21f91834=2
+21f91874=2
+22099872=2
+24cd885b=1
+26a7879a=1
+299d5072=6
+2b291027=2
+2b5a89c2=6
+2c7975d6=1
+2d3fe3f1=1
+2f71d1d5=2
+2f7dd1d5=2
+327b933d=1
+339872a6=1
+377359b6=2
+3a1c2b34=0
+3a1cbac3=0
+3f7247fb=0
+3ff1a4ca=1
+4165e1fd=0
+4340ac9b=1
+440cfad6=1
+47d46e86=7
+485abff2=2
+4fe6df78=1
+5182f610=0
+5257cd2a=1
+5414030c=1
+5414030d=1
+559ff7d4=1
+5b5d36e3=4
+5b5d3763=3
+5d1d6f53=0
+5d3099f1=2
+5df1408c=1
+5ef4e34a=1
+6075e9eb=1
+60c1dcc4=1
+6124a508=2
+630a61fb=2
+63be08b1=5
+63be08b3=5
+64ed27e5=1
+65201989=2
+65201a09=2
+66c0b10a=1
+679e1205=2
+6bb745c9=6
+6d8f8f8a=2
+6e4d50af=0
+6eaa1da8=1
+72a4f34e=1
+73999a23=1
+74af0a74=6
+753be4a5=2
+794c3e28=6
+7df75834=1
+7f2d0a2e=1
+82f48073=1
+832fcb99=1
+841ce10f=1
+844b55b5=-1
+863e1ca7=1
+86b1593e=-1
+8805ffea=1
+8d5735b2=1
+8d5735b3=1
+8ec3e124=-1
+93d11f7b=2
+93d11ffb=2
+93d1ff7b=2
+9551177b=2
+955117fb=2
+95cd0062=2
+97d1b58a=1
+a2d0f88e=2
+a346a5cc=1
+aa86cb1d=2
+aae4a5b9=2
+ad0a6292=2
+ad0a6312=2
+ae08d5b9=0
+b1821ed3=1
+b4577b9c=1
+b54e7f93=0
+b62f900f=2
+ba65ea1e=2
+ba86cb1d=8
+bc03e969=0
+bc45382e=2
+be78677c=1
+bed8b069=1
+c3704e41=1
+c46dbc3d=1
+c99a4c6c=1
+c901ce73=2
+c901cef3=2
+cb8c9b6c=2
+cee7920f=1
+cfa35a45=2
+d1663234=1
+d20dedbf=6
+d2a9f59c=1
+d41db5f7=1
+d5604971=0
+d57049a5=1
+d5c4dc96=-1
+d5d68b1f=0
+d67c2f8b=0
+d802ec04=1
+da13ab96=2
+de7d67d4=2
+e1290fa2=2
+e41ec47e=0
+e65cb4ad=2
+e89c2b92=1
+e9231df2=1
+ec040469=1
+ee47381b=1
+ef54ee35=1
+f9893f70=21
+fb816260=1
+ff372492=21
+
+
+
+; Game specific settings
+;
+; In the [DEFAULT] section there are the default options for a game, which can
+; be overriden in the section with the game's internal name.
+
+[DEFAULT]
+filtering = 0
+fog = 1
+buff_clear = 1
+swapmode = 1
+lodmode = 0
+fb_smart = 0
+fb_hires = 1
+fb_get_info = 0
+fb_read_always = 0
+fb_render = 1
+fb_crc_mode = 1
+read_back_to_screen = 0
+detect_cpu_write = 0
+alt_tex_size = 0
+use_sts1_only = 0
+PPL = 0
+fast_crc = 1
+force_microcheck = 0
+force_quad3d = 0
+texrect_zbuf = 0
+fix_tex_coord = 0
+optimize_texrect = 1
+optimize_write = 0
+hires_buf_clear = 1
+depthmode = 1
+fb_clear = 0
+fb_read_alpha = 0
+ignore_previous = 0
+soft_depth_compare = 0
+force_depth_compare = 0
+force_calc_sphere = 0
+texrect_compare_less = 0
+texture_correction = 1
+fillcolor_fix = 0
+depth_bias = 20
+increase_texrect_edge = 0
+decrease_fillrect_edge = 0
+stipple_mode = 2
+stipple_pattern = 1041204192
+clip_zmax = 1
+clip_zmin = 0
+adjust_aspect = 1
+correct_viewport = 0
+aspect = 0
+zmode_compare_less = 0
+old_style_adither = 0
+n64_z_scale = 0
+
+[1080 SNOWBOARDING]
+optimize_texrect = 1
+alt_tex_size = 1
+depthmode = 0
+swapmode = 2
+fb_smart = 1
+fb_hires = 1
+fb_clear = 1
+
+[A Bug's Life]
+depthmode = 0
+
+[AERO FIGHTERS ASSAUL]
+clip_zmin = 1
+
+[AIDYN_CHRONICLES]
+depthmode = 1
+
+[All-Star Baseball 20] 
+force_depth_compare = 1 
+
+[All-Star Baseball 99]
+force_depth_compare = 1
+depthmode = 1
+buff_clear = 0
+
+[All Star Baseball 99]
+force_depth_compare = 1
+depthmode = 1
+buff_clear = 0
+
+[All-Star Baseball '0]
+force_depth_compare = 1
+depthmode = 0
+fb_smart = 1
+fb_hires = 1
+
+[ARMYMENAIRCOMBAT]
+increase_texrect_edge = 1
+depthmode = 1
+
+[BURABURA POYON]
+fix_tex_coord = 1
+depthmode = 0
+
+;Bakushou Jinsei 64 - Mezease! Resort Ou.
+[�޸�����ݾ�64]
+fb_info_disable = 1
+depthmode = 0
+
+[BAKU-BOMBERMAN]
+depthmode = 0
+fb_smart = 1
+fb_hires = 1
+
+[BAKUBOMB2]
+filtering = 1
+depthmode = 0
+
+[BANGAIOH]
+depthmode = 1
+
+[Banjo-Kazooie]
+filtering = 1
+depthmode = 1
+fb_smart = 1
+fb_hires = 1
+
+[BANJO KAZOOIE 2]
+filtering = 1
+depthmode = 1
+fb_smart = 1
+fb_hires = 1
+
+[BANJO TOOIE]
+filtering = 1
+depthmode = 1
+fb_smart = 1
+fb_hires = 1
+
+[BASS HUNTER 64]
+fix_tex_coord = 1
+depthmode = 1
+buff_clear = 0
+swapmode = 2
+
+[BATTLEZONE]
+force_depth_compare = 1
+depthmode = 1
+
+[BEETLE ADVENTURE JP]
+wrap_big_tex = 1
+n64_z_scale = 1
+filtering = 1
+depthmode = 1
+fb_smart = 1
+fb_hires = 1
+
+[Beetle Adventure Rac]
+wrap_big_tex = 1
+n64_z_scale = 1
+filtering = 1
+depthmode = 1
+fb_smart = 1
+fb_hires = 1
+
+[Big Mountain 2000]
+depthmode = 1
+
+[BIOFREAKS]
+depthmode = 0
+buff_clear = 0
+fb_smart = 1
+fb_hires = 1
+
+[BioHazard II]
+detect_cpu_write = 1
+adjust_aspect = 0
+n64_z_scale = 1
+fix_tex_coord = 128
+depthmode = 0
+swapmode = 2
+fb_smart = 1
+fb_hires = 1
+
+[Blast Corps]
+depthmode = 1
+swapmode = 0
+fb_smart = 1
+fb_hires = 1
+fb_read_alpha = 1
+
+[Blastdozer]
+depthmode = 1
+swapmode = 0
+fb_smart = 1
+fb_hires = 1
+fb_read_alpha = 1
+
+[blitz2k]
+lodmode = 2
+
+[Body Harvest]
+depthmode = 1
+fb_smart = 1
+fb_hires = 1
+
+[BOMBERMAN64E]
+depthmode = 0
+fb_smart = 1
+fb_hires = 1
+
+[BOMBERMAN64U]
+depthmode = 0
+fb_smart = 1
+fb_hires = 1
+
+[BOMBERMAN64U2]
+filtering = 1
+depthmode = 0
+
+[Bottom of the 9th]
+optimize_texrect = 0
+filtering = 1
+depthmode = 0
+fb_smart = 1
+fb_hires = 1
+
+[BRUNSWICKBOWLING]
+depthmode = 0
+buff_clear = 0
+swapmode = 0
+
+[Bust A Move 3 DX]
+filtering = 2
+depthmode = 1
+
+[Bust A Move '99]
+filtering = 2
+depthmode = 1
+
+[Bust A Move 2]
+fix_tex_coord = 1
+filtering = 2
+depthmode = 1
+fog = 0
+
+[CARMAGEDDON64]
+wrap_big_tex = 1
+filtering = 1
+depthmode = 1
+
+[CASTLEVANIA]
+depthmode = 0
+fb_clear = 1
+old_style_adither = 1
+
+[CASTLEVANIA2]
+depthmode = 0
+fb_clear = 1
+
+[CENTRE COURT TENNIS]
+soft_depth_compare = 1
+depthmode = 0
+
+[Chameleon Twist2]
+filtering = 1
+depthmode = 0
+
+[CHOPPER_ATTACK]
+filtering = 1
+depthmode = 0
+
+[CITY TOUR GP]
+force_microcheck = 1
+filtering = 1
+depthmode = 1
+
+[Command&Conquer]
+fix_tex_coord = 1
+aspect = 2
+filtering = 1
+depthmode = 1
+fog = 0
+
+[CONKER BFD]
+optimize_texrect = 1
+ignore_previous = 1
+lodmode = 1
+filtering = 1
+depthmode = 0
+fb_smart = 1
+fb_hires = 1
+fb_clear = 1
+
+[Cruis'n USA]
+filtering = 1
+depthmode = 1
+fb_smart = 1
+fb_hires = 1
+fb_clear = 1
+
+[CruisnExotica]
+filtering = 1
+depthmode = 1
+buff_clear = 0
+swapmode = 0
+
+[custom robo]
+depthmode = 0
+fb_smart = 1
+fb_hires = 1
+
+[CUSTOMROBOV2]
+depthmode = 0
+fb_smart = 1
+fb_hires = 1
+
+[CyberTiger]
+fix_tex_coord = 16
+depthmode = 0
+
+[DAFFY DUCK STARRING]
+depthmode = 1
+wrap_big_tex = 1
+
+[DARK RIFT]
+force_microcheck = 1
+
+[DeadlyArts]
+soft_depth_compare = 1
+depthmode = 0
+fb_smart = 1
+fb_hires = 1
+clip_zmin = 1
+
+[DERBYSTALLION 64]
+fix_tex_coord = 1
+depthmode = 0
+
+[D K DISPLAY]
+depthmode = 1
+fb_clear = 1
+
+[Donald Duck Goin' Qu]
+detect_cpu_write = 1
+depthmode = 0
+
+[Donald Duck Quack At]
+detect_cpu_write = 1
+depthmode = 0
+
+[DONKEY KONG 64]
+lodmode = 1
+depth_bias = 64
+depthmode = 1
+fb_clear = 1
+
+[Doom64]
+fillcolor_fix = 1
+depthmode = 1
+
+;Doraemon - Mittsu no Seireiseki (J)
+[��״�� Я�ɾ�ڲ��]
+read_back_to_screen = 1
+depthmode = 1
+fb_smart = 1
+fb_hires = 1
+
+;Doraemon 3 - Nobita no Machi SOS! (J)
+[��״��3 �������SOS!]
+clip_zmin = 1
+
+[DR.MARIO 64]
+fix_tex_coord = 256
+optimize_write = 1
+read_back_to_screen = 1
+depthmode = 1
+fb_smart = 1
+fb_hires = 0
+
+[DRACULA MOKUSHIROKU]
+depthmode = 0
+fb_clear = 1
+
+[DRACULA MOKUSHIROKU2]
+depthmode = 0
+fb_clear = 1
+
+[Dual heroes JAPAN]
+filtering = 1
+depthmode = 0
+swapmode = 0
+
+[Dual heroes PAL]
+filtering = 1
+depthmode = 0
+swapmode = 0
+
+[Dual heroes USA]
+filtering = 1
+depthmode = 0
+swapmode = 0
+
+[DUKE NUKEM]
+increase_primdepth = 1
+depthmode = 0
+
+[EARTHWORM JIM 3D]
+increase_primdepth = 1
+filtering = 1
+depthmode = 0
+buff_clear = 0
+
+;Eikou no Saint Andrew
+[����ɾ�ı���ح��]
+correct_viewport = 1
+
+[Eltail]
+filtering = 2
+depthmode = 1
+
+[EVANGELION]
+depthmode = 1
+
+[EXCITEBIKE64]
+depthmode = 0
+fb_smart = 1
+fb_hires = 1
+
+[extreme_g]
+depthmode = 0
+fb_smart = 1
+fb_hires = 1
+
+[extremeg]
+depthmode = 0
+fb_smart = 1
+fb_hires = 1
+
+[����ذ�G2]
+depthmode = 0
+fb_smart = 1
+fb_hires = 1
+fb_clear = 1
+
+[Extreme G 2]
+depthmode = 0
+fb_smart = 1
+fb_hires = 1
+fb_clear = 1
+
+[F1 POLE POSITION 64]
+clip_zmin = 1
+filtering = 2
+depthmode = 1
+
+[F1RacingChampionship]
+depthmode = 0
+buff_clear = 0
+swapmode = 0
+
+[F1 WORLD GRAND PRIX]
+soft_depth_compare = 1
+wrap_big_tex = 1
+depthmode = 0
+buff_clear = 0
+
+[F1 WORLD GRAND PRIX2]
+wrap_big_tex = 1
+soft_depth_compare = 1
+depthmode = 0
+buff_clear = 0
+
+[F-ZERO X]
+depthmode = 1
+
+;Fushigi no Dungeon - Furai no Shiren 2 (J) 
+[F3 ̳ײɼ��2]
+decrease_fillrect_edge = 1
+depthmode = 0
+
+[Fighting Force]
+depthmode = 1
+
+[G.A.S.P!!Fighters'NE]
+soft_depth_compare = 1
+depthmode = 0
+fb_smart = 1
+fb_hires = 1
+clip_zmin = 1
+
+[GANBAKE GOEMON]
+optimize_texrect = 0
+alt_tex_size = 1
+filtering = 1
+depthmode = 1
+fb_smart = 1
+fb_hires = 1
+
+;Ganbare Goemon - Neo Momoyama Bakufu no Odori
+[������\ �޴��]
+optimize_texrect = 0
+alt_tex_size = 1
+filtering = 1
+depthmode = 1
+fb_smart = 1
+fb_hires = 1
+
+[GAUNTLET LEGENDS]
+depthmode = 1
+swapmode = 2
+
+[Getter Love!!]
+zmode_compare_less = 1
+texrect_compare_less = 1
+filtering = 2
+depthmode = 1
+
+[Gex 3 Deep Cover Gec]
+filtering = 1
+depthmode = 0
+
+[GEX: ENTER THE GECKO]
+filtering = 1
+depthmode = 0
+
+[Glover]
+filtering = 1
+depthmode = 0
+
+[GOEMON2 DERODERO]
+filtering = 1
+depthmode = 1
+fb_smart = 1
+fb_hires = 1
+
+[GOEMONS GREAT ADV]
+filtering = 1
+depthmode = 1
+fb_smart = 1
+fb_hires = 1
+
+[GOLDENEYE]
+lodmode = 1
+depth_bias = 40
+filtering = 1
+depthmode = 0
+fb_smart = 1
+fb_hires = 1
+
+[GOLDEN NUGGET 64]
+filtering = 2
+depthmode = 1
+
+[GT64]
+force_microcheck = 1
+filtering = 1
+depthmode = 1
+
+; Hamster Monogatori
+[�ѽ���ɶ���64]
+force_microcheck = 1
+depthmode = 0
+
+[HARVESTMOON64]
+zmode_compare_less = 1
+depthmode = 0
+fog = 0
+
+; Harvest Moon 64 JAP
+[�޸�ޮ��ɶ���2]
+zmode_compare_less = 1
+depthmode = 0
+fog = 0
+
+; Heiwa Pachinko World
+[HEIWA ���ݺ ܰ���64]
+depthmode = 0
+fog = 0
+swapmode = 2
+fb_smart = 1
+fb_hires = 1
+
+[HEXEN]
+detect_cpu_write = 1
+filtering = 1
+depthmode = 1
+buff_clear = 0
+swapmode = 2
+
+[HSV ADVENTURE RACING]
+wrap_big_tex = 1
+n64_z_scale = 1
+filtering = 1
+depthmode = 1
+fb_smart = 1
+fb_hires = 1
+
+[Holy Magic Century]
+filtering = 2
+depthmode = 1
+
+[HUMAN GRAND PRIX]
+filtering = 2
+depthmode = 0
+
+[�ׯĶ��� 64��ò���]
+filtering = 1
+depthmode = 0
+buff_clear = 0
+
+[Iggy's Reckin' Balls]
+fix_tex_coord = 512
+depthmode = 0
+
+[I S S 64]
+depthmode = 1
+swapmode = 2
+old_style_adither = 1
+
+[I.S.S.2000]
+depthmode = 1
+fb_smart = 1
+fb_hires = 1
+
+[ITF 2000]
+filtering = 1
+depthmode = 1
+fb_smart = 1
+fb_hires = 1
+
+[IT&F SUMMERGAMES]
+filtering = 1
+depthmode = 1
+fb_smart = 1
+fb_hires = 1
+
+[J_league 1997]
+fix_tex_coord = 1
+depthmode = 1
+swapmode = 0
+
+;J.League Eleven Beat 1997
+[Jذ��\ ������ް�1997]
+fb_smart=1
+fb_hires=1
+
+[J LEAGUE LIVE 64]
+wrap_big_tex = 1
+depthmode = 1
+
+[J WORLD SOCCER3]
+depthmode = 1
+swapmode = 2
+
+[JEREMY MCGRATH SUPER]
+depthmode = 0
+swapmode = 0
+
+[JET FORCE GEMINI]
+read_back_to_screen = 1
+decrease_fillrect_edge = 1
+alt_tex_size = 1
+depthmode = 1
+swapmode = 2
+fb_smart = 1
+fb_hires = 1
+
+[J F G DISPLAY]
+read_back_to_screen = 1
+decrease_fillrect_edge = 1
+alt_tex_size = 1
+depthmode = 1
+swapmode = 2
+fb_smart = 1
+fb_hires = 1
+
+[KEN GRIFFEY SLUGFEST]
+read_back_to_screen = 2
+depthmode = 1
+swapmode = 0
+fb_smart = 1
+fb_hires = 1
+
+[Kirby64]
+filtering = 1
+depthmode = 0
+buff_clear = 0
+swapmode = 0
+
+[Killer Instinct Gold]
+filtering = 1
+depthmode = 0
+fog = 0
+buff_clear = 0
+
+[KNIFE EDGE]
+wrap_big_tex = 1
+fast_crc = 0
+filtering = 1
+depthmode = 1
+
+[Knockout Kings 2000]
+fb_info_disable = 1
+depthmode = 1
+fb_smart = 1
+fb_hires = 1
+fb_clear = 1
+fb_read_alpha = 1
+
+[LAMBORGHINI]
+use_sts1_only = 1
+
+[LCARS - WT_Riker]
+depthmode = 1
+
+[LEGORacers]
+detect_cpu_write = 1
+depthmode = 1
+buff_clear = 0
+fb_smart = 1
+fb_hires = 1
+fb_read_alpha = 1
+
+[LET'S SMASH]
+soft_depth_compare = 1
+depthmode = 0
+
+[Lode Runner 3D] 
+swapmode = 0
+
+[LT DUCK DODGERS]
+wrap_big_tex = 1
+depthmode = 1
+
+[MACE]
+fix_tex_coord = 8
+filtering = 1
+depthmode = 1
+
+[MAGICAL TETRIS]
+force_microcheck = 1
+depthmode = 1
+fog = 0
+
+;Mahjong Master (J)
+[ϰ�ެ� Ͻ��]
+n64_z_scale = 1
+texrect_compare_less = 1
+zmode_compare_less = 1
+
+[MAJORA'S MASK]
+wrap_big_tex = 1
+filtering = 1
+depthmode = 1
+fb_smart = 1
+fb_hires = 1
+fb_clear = 1
+fb_crc_mode = 0
+
+[MARIOKART64]
+fast_crc = 0
+stipple_mode = 1
+stipple_pattern = 4286595040
+depthmode = 1
+
+[MarioGolf64]
+fb_info_disable = 1
+ignore_aux_copy = 1
+buff_clear = 0
+depthmode = 0
+fb_smart = 1
+fb_hires = 1
+fb_clear = 1
+
+[MarioParty]
+clip_zmin = 1
+depthmode = 0
+swapmode = 2
+
+[MarioParty2]
+depthmode = 0
+swapmode = 2
+
+[MarioParty3]
+fix_tex_coord = 1
+depthmode = 0
+
+[MARIO STORY]
+useless_is_useless = 1
+hires_buf_clear = 0
+optimize_texrect = 0
+filtering = 1
+depthmode = 1
+swapmode = 2
+fb_smart = 1
+fb_hires = 1
+fb_read_alpha = 1
+
+[MASTERS'98]
+wrap_big_tex = 1
+depthmode = 0
+fb_smart = 1
+fb_hires = 1
+
+[Mega Man 64]
+increase_texrect_edge = 1
+depthmode = 1
+fb_smart = 1
+fb_hires = 1
+
+[MGAH VOL1]
+force_microcheck = 1
+depthmode = 1
+zmode_compare_less = 1
+fb_smart = 1
+
+[Mia Hamm Soccer 64]
+buff_clear = 0
+
+[MICKEY USA]
+alt_tex_size = 1
+depthmode = 1
+fb_smart = 1
+fb_hires = 1
+fb_clear = 1
+
+[MICKEY USA PAL]
+alt_tex_size = 1
+depthmode = 1
+fb_smart = 1
+fb_hires = 1
+fb_clear = 1
+
+[MICROMACHINES64TURBO]
+depthmode = 0
+
+[Mini Racers]
+force_microcheck = 1
+buff_clear = 0
+fb_smart = 1
+fb_hires = 1
+swapmode = 0
+
+[MISCHIEF MAKERS]
+tex_wrap_hack = 0
+depthmode = 1
+fog = 0
+
+[MLB FEATURING K G JR]
+read_back_to_screen = 2
+depthmode = 1
+
+[MK_MYTHOLOGIES]
+depthmode = 1
+
+[MO WORLD LEAGUE SOCC]
+buff_clear = 0
+
+[Monaco GP Racing 2]
+depthmode = 0
+buff_clear = 0
+
+[Monaco Grand Prix]
+depthmode = 0
+buff_clear = 0
+
+;Morita Shogi 64
+[��������64]
+correct_viewport = 1
+
+[MortalKombatTrilogy]
+filtering = 2
+depthmode = 1
+
+[MS. PAC-MAN MM]
+detect_cpu_write = 1
+depthmode = 1
+
+[MYSTICAL NINJA]
+alt_tex_size = 1
+optimize_texrect = 0
+filtering = 1
+depthmode = 1
+fb_smart = 1
+fb_hires = 1
+
+[MYSTICAL NINJA2 SG]
+alt_tex_size = 1
+optimize_texrect = 0
+filtering = 1
+depthmode = 1
+fb_smart = 1
+fb_hires = 1
+
+[NASCAR 99]
+depthmode = 0
+buff_clear = 0
+swapmode = 0
+
+[NASCAR 2000]
+depthmode = 0
+buff_clear = 0
+swapmode = 0
+
+[NBA Courtside 2]
+depthmode = 0
+buff_clear = 0
+swapmode = 0
+
+[NBA JAM 2000]
+buff_clear = 0
+
+[NBA JAM 99]
+buff_clear = 0
+
+[NBA LIVE 2000]
+adjust_aspect = 0
+
+[NBA Live 99]
+swapmode = 0
+adjust_aspect = 0
+
+[NEWTETRIS]
+pal230 = 1
+fix_tex_coord = 1
+increase_texrect_edge = 1
+depthmode = 0
+fog = 0
+
+[NFL BLITZ]
+lodmode = 2
+
+[NFL BLITZ 2001]
+lodmode = 2
+
+[NFL BLITZ SPECIAL ED]
+lodmode = 2
+
+[NFL QBC '99]
+force_depth_compare = 1
+wrap_big_tex = 1
+depthmode = 0
+
+[NFL QBC 2000]
+wrap_big_tex = 1
+depthmode = 0
+swapmode = 0
+
+[NFL Quarterback Club]
+wrap_big_tex = 1
+depthmode = 0
+swapmode = 0
+
+[NINTAMAGAMEGALLERY64]
+force_microcheck = 1
+depthmode = 0
+
+[NITRO64] 
+fb_smart = 1 
+fb_hires = 1
+
+[NUCLEARSTRIKE64]
+buff_clear = 0
+
+; Nushi Zuri 64
+[Ǽ���64]
+force_microcheck = 1
+wrap_big_tex = 0
+depthmode = 0
+buff_clear = 0
+
+[OgreBattle64]
+fb_info_disable = 1
+force_depth_compare = 1
+depthmode = 1
+
+[PACHINKO365NICHI]
+correct_viewport = 1
+
+[PAPER MARIO]
+useless_is_useless = 1
+hires_buf_clear = 0
+optimize_texrect = 0
+filtering = 1
+depthmode = 1
+swapmode = 2
+fb_smart = 1
+fb_hires = 1
+fb_read_alpha = 1
+
+[Parlor PRO 64]
+force_microcheck = 1
+filtering = 1
+depthmode = 1
+
+[Perfect Dark]
+useless_is_useless = 1
+decrease_fillrect_edge = 1
+optimize_texrect = 0
+filtering = 1
+depthmode = 1
+fb_smart = 1
+fb_hires = 1
+fb_clear = 1
+
+[PERFECT STRIKER]
+depthmode = 1
+swapmode = 2
+
+[Pilot Wings64]
+depthmode = 1
+buff_clear = 0
+
+[PUZZLE LEAGUE N64]
+PPL = 1
+force_microcheck = 1
+fix_tex_coord = 1
+filtering = 2
+depthmode = 1
+fog = 0
+buff_clear = 0
+fb_smart = 1
+fb_hires = 0
+fb_read_alpha = 1
+
+[PUZZLE LEAGUE]
+PPL = 1
+force_microcheck = 1
+fix_tex_coord = 1
+filtering = 2
+depthmode = 1
+fog = 0
+buff_clear = 0
+fb_smart = 1
+fb_hires = 0
+fb_read_alpha = 1
+
+[POKEMON SNAP]
+fast_crc = 0
+depthmode = 1
+fb_smart = 1
+fb_hires = 0
+fb_clear = 1
+
+[POKEMON STADIUM]
+optimize_texrect = 0
+depthmode = 1
+fast_crc = 0
+buff_clear = 0
+fb_smart = 1
+fb_hires = 0
+fb_read_alpha = 1
+fb_crc_mode = 2
+
+[POKEMON STADIUM 2]
+optimize_texrect = 0
+swapmode = 2
+depthmode = 1
+fast_crc = 0
+buff_clear = 0
+fb_smart = 1
+fb_hires = 1
+fb_read_alpha = 1
+fb_crc_mode = 2
+
+[POKEMON STADIUM G&S]
+optimize_texrect = 0
+depthmode = 1
+fast_crc = 0
+buff_clear = 0
+fb_smart = 1
+fb_hires = 0
+fb_read_alpha = 1
+fb_crc_mode = 2
+
+[POLARISSNOCROSS]
+fix_tex_coord = 5
+depthmode = 1
+
+[PowerLeague64]
+force_quad3d = 1
+
+[Quake]
+force_microcheck = 1
+swapmode = 2
+buff_clear = 0
+
+[QUAKE II]
+fb_smart = 1
+fb_hires = 1
+
+[quarterback_club_98]
+optimize_texrect = 0
+hires_buf_clear = 0
+filtering = 1
+depthmode = 1
+swapmode = 0
+buff_clear = 0
+fb_smart = 1
+fb_hires = 1
+fb_read_alpha = 1
+
+[Quest 64]
+depthmode = 1
+
+[Racing Simulation 2] 
+depthmode = 0
+buff_clear = 0
+
+[RAINBOW SIX]
+increase_texrect_edge = 1
+depthmode = 1
+
+[Rally'99]
+filtering = 1
+depthmode = 1
+buff_clear = 0
+fb_smart = 1
+fb_hires = 1
+
+[RALLY CHALLENGE]
+filtering = 1
+depthmode = 1
+buff_clear = 0
+fb_smart = 1
+fb_hires = 1
+
+[Rayman 2]
+depthmode = 0
+detect_cpu_write = 1
+
+[READY 2 RUMBLE]
+fix_tex_coord = 64
+depthmode = 0
+
+[Ready to Rumble]
+fix_tex_coord = 1
+depthmode = 0
+
+[Resident Evil II]
+detect_cpu_write = 1
+adjust_aspect = 0
+n64_z_scale = 1
+fix_tex_coord = 128
+depthmode = 0
+swapmode = 2
+fb_smart = 1
+fb_hires = 1
+
+[Re-Volt]
+texture_correction = 0
+depthmode = 1
+
+[RIDGE RACER 64]
+force_calc_sphere = 1
+depthmode = 0
+fb_smart = 1
+fb_hires = 1
+
+[ROAD RASH 64]
+depthmode = 0
+swapmode = 2
+
+[Robopon64]
+depthmode = 0
+fb_smart = 1
+fb_hires = 1
+
+[ROCKETROBOTONWHEELS]
+clip_zmin = 1
+
+[RockMan Dash]
+increase_texrect_edge = 1
+depthmode = 1
+fb_smart = 1
+fb_hires = 1
+
+[RONALDINHO SOCCER]
+depthmode = 1
+swapmode = 2
+old_style_adither = 1
+
+[RTL WLS2000]
+buff_clear = 0
+
+[RUGRATS IN PARIS]
+depthmode = 1
+
+[RUSH 2049]
+force_texrect_zbuf = 1
+filtering = 1
+depthmode = 0
+
+[SCARS]
+filtering = 1
+depthmode = 0
+
+[SD HIRYU STADIUM]
+force_microcheck = 1
+depthmode = 0
+
+[Shadow of the Empire]
+swapmode = 2
+
+[Shadowman]
+depthmode = 0
+
+[Silicon Valley]
+filtering = 1
+depthmode = 0
+
+[Snobow Kids 2]
+swapmode = 0
+filtering = 1
+
+[SNOWBOARD KIDS2]
+swapmode = 0
+filtering = 1
+
+[South Park: Chef's L]
+fix_tex_coord = 4
+filtering = 2
+depthmode = 1
+fog = 0
+buff_clear = 0
+
+[South Park Chef's Lu]
+fix_tex_coord = 4
+filtering = 1
+depthmode = 1
+fog = 0
+buff_clear = 0
+
+[SPACE DYNAMITES] 
+force_microcheck = 1
+
+[SPIDERMAN]
+fast_crc = 0
+
+[STARCRAFT 64]
+detect_cpu_write = 1
+aspect = 2
+filtering = 2
+depthmode = 1
+fog = 0
+
+[STAR SOLDIER]
+force_microcheck = 1
+filtering = 1
+depthmode = 1
+swapmode = 0
+
+[STAR TWINS]
+read_back_to_screen = 1
+decrease_fillrect_edge = 1
+alt_tex_size = 1
+depthmode = 1
+swapmode = 2
+fb_smart = 1
+fb_hires = 1
+
+[STAR WARS EP1 RACER]
+swapmode = 2
+
+[SUPERROBOTSPIRITS]
+aspect = 2
+
+;Super Robot Taisen 64 (J)
+[���߰��ޯ�����64]
+fast_crc = 0
+use_sts1_only = 1
+fb_smart = 1
+fb_hires = 1
+
+[Supercross]
+depthmode = 1
+buff_clear = 0
+
+[SUPER MARIO 64]
+depth_bias = 32
+lodmode = 1
+filtering = 1
+depthmode = 1
+
+[SUPERMARIO64]
+depth_bias = 32
+lodmode = 1
+filtering = 1
+depthmode = 1
+
+[SUPERMAN]
+detect_cpu_write = 1
+
+;Susume! Taisen Puzzle Dama Toukon! Marumata Chou (J) 
+[���!�����߽�����]
+force_microcheck = 1
+depthmode = 1
+fog = 0
+swapmode = 0
+
+;Tamagotchi World 64 (J) 
+[������Ϻޯ�ܰ���]
+use_sts1_only = 1
+depthmode = 0
+fog = 0
+
+[Taz Express]
+filtering = 1
+depthmode = 0
+buff_clear = 0
+
+[TELEFOOT SOCCER 2000]
+buff_clear = 0
+
+[TETRISPHERE]
+alt_tex_size = 1
+use_sts1_only = 1
+increase_texrect_edge = 1
+depthmode = 1
+fb_smart = 1
+fb_hires = 1
+fb_crc_mode = 2
+
+[TG RALLY 2]
+filtering = 1
+depthmode = 1
+buff_clear = 0
+swapmode = 2
+
+[THE LEGEND OF ZELDA]
+depth_bias = 60
+filtering = 1
+depthmode = 1
+fb_smart = 1
+fb_hires = 1
+fb_clear = 1
+
+[THE MASK OF MUJURA]
+wrap_big_tex = 1
+filtering = 1
+depthmode = 1
+fb_smart = 1
+fb_hires = 1
+fb_clear = 1
+fb_crc_mode = 0
+
+[THPS2]
+filtering = 1
+depthmode = 0
+
+[THPS3]
+filtering = 1
+depthmode = 0
+
+[Tigger's Honey Hunt]
+zmode_compare_less = 1
+depthmode = 0
+buff_clear = 0
+
+[TOM AND JERRY]
+depth_bias = 2
+filtering = 1
+depthmode = 0
+
+[Tonic Trouble]
+depthmode = 0
+detect_cpu_write = 1
+
+[TONY HAWK PRO SKATER]
+filtering = 1
+depthmode = 0
+
+[TONY HAWK SKATEBOARD]
+filtering = 1
+depthmode = 0
+
+[Top Gear Hyper Bike]
+fb_info_disable = 1
+swapmode = 2
+depthmode = 0
+fb_smart = 1
+fb_hires = 1
+fb_clear = 1
+
+[Top Gear Overdrive]
+fb_info_disable = 1
+depthmode = 0
+buff_clear = 0
+
+[TOP GEAR RALLY]
+depth_bias = 64
+fillcolor_fix = 1
+depthmode = 0
+
+[TOP GEAR RALLY 2]
+filtering = 1
+depthmode = 1
+buff_clear = 0
+swapmode = 2
+
+[TRIPLE PLAY 2000]
+wrap_big_tex = 1
+depthmode = 0
+fb_smart = 1
+fb_hires = 1
+
+[TROUBLE MAKERS]
+mischief_tex_hack = 0
+depthmode = 1
+fog = 0
+
+[TSUMI TO BATSU]
+filtering = 1
+depthmode = 1
+fb_smart = 1
+fb_hires = 1
+fb_clear = 1
+
+[TSUWAMONO64]
+force_microcheck = 1
+depthmode = 0
+
+[TWINE]
+filtering = 1
+depthmode = 0
+
+[TWISTED EDGE]
+depthmode = 1
+fb_smart = 1
+fb_hires = 1
+fb_clear = 1
+
+[Ultraman Battle JAPA]
+depthmode = 0
+
+[Virtual Pool 64]
+depthmode = 1
+buff_clear = 0
+
+[V-RALLY]
+fix_tex_coord = 3
+filtering = 1
+depthmode = 0
+buff_clear = 0
+swapmode = 0
+
+[Waialae Country Club]
+wrap_big_tex = 1
+depthmode = 0
+fb_smart = 1
+fb_hires = 1
+
+[WAVE RACE 64]
+pal230 = 1
+
+[WILD CHOPPERS]
+filtering = 1
+depthmode = 0
+
+[Wipeout 64]
+filtering = 1
+depthmode = 0
+swapmode = 2
+
+[WONDER PROJECT J2]
+depthmode = 0
+buff_clear = 0
+swapmode = 0
+
+[World Cup 98] 
+depthmode = 0
+swapmode = 0
+fb_smart = 1
+fb_hires = 1
+
+[WRESTLEMANIA 2000]
+depthmode = 0
+
+[YAKOUTYUU2]
+depthmode = 0
+
+[YOSHI STORY]
+fix_tex_coord = 32
+filtering = 1
+depthmode = 1
+fog = 0
+
+[ZELDA MAJORA'S MASK]
+wrap_big_tex = 1
+filtering = 1
+depthmode = 1
+fb_smart = 1
+fb_hires = 1
+fb_clear = 1
+fb_crc_mode = 0
+
+[ZELDA MASTER QUEST]
+depth_bias = 60
+filtering = 1
+depthmode = 1
+fb_smart = 1
+fb_hires = 1
+fb_clear = 1
+
+;End Of Original File

File projects/unix/Makefile

+#/* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
+# *   Mupen64plus-video-glide64 - Makefile                                  *
+# *   Mupen64Plus homepage: http://code.google.com/p/mupen64plus/           *
+# *   Copyright (C) 2010 Jon Ring                                           *
+# *   Copyright (C) 2007-2009 Richard Goedeken                              *
+# *   Copyright (C) 2007-2008 DarkJeztr Tillin9                             *
+# *                                                                         *
+# *   This program is free software; you can redistribute it and/or modify  *
+# *   it under the terms of the GNU General Public License as published by  *
+# *   the Free Software Foundation; either version 2 of the License, or     *
+# *   (at your option) any later version.                                   *
+# *                                                                         *
+# *   This program is distributed in the hope that it will be useful,       *
+# *   but WITHOUT ANY WARRANTY; without even the implied warranty of        *
+# *   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the         *
+# *   GNU General Public License for more details.                          *
+# *                                                                         *
+# *   You should have received a copy of the GNU General Public License     *
+# *   along with this program; if not, write to the                         *
+# *   Free Software Foundation, Inc.,                                       *
+# *   51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.          *
+# * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */
+# Makefile for Glide64mk2 plugin in Mupen64Plus
+
+# detect operating system
+UNAME ?= $(shell uname -s)
+OS := NONE
+ifeq ("$(UNAME)","Linux")
+  OS = LINUX
+  SO_EXTENSION = so
+  SHARED = -shared
+endif
+ifeq ("$(UNAME)","linux")
+  OS = LINUX
+  SO_EXTENSION = so
+  SHARED = -shared
+endif
+ifneq ("$(filter GNU hurd,$(UNAME))","")
+  OS = LINUX
+  SO_EXTENSION = so
+  SHARED = -shared
+endif
+ifeq ("$(UNAME)","Darwin")
+  OS = OSX
+  SO_EXTENSION = dylib
+  SHARED = -bundle
+endif
+ifeq ("$(UNAME)","FreeBSD")
+  OS = FREEBSD
+  SO_EXTENSION = so
+  SHARED = -shared
+endif
+ifeq ("$(UNAME)","OpenBSD")
+  OS = FREEBSD
+  SO_EXTENSION = so
+  SHARED = -shared
+  $(warning OS type "$(UNAME)" not officially supported.')
+endif
+ifneq ("$(filter GNU/kFreeBSD kfreebsd,$(UNAME))","")
+  OS = LINUX
+  SO_EXTENSION = so
+  SHARED = -shared
+endif
+ifeq ("$(patsubst MINGW%,MINGW,$(UNAME))","MINGW")
+  OS = MINGW
+  SO_EXTENSION = dll
+  SHARED = -shared
+  PIC = 0
+endif
+ifeq ("$(OS)","NONE")
+  $(error OS type "$(UNAME)" not supported.  Please file bug report at 'http://code.google.com/p/mupen64plus/issues')
+endif
+
+# detect system architecture
+HOST_CPU ?= $(shell uname -m)
+CPU := NONE
+ifneq ("$(filter x86_64 amd64,$(HOST_CPU))","")
+  CPU := X86
+  ifeq ("$(BITS)", "32")
+    ARCH_DETECTED := 64BITS_32
+    PIC ?= 0
+  else
+    ARCH_DETECTED := 64BITS
+    PIC ?= 1
+  endif
+endif
+ifneq ("$(filter pentium i%86,$(HOST_CPU))","")
+  CPU := X86
+  ARCH_DETECTED := 32BITS
+  PIC ?= 0
+endif
+ifneq ("$(filter ppc powerpc,$(HOST_CPU))","")
+  CPU := PPC
+  ARCH_DETECTED := 32BITS
+  BIG_ENDIAN := 1
+  PIC ?= 1
+  NO_ASM := 1
+  $(warning Architecture "$(HOST_CPU)" not officially supported.')
+endif
+ifneq ("$(filter ppc64 powerpc64,$(HOST_CPU))","")
+  CPU := PPC
+  ARCH_DETECTED := 64BITS
+  BIG_ENDIAN := 1
+  PIC ?= 1
+  NO_ASM := 1
+  $(warning Architecture "$(HOST_CPU)" not officially supported.')
+endif
+ifneq ("$(filter arm%,$(HOST_CPU))","")
+  ifeq ("$(filter arm%b,$(HOST_CPU))","")
+    CPU := ARM
+    ARCH_DETECTED := 32BITS
+    PIC ?= 1
+    NO_ASM := 1
+    $(warning Architecture "$(HOST_CPU)" not officially supported.')
+  endif
+endif
+ifeq ("$(CPU)","NONE")
+  $(error CPU type "$(HOST_CPU)" not supported.  Please file bug report at 'http://code.google.com/p/mupen64plus/issues')
+endif
+
+# base CFLAGS, LDLIBS, and LDFLAGS
+OPTFLAGS ?= -O3
+WARNFLAGS ?= -Wall
+CFLAGS += $(OPTFLAGS) $(WARNFLAGS) -ffast-math -fno-strict-aliasing -I../../src -I../../src/Glitch64/inc -DGCC
+CXXFLAGS += -fvisibility-inlines-hidden
+LDFLAGS += $(SHARED)
+
+# default configuration programs
+SDL_CONFIG = $(CROSS_COMPILE)sdl-config
+PKG_CONFIG = $(CROSS_COMPILE)pkg-config
+
+# Since we are building a shared library, we must compile with -fPIC on some architectures
+# On 32-bit x86 systems we do not want to use -fPIC because we don't have to and it has a big performance penalty on this arch
+ifeq ($(PIC), 1)
+  CFLAGS += -fPIC
+  LDFLAGS += -fPIC
+else
+  CFLAGS += -fno-PIC
+  LDFLAGS += -fno-PIC
+endif
+
+ifeq ($(BIG_ENDIAN), 1)
+  CFLAGS += -DM64P_BIG_ENDIAN
+endif
+
+# tweak flags for 32-bit build on 64-bit system
+ifeq ($(ARCH_DETECTED), 64BITS_32)
+  ifeq ($(OS), FREEBSD)
+    $(error Do not use the BITS=32 option with FreeBSD, use -m32 and -m elf_i386)
+  endif
+  CFLAGS += -m32
+  LDFLAGS += -m32 -Wl,-m,elf_i386
+endif
+
+# set special flags per-system
+ifeq ($(OS), LINUX)
+  # only export api symbols
+  LDFLAGS += -Wl,-version-script,$(SRCDIR)/video_api_export.ver
+  LDLIBS += -ldl
+endif
+ifeq ($(OS), OSX)
+  # Select the proper SDK
+  # Also, SDKs are stored in a different location since XCode 4.3
+  OSX_SDK ?= $(shell sw_vers -productVersion | cut -f1 -f2 -d .)
+  OSX_XCODEMAJ = $(shell xcodebuild -version | grep '[0-9]*\.[0-9]*' | cut -f2 -d ' ' | cut -f1 -d .)
+  OSX_XCODEMIN = $(shell xcodebuild -version | grep '[0-9]*\.[0-9]*' | cut -f2 -d ' ' | cut -f2 -d .)
+  OSX_XCODEGE43 = $(shell echo "`expr $(OSX_XCODEMAJ) \>= 4``expr $(OSX_XCODEMIN) \>= 3`")
+  ifeq ($(OSX_XCODEGE43), 11)
+    OSX_SYSROOT := /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs
+  else
+    OSX_SYSROOT := /Developer/SDKs
+  endif
+
+  ifeq ($(CPU), X86)
+    ifeq ($(ARCH_DETECTED), 64BITS)
+      CFLAGS += -pipe -arch x86_64 -mmacosx-version-min=$(OSX_SDK) -isysroot $(OSX_SYSROOT)/MacOSX$(OSX_SDK).sdk
+      LDFLAGS += -bundle -arch x86_64
+      LDLIBS += -ldl
+    else
+      CFLAGS += -pipe -fomit-frame-pointer -arch i686 -mmacosx-version-min=$(OSX_SDK) -isysroot $(OSX_SYSROOT)/MacOSX$(OSX_SDK).sdk
+      LDFLAGS += -bundle -arch i686
+      LDLIBS += -ldl
+    endif
+  endif
+endif
+ifeq ($(OS), FREEBSD)
+  LDLIBS += -lc
+endif
+
+# search for OpenGL libraries
+GL_LIBS=
+ifeq ($(OS), OSX)
+  GL_LIBS = -framework OpenGL
+endif
+ifeq ($(OS), MINGW)
+  GL_LIBS = -lopengl32
+endif
+ifeq ("$(GL_LIBS)", "")
+  ifeq ($(shell which $(PKG_CONFIG) 2>/dev/null),)
+    $(error $(PKG_CONFIG) not found)
+  endif
+  ifeq ($(shell $(PKG_CONFIG) --modversion gl 2>/dev/null),)
+    $(error No OpenGL development libraries found!)
+  endif
+  CFLAGS += $(shell $(PKG_CONFIG) --cflags gl)
+  GL_LIBS = $(shell $(PKG_CONFIG) --libs gl)
+endif
+LDLIBS += $(GL_LIBS)
+
+# test for presence of SDL
+ifeq ($(shell which $(SDL_CONFIG) 2>/dev/null),)
+  $(error No SDL development libraries found!)
+endif
+ifeq ($(OS),FREEBSD)
+    CFLAGS  += $(shell $(SDL_CONFIG) --cflags) -D__unix__
+    LDLIBS += $(shell $(SDL_CONFIG) --libs)
+endif
+ifeq ($(OS),OSX)
+    CFLAGS  += $(shell $(SDL_CONFIG) --cflags) -D__unix__
+    # sdl-config on mac screws up when we're trying to build a library and not an executable
+    # SDL 1.3 is supposed to fix that, if it's ever released
+    LDLIBS += -L/usr/local/lib -lSDL -Wl,-framework,Cocoa
+endif
+ifeq ($(OS),LINUX)
+    CFLAGS  += $(shell $(SDL_CONFIG) --cflags) -D__unix__
+    LDLIBS += $(shell $(SDL_CONFIG) --libs)
+endif
+ifeq ($(OS), MINGW)
+  CFLAGS += $(shell $(SDL_CONFIG) --cflags)
+  LDLIBS += $(shell $(SDL_CONFIG) --libs)
+endif
+
+# set mupen64plus core API header path
+ifneq ("$(APIDIR)","")
+  CFLAGS += "-I$(APIDIR)"
+else
+  TRYDIR = ../../../mupen64plus-core/src/api
+  ifneq ("$(wildcard $(TRYDIR)/m64p_types.h)","")
+    CFLAGS += -I$(TRYDIR)
+  else
+    TRYDIR = /usr/local/include/mupen64plus
+    ifneq ("$(wildcard $(TRYDIR)/m64p_types.h)","")
+      CFLAGS += -I$(TRYDIR)
+    else
+      TRYDIR = /usr/include/mupen64plus
+      ifneq ("$(wildcard $(TRYDIR)/m64p_types.h)","")
+        CFLAGS += -I$(TRYDIR)
+      else
+        $(error Mupen64Plus API header files not found! Use makefile parameter APIDIR to force a location.)
+      endif
+    endif
+  endif
+endif
+
+# reduced compile output when running make without V=1
+ifneq ($(findstring $(MAKEFLAGS),s),s)
+ifndef V
+	Q_CC  = @echo '    CC  '$@;
+	Q_CXX = @echo '    CXX '$@;
+	Q_LD  = @echo '    LD  '$@;
+endif
+endif
+
+# set base program pointers and flags
+CC        = $(CROSS_COMPILE)gcc
+CXX       = $(CROSS_COMPILE)g++
+RM       ?= rm -f
+INSTALL  ?= install
+MKDIR ?= mkdir -p
+COMPILE.c = $(Q_CC)$(CC) $(CFLAGS) $(CPPFLAGS) $(TARGET_ARCH) -c
+COMPILE.cc = $(Q_CXX)$(CXX) $(CXXFLAGS) $(CPPFLAGS) $(TARGET_ARCH) -c
+LINK.o = $(Q_LD)$(CXX) $(LDFLAGS) $(TARGET_ARCH)
+
+# set special flags for given Makefile parameters
+ifeq ($(DEBUG),1)
+  CFLAGS += -g
+  INSTALL_STRIP_FLAG ?= 
+else
+  INSTALL_STRIP_FLAG ?= -s
+endif
+ifeq ($(NO_ASM), 1)
+  CFLAGS += -DNO_ASM
+endif
+
+# set installation options
+ifeq ($(PREFIX),)
+  PREFIX := /usr/local
+endif
+ifeq ($(SHAREDIR),)
+  SHAREDIR := $(PREFIX)/share/mupen64plus
+endif
+ifeq ($(LIBDIR),)
+  LIBDIR := $(PREFIX)/lib
+endif
+ifeq ($(PLUGINDIR),)
+  PLUGINDIR := $(LIBDIR)/mupen64plus
+endif
+
+SRCDIR = ../../src
+OBJDIR = _obj$(POSTFIX)
+
+# list of source files to compile
+SOURCE = \
+	$(SRCDIR)/Glitch64/combiner.cpp \
+	$(SRCDIR)/Glitch64/geometry.cpp \
+	$(SRCDIR)/Glitch64/main.cpp \
+	$(SRCDIR)/Glitch64/textures.cpp \
+	$(SRCDIR)/Glitch64/vram.cpp \
+	$(SRCDIR)/Glide64/3dmath.cpp \
+	$(SRCDIR)/Glide64/Combine.cpp \
+	$(SRCDIR)/Glide64/Config.cpp \
+	$(SRCDIR)/Glide64/CRC.cpp \
+	$(SRCDIR)/Glide64/Debugger.cpp \
+	$(SRCDIR)/Glide64/DepthBufferRender.cpp \
+	$(SRCDIR)/Glide64/Ext_TxFilter.cpp \
+	$(SRCDIR)/Glide64/FBtoScreen.cpp \
+	$(SRCDIR)/Glide64/Ini.cpp \
+	$(SRCDIR)/Glide64/Keys.cpp \
+	$(SRCDIR)/Glide64/Main.cpp \
+	$(SRCDIR)/Glide64/rdp.cpp \
+	$(SRCDIR)/Glide64/TexBuffer.cpp \
+	$(SRCDIR)/Glide64/TexCache.cpp \
+	$(SRCDIR)/Glide64/TexLoad32b.cpp \
+	$(SRCDIR)/Glide64/Util.cpp
+
+ifeq ($(OS),MINGW)
+SOURCE += $(SRCDIR)/Glide64/osal_dynamiclib_win32.c
+else
+SOURCE += $(SRCDIR)/Glide64/osal_dynamiclib_unix.c
+endif
+
+
+
+# generate a list of object files build, make a temporary directory for them
+OBJECTS := $(patsubst $(SRCDIR)/%.c, $(OBJDIR)/%.o, $(filter %.c, $(SOURCE)))
+OBJECTS += $(patsubst $(SRCDIR)/%.cpp, $(OBJDIR)/%.o, $(filter %.cpp, $(SOURCE)))
+OBJDIRS = $(dir $(OBJECTS))
+$(shell $(MKDIR) $(OBJDIRS))
+
+# build targets
+TARGET = mupen64plus-video-glide64mk2$(POSTFIX).$(SO_EXTENSION)
+
+targets:
+	@echo "Mupen64plus-video-glide64mk2 N64 Graphics plugin makefile. "
+	@echo "  Targets:"
+	@echo "    all           == Build Mupen64plus-video-glide64mk2 plugin"
+	@echo "    clean         == remove object files"
+	@echo "    rebuild       == clean and re-build all"
+	@echo "    install       == Install Mupen64Plus-video-glide64mk2 plugin"
+	@echo "    uninstall     == Uninstall Mupen64Plus-video-glide64mk2 plugin"
+	@echo "  Options:"
+	@echo "    BITS=32       == build 32-bit binaries on 64-bit machine"
+	@echo "    NO_ASM=1      == build without inline assembly code (x86 MMX/SSE)"
+	@echo "    APIDIR=path   == path to find Mupen64Plus Core headers"
+	@echo "    OPTFLAGS=flag == compiler optimization (default: -O3)"
+	@echo "    WARNFLAGS=flag == compiler warning levels (default: -Wall)"
+	@echo "    PIC=(1|0)     == Force enable/disable of position independent code"
+	@echo "    POSTFIX=name  == String added to the name of the the build (default: '')"
+	@echo "  Install Options:"
+	@echo "    PREFIX=path   == install/uninstall prefix (default: /usr/local)"
+	@echo "    SHAREDIR=path == path to install shared data files (default: PREFIX/share/mupen64plus)"
+	@echo "    LIBDIR=path   == library prefix (default: PREFIX/lib)"
+	@echo "    PLUGINDIR=path == path to install plugin libraries (default: LIBDIR/mupen64plus)"
+	@echo "    DESTDIR=path  == path to prepend to all installation paths (only for packagers)"
+	@echo "  Debugging Options:"
+	@echo "    DEBUG=1       == add debugging symbols"
+	@echo "    LTO=1         == enable experimental build with link-time optimization"
+	@echo "    V=1           == show verbose compiler output"
+
+all: $(TARGET)
+
+install: $(TARGET)
+	$(INSTALL) -d "$(DESTDIR)$(PLUGINDIR)"
+	$(INSTALL) -m 0644 $(INSTALL_STRIP_FLAG) $(TARGET) "$(DESTDIR)$(PLUGINDIR)"
+	$(INSTALL) -d "$(DESTDIR)$(SHAREDIR)"
+	$(INSTALL) -m 0644 "../../data/Glide64mk2.ini" "$(DESTDIR)$(SHAREDIR)"
+
+uninstall:
+	$(RM) "$(DESTDIR)$(PLUGINDIR)/$(TARGET)"
+	$(RM) "$(DESTDIR)$(SHAREDIR)/Glide64mk2.ini"
+
+clean:
+	$(RM) -r $(OBJDIR) $(TARGET)
+
+rebuild: clean all
+
+# build dependency files
+CFLAGS += -MD
+-include $(OBJECTS:.o=.d)
+
+CXXFLAGS += $(CFLAGS)
+ifeq ($(LTO), 1)
+  CFLAGS += -flto
+  CXXFLAGS += -flto
+  LDFLAGS += -fuse-linker-plugin $(CXXFLAGS)
+endif
+
+# standard build rules
+$(OBJDIR)/%.o: $(SRCDIR)/%.c
+	$(COMPILE.c) -o $@ $<
+
+$(OBJDIR)/%.o: $(SRCDIR)/%.cpp
+	$(COMPILE.cc) -o $@ $<
+
+$(TARGET): $(OBJECTS)
+	$(LINK.o) $^ $(LOADLIBES) $(LDLIBS) -o $@
+
+.PHONY: all clean install uninstall targets

File src/Glide64/config/Glide64mk2.ini

-;_____________________________________________________________________
-; SETTINGS:
-; This section contains the plugin settings, such as
-; resolution.
-;
-; resolution - specifies which resolution to use
-;  Resolutions are as follows:
-; 0  - 320, 200
-; 1  - 320, 240
-; 2  - 400, 256
-; 3  - 512, 384
-; 4  - 640, 200
-; 5  - 640, 350
-; 6  - 640, 400
-; 7  - 640, 480
-; 8  - 800, 600
-; 9  - 960, 720
-; 10 - 856, 480
-; 11 - 512, 256
-; 12 - 1024, 768
-; 13 - 1280, 1024
-; 14 - 1600, 1200
-; 15 - 400, 300
-; 16 - 1152, 864
-; 17 - 1280, 960
-; 18 - 1600, 1024
-; 19 - 1792, 1344
-; 20 - 1856, 1392
-; 21 - 1920, 1440
-; 22 - 2048, 1536
-; 23 - 2048, 2048
-; Note: some video cards or monitors do not support all
-; resolutions!
-;
-; Note#2:For compatibility issues always distribute this
-; file with the resolution: 640, 480 (7)  
-;
-
-[SETTINGS]
-card_id = 0
-resolution=8
-filter_cache = 0
-autodetect_ucode = 1
-ucode = 2
-wireframe = 0
-wfmode=1
-filtering = 1
-depthmode = 0
-fog = 1
-buff_clear = 1
-vsync = 1
-swapmode = 1
-run_in_window = 0