# Copyright (C) 2001-2005, 2007, 2008 by David A. Capello -*-Makefile-*- ###################################################################### # ASE ASE = aseprite$(EXE) COMMON_SOURCES = \ src/commands/cmd_about.c \ src/commands/cmd_advanced_mode.c \ src/commands/cmd_cel_properties.c \ src/commands/cmd_change_image_type.c \ src/commands/cmd_clear.c \ src/commands/cmd_close_file.c \ src/commands/cmd_configure_screen.c \ src/commands/cmd_configure_tools.c \ src/commands/cmd_copy.c \ src/commands/cmd_copy_cel.c \ src/commands/cmd_crop.c \ src/commands/cmd_cut.c \ src/commands/cmd_deselect_mask.c \ src/commands/cmd_draw_text.c \ src/commands/cmd_drawing_tools.c \ src/commands/cmd_duplicate_layer.c \ src/commands/cmd_duplicate_sprite.c \ src/commands/cmd_exchange_colors.c \ src/commands/cmd_exit.c \ src/commands/cmd_eyedropper_tool.c \ src/commands/cmd_film_editor.c \ src/commands/cmd_flatten_layers.c \ src/commands/cmd_flip.c \ src/commands/cmd_frame_properties.c \ src/commands/cmd_goto_frame.c \ src/commands/cmd_grid.c \ src/commands/cmd_invert_mask.c \ src/commands/cmd_layer_properties.c \ src/commands/cmd_link_cel.c \ src/commands/cmd_load_mask.c \ src/commands/cmd_mask_all.c \ src/commands/cmd_mask_by_color.c \ src/commands/cmd_merge_down_layer.c \ src/commands/cmd_move_cel.c \ src/commands/cmd_new_cel.c \ src/commands/cmd_new_file.c \ src/commands/cmd_new_frame.c \ src/commands/cmd_new_layer.c \ src/commands/cmd_new_layer_set.c \ src/commands/cmd_open_file.c \ src/commands/cmd_options.c \ src/commands/cmd_palette_editor.c \ src/commands/cmd_paste.c \ src/commands/cmd_play_animation.c \ src/commands/cmd_play_flic.c \ src/commands/cmd_preview.c \ src/commands/cmd_record_screen.c \ src/commands/cmd_redo.c \ src/commands/cmd_refresh.c \ src/commands/cmd_remove_cel.c \ src/commands/cmd_remove_frame.c \ src/commands/cmd_remove_layer.c \ src/commands/cmd_reselect_mask.c \ src/commands/cmd_run_script.c \ src/commands/cmd_save_file.c \ src/commands/cmd_save_file_as.c \ src/commands/cmd_save_mask.c \ src/commands/cmd_screen_shot.c \ src/commands/cmd_select_file.c \ src/commands/cmd_sprite_editor.c \ src/commands/cmd_sprite_properties.c \ src/commands/cmd_tips.c \ src/commands/cmd_undo.c \ src/commands/commands.c \ src/commands/fx/cmd_color_curve.c \ src/commands/fx/cmd_convolution_matrix.c \ src/commands/fx/cmd_despeckle.c \ src/commands/fx/cmd_invert_color.c \ src/commands/fx/cmd_replace_color.c \ src/console/console.c \ src/core/app.c \ src/core/cfg.c \ src/core/config.c \ src/core/core.c \ src/core/dirs.c \ src/core/file_system.c \ src/core/modules.c \ src/dialogs/canvasze.c \ src/dialogs/colsel.c \ src/dialogs/dpaledit.c \ src/dialogs/drawtext.c \ src/dialogs/filesel.c \ src/dialogs/filmedit.c \ src/dialogs/maskcol.c \ src/dialogs/minipal.c \ src/dialogs/options.c \ src/dialogs/playfli.c \ src/dialogs/quick.c \ src/dialogs/repo.c \ src/dialogs/tips.c \ src/dialogs/vectmap.c \ src/effect/colcurve.c \ src/effect/convmatr.c \ src/effect/effect.c \ src/effect/invrtcol.c \ src/effect/median.c \ src/effect/replcol.c \ src/file/ase_format.c \ src/file/bmp_format.c \ src/file/file.c \ src/file/fli/fli.c \ src/file/fli_format.c \ src/file/gif/format.c \ src/file/gif/lzw.c \ src/file/gif_format.c \ src/file/ico_format.c \ src/file/jpeg_format.c \ src/file/pcx_format.c \ src/file/png_format.c \ src/file/tga_format.c \ src/intl/intl.c \ src/intl/msgids.c \ src/jinete/jaccel.c \ src/jinete/jalert.c \ src/jinete/jbox.c \ src/jinete/jbutton.c \ src/jinete/jclipboard.c \ src/jinete/jcombobox.c \ src/jinete/jdraw.c \ src/jinete/jentry.c \ src/jinete/jgrid.c \ src/jinete/jfile.c \ src/jinete/jfilesel.c \ src/jinete/jfont.c \ src/jinete/jfontbmp.c \ src/jinete/jhook.c \ src/jinete/jimage.c \ src/jinete/jintern.c \ src/jinete/jlabel.c \ src/jinete/jlist.c \ src/jinete/jlistbox.c \ src/jinete/jmanager.c \ src/jinete/jmem.c \ src/jinete/jmenu.c \ src/jinete/jmessage.c \ src/jinete/jmutex.c \ src/jinete/jpanel.c \ src/jinete/jquickmenu.c \ src/jinete/jrect.c \ src/jinete/jregion.c \ src/jinete/jsep.c \ src/jinete/jslider.c \ src/jinete/jstream.c \ src/jinete/jsystem.c \ src/jinete/jtextbox.c \ src/jinete/jtheme.c \ src/jinete/jthread.c \ src/jinete/jtooltips.c \ src/jinete/jview.c \ src/jinete/jwidget.c \ src/jinete/jwindow.c \ src/jinete/jxml.c \ src/jinete/themes/jstandard_theme.c \ src/modules/color.c \ src/modules/editors.c \ src/modules/gfx.c \ src/modules/gui.c \ src/modules/palette.c \ src/modules/recent.c \ src/modules/rootmenu.c \ src/modules/sprites.c \ src/modules/tools.c \ src/modules/tools2.c \ src/raster/algo.c \ src/raster/algofill.c \ src/raster/blend.c \ src/raster/brush.c \ src/raster/cel.c \ src/raster/dirty.c \ src/raster/gfxobj.c \ src/raster/image.c \ src/raster/layer.c \ src/raster/mask.c \ src/raster/path.c \ src/raster/quant.c \ src/raster/rotate.c \ src/raster/sprite.c \ src/raster/stock.c \ src/raster/undo.c \ src/script/bindings.c \ src/script/functions.c \ src/script/script.c \ src/util/autocrop.c \ src/util/boundary.c \ src/util/celmove.c \ src/util/clipbrd.c \ src/util/col_file.c \ src/util/crop.c \ src/util/filetoks.c \ src/util/hash.c \ src/util/misc.c \ src/util/msk_file.c \ src/util/pic_file.c \ src/util/quantize.c \ src/util/recscr.c \ src/util/render.c \ src/util/thmbnail.c \ src/widgets/colbar.c \ src/widgets/colbut.c \ src/widgets/colsel2.c \ src/widgets/colview.c \ src/widgets/curvedit.c \ src/widgets/editor/click.c \ src/widgets/editor/cursor.c \ src/widgets/editor/editor.c \ src/widgets/editor/keys.c \ src/widgets/fileview.c \ src/widgets/groupbut.c \ src/widgets/menuitem.c \ src/widgets/paledit.c \ src/widgets/preview.c \ src/widgets/statebar.c \ src/widgets/tabs.c \ src/widgets/target.c \ src/widgets/toolbar.c ifdef USE_X86_INT_MULT COMMON_SOURCES += src/raster/x86/int_mult.s endif COMMON_OBJS = $(addprefix $(OBJ_DIR)/, \ $(addsuffix $(OBJ), \ $(notdir $(basename $(COMMON_SOURCES))))) ASE_SOURCES = src/main.c $(COMMON_SOURCES) ASE_OBJS = $(addprefix $(OBJ_DIR)/, \ $(addsuffix $(OBJ), \ $(notdir $(basename $(ASE_SOURCES))))) ###################################################################### # Libart LIBART_LIB = $(OBJ_DIR)/libart$(LIB) LIBART_DIR = third_party/libart_lgpl LIBART_SOURCES = \ $(LIBART_DIR)/art_affine.c \ $(LIBART_DIR)/art_alphagamma.c \ $(LIBART_DIR)/art_bpath.c \ $(LIBART_DIR)/art_gray_svp.c \ $(LIBART_DIR)/art_misc.c \ $(LIBART_DIR)/art_pixbuf.c \ $(LIBART_DIR)/art_rect.c \ $(LIBART_DIR)/art_rect_svp.c \ $(LIBART_DIR)/art_rect_uta.c \ $(LIBART_DIR)/art_render.c \ $(LIBART_DIR)/art_render_gradient.c \ $(LIBART_DIR)/art_render_svp.c \ $(LIBART_DIR)/art_rgba.c \ $(LIBART_DIR)/art_rgb_affine.c \ $(LIBART_DIR)/art_rgb_affine_private.c \ $(LIBART_DIR)/art_rgb_bitmap_affine.c \ $(LIBART_DIR)/art_rgb.c \ $(LIBART_DIR)/art_rgb_pixbuf_affine.c \ $(LIBART_DIR)/art_rgb_rgba_affine.c \ $(LIBART_DIR)/art_rgb_svp.c \ $(LIBART_DIR)/art_svp.c \ $(LIBART_DIR)/art_svp_ops.c \ $(LIBART_DIR)/art_svp_point.c \ $(LIBART_DIR)/art_svp_render_aa.c \ $(LIBART_DIR)/art_svp_vpath.c \ $(LIBART_DIR)/art_svp_vpath_stroke.c \ $(LIBART_DIR)/art_svp_wind.c \ $(LIBART_DIR)/art_uta.c \ $(LIBART_DIR)/art_uta_ops.c \ $(LIBART_DIR)/art_uta_rect.c \ $(LIBART_DIR)/art_uta_svp.c \ $(LIBART_DIR)/art_uta_vpath.c \ $(LIBART_DIR)/art_vpath_bpath.c \ $(LIBART_DIR)/art_vpath.c \ $(LIBART_DIR)/art_vpath_dash.c \ $(LIBART_DIR)/art_vpath_svp.c \ $(LIBART_DIR)/libart-features.c LIBART_OBJS = $(addprefix $(OBJ_DIR)/art., \ $(addsuffix $(OBJ), \ $(notdir $(basename $(LIBART_SOURCES))))) ###################################################################### # Freetype LIBFREETYPE_LIB = $(OBJ_DIR)/libfreetype$(LIB) LIBFREETYPE_DIR = third_party/freetype LIBFREETYPE_SOURCES = \ $(LIBFREETYPE_DIR)/src/base/ftsystem.c \ $(LIBFREETYPE_DIR)/src/base/ftdebug.c \ $(LIBFREETYPE_DIR)/src/base/ftinit.c \ $(LIBFREETYPE_DIR)/src/base/ftbase.c \ $(LIBFREETYPE_DIR)/src/base/ftglyph.c \ $(LIBFREETYPE_DIR)/src/base/ftmm.c \ $(LIBFREETYPE_DIR)/src/base/ftbbox.c \ $(LIBFREETYPE_DIR)/src/autohint/autohint.c \ $(LIBFREETYPE_DIR)/src/cache/ftcache.c \ $(LIBFREETYPE_DIR)/src/cff/cff.c \ $(LIBFREETYPE_DIR)/src/cid/type1cid.c \ $(LIBFREETYPE_DIR)/src/pcf/pcf.c \ $(LIBFREETYPE_DIR)/src/psaux/psaux.c \ $(LIBFREETYPE_DIR)/src/pshinter/pshinter.c \ $(LIBFREETYPE_DIR)/src/psnames/psmodule.c \ $(LIBFREETYPE_DIR)/src/raster/raster.c \ $(LIBFREETYPE_DIR)/src/sfnt/sfnt.c \ $(LIBFREETYPE_DIR)/src/smooth/smooth.c \ $(LIBFREETYPE_DIR)/src/truetype/truetype.c \ $(LIBFREETYPE_DIR)/src/type1/type1.c \ $(LIBFREETYPE_DIR)/src/winfonts/winfnt.c LIBFREETYPE_OBJS = $(addprefix $(OBJ_DIR)/freetype., \ $(addsuffix $(OBJ), \ $(notdir $(basename $(LIBFREETYPE_SOURCES))))) ###################################################################### # GD Library LIBGD_LIB = $(OBJ_DIR)/libgd$(LIB) LIBGD_DIR = third_party/gd LIBGD_SOURCES = \ $(LIBGD_DIR)/gd \ $(LIBGD_DIR)/gdfx \ $(LIBGD_DIR)/gd_security \ $(LIBGD_DIR)/gd_gd \ $(LIBGD_DIR)/gd_gd2 \ $(LIBGD_DIR)/gd_io \ $(LIBGD_DIR)/gd_io_dp \ $(LIBGD_DIR)/gd_gif_in \ $(LIBGD_DIR)/gd_gif_out \ $(LIBGD_DIR)/gd_io_file \ $(LIBGD_DIR)/gd_io_ss \ $(LIBGD_DIR)/gd_jpeg \ $(LIBGD_DIR)/gd_png \ $(LIBGD_DIR)/gd_ss \ $(LIBGD_DIR)/gd_topal \ $(LIBGD_DIR)/gd_wbmp \ $(LIBGD_DIR)/gdcache \ $(LIBGD_DIR)/gdfontg \ $(LIBGD_DIR)/gdfontl \ $(LIBGD_DIR)/gdfontmb \ $(LIBGD_DIR)/gdfonts \ $(LIBGD_DIR)/gdfontt \ $(LIBGD_DIR)/gdft \ $(LIBGD_DIR)/gdhelpers \ $(LIBGD_DIR)/gdkanji \ $(LIBGD_DIR)/gdtables \ $(LIBGD_DIR)/gdxpm \ $(LIBGD_DIR)/wbmp LIBGD_OBJS = $(addprefix $(OBJ_DIR)/gd., \ $(addsuffix $(OBJ), \ $(notdir $(basename $(LIBGD_SOURCES))))) ###################################################################### # Lua LIBLUA_LIB = $(OBJ_DIR)/liblua$(LIB) LIBLUA_DIR = third_party/lua LIBLUA_SOURCES = \ $(LIBLUA_DIR)/src/lapi.c \ $(LIBLUA_DIR)/src/lcode.c \ $(LIBLUA_DIR)/src/ldebug.c \ $(LIBLUA_DIR)/src/ldo.c \ $(LIBLUA_DIR)/src/ldump.c \ $(LIBLUA_DIR)/src/lfunc.c \ $(LIBLUA_DIR)/src/lgc.c \ $(LIBLUA_DIR)/src/llex.c \ $(LIBLUA_DIR)/src/lmem.c \ $(LIBLUA_DIR)/src/lobject.c \ $(LIBLUA_DIR)/src/lopcodes.c \ $(LIBLUA_DIR)/src/lparser.c \ $(LIBLUA_DIR)/src/lstate.c \ $(LIBLUA_DIR)/src/lstring.c \ $(LIBLUA_DIR)/src/ltable.c \ $(LIBLUA_DIR)/src/ltests.c \ $(LIBLUA_DIR)/src/ltm.c \ $(LIBLUA_DIR)/src/lundump.c \ $(LIBLUA_DIR)/src/lvm.c \ $(LIBLUA_DIR)/src/lzio.c \ $(LIBLUA_DIR)/src/lib/lauxlib.c \ $(LIBLUA_DIR)/src/lib/lbaselib.c LIBLUA_OBJS = $(addprefix $(OBJ_DIR)/lua., \ $(addsuffix $(OBJ), \ $(notdir $(basename $(LIBLUA_SOURCES))))) ###################################################################### # JPEG LIBJPEG_LIB = $(OBJ_DIR)/libjpeg$(LIB) LIBJPEG_DIR = third_party/jpeg LIBJPEG_SOURCES = \ $(LIBJPEG_DIR)/jcapimin.c \ $(LIBJPEG_DIR)/jcapistd.c \ $(LIBJPEG_DIR)/jccoefct.c \ $(LIBJPEG_DIR)/jccolor.c \ $(LIBJPEG_DIR)/jcdctmgr.c \ $(LIBJPEG_DIR)/jchuff.c \ $(LIBJPEG_DIR)/jcinit.c \ $(LIBJPEG_DIR)/jcmainct.c \ $(LIBJPEG_DIR)/jcmarker.c \ $(LIBJPEG_DIR)/jcmaster.c \ $(LIBJPEG_DIR)/jcomapi.c \ $(LIBJPEG_DIR)/jcparam.c \ $(LIBJPEG_DIR)/jcphuff.c \ $(LIBJPEG_DIR)/jcprepct.c \ $(LIBJPEG_DIR)/jcsample.c \ $(LIBJPEG_DIR)/jctrans.c \ $(LIBJPEG_DIR)/jdapimin.c \ $(LIBJPEG_DIR)/jdapistd.c \ $(LIBJPEG_DIR)/jdatadst.c \ $(LIBJPEG_DIR)/jdatasrc.c \ $(LIBJPEG_DIR)/jdcoefct.c \ $(LIBJPEG_DIR)/jdcolor.c \ $(LIBJPEG_DIR)/jddctmgr.c \ $(LIBJPEG_DIR)/jdhuff.c \ $(LIBJPEG_DIR)/jdinput.c \ $(LIBJPEG_DIR)/jdmainct.c \ $(LIBJPEG_DIR)/jdmarker.c \ $(LIBJPEG_DIR)/jdmaster.c \ $(LIBJPEG_DIR)/jdmerge.c \ $(LIBJPEG_DIR)/jdphuff.c \ $(LIBJPEG_DIR)/jdpostct.c \ $(LIBJPEG_DIR)/jdsample.c \ $(LIBJPEG_DIR)/jdtrans.c \ $(LIBJPEG_DIR)/jerror.c \ $(LIBJPEG_DIR)/jfdctflt.c \ $(LIBJPEG_DIR)/jfdctfst.c \ $(LIBJPEG_DIR)/jfdctint.c \ $(LIBJPEG_DIR)/jidctflt.c \ $(LIBJPEG_DIR)/jidctfst.c \ $(LIBJPEG_DIR)/jidctint.c \ $(LIBJPEG_DIR)/jidctred.c \ $(LIBJPEG_DIR)/jmemansi.c \ $(LIBJPEG_DIR)/jmemmgr.c \ $(LIBJPEG_DIR)/jquant1.c \ $(LIBJPEG_DIR)/jquant2.c \ $(LIBJPEG_DIR)/jutils.c LIBJPEG_OBJS = $(addprefix $(OBJ_DIR)/jpeg., \ $(addsuffix $(OBJ), \ $(notdir $(basename $(LIBJPEG_SOURCES))))) ###################################################################### # LibPNG LIBPNG_LIB = $(OBJ_DIR)/libpng$(LIB) LIBPNG_DIR = third_party/libpng LIBPNG_SOURCES = \ $(LIBPNG_DIR)/png.c \ $(LIBPNG_DIR)/pngerror.c \ $(LIBPNG_DIR)/pngget.c \ $(LIBPNG_DIR)/pngmem.c \ $(LIBPNG_DIR)/pngpread.c \ $(LIBPNG_DIR)/pngread.c \ $(LIBPNG_DIR)/pngrio.c \ $(LIBPNG_DIR)/pngrtran.c \ $(LIBPNG_DIR)/pngrutil.c \ $(LIBPNG_DIR)/pngset.c \ $(LIBPNG_DIR)/pngtrans.c \ $(LIBPNG_DIR)/pngwio.c \ $(LIBPNG_DIR)/pngwrite.c \ $(LIBPNG_DIR)/pngwtran.c \ $(LIBPNG_DIR)/pngwutil.c LIBPNG_OBJS = $(addprefix $(OBJ_DIR)/png., \ $(addsuffix $(OBJ), \ $(notdir $(basename $(LIBPNG_SOURCES))))) ###################################################################### # ZLib ZLIB_LIB = $(OBJ_DIR)/libzlib$(LIB) ZLIB_DIR = third_party/zlib ZLIB_SOURCES = \ $(ZLIB_DIR)/adler32.c \ $(ZLIB_DIR)/compress.c \ $(ZLIB_DIR)/crc32.c \ $(ZLIB_DIR)/deflate.c \ $(ZLIB_DIR)/gzio.c \ $(ZLIB_DIR)/infback.c \ $(ZLIB_DIR)/inffast.c \ $(ZLIB_DIR)/inflate.c \ $(ZLIB_DIR)/inftrees.c \ $(ZLIB_DIR)/trees.c \ $(ZLIB_DIR)/uncompr.c \ $(ZLIB_DIR)/zutil.c ZLIB_OBJS = $(addprefix $(OBJ_DIR)/zlib., \ $(addsuffix $(OBJ), \ $(notdir $(basename $(ZLIB_SOURCES))))) ###################################################################### # All objects and libraries ALL_OBJS = \ $(ASE_OBJS) \ $(LIBLUA_OBJS) \ $(LIBFREETYPE_OBJS) \ $(LIBART_OBJS) \ $(LIBPNG_OBJS) \ $(ZLIB_OBJS) THIRD_PARTY_LIBS = \ $(LIBART_LIB) \ $(LIBFREETYPE_LIB) \ $(LIBJPEG_LIB) \ $(LIBLUA_LIB) \ $(LIBPNG_LIB) \ $(ZLIB_LIB)