提交 85d0f410 编写于 作者: M Ming, Bai

Continue updating CRLF

上级 ef321158
# #
# FreeType 2 build system -- top-level Makefile # FreeType 2 build system -- top-level Makefile
# #
# Copyright 1996-2000, 2002, 2006 by # Copyright 1996-2000, 2002, 2006 by
# David Turner, Robert Wilhelm, and Werner Lemberg. # David Turner, Robert Wilhelm, and Werner Lemberg.
# #
# This file is part of the FreeType project, and may only be used, modified, # This file is part of the FreeType project, and may only be used, modified,
# and distributed under the terms of the FreeType project license, # and distributed under the terms of the FreeType project license,
# LICENSE.TXT. By continuing to use, modify, or distribute this file you # LICENSE.TXT. By continuing to use, modify, or distribute this file you
# indicate that you have read the license and understand and accept it # indicate that you have read the license and understand and accept it
# fully. # fully.
# Project names # Project names
# #
PROJECT := freetype PROJECT := freetype
PROJECT_TITLE := FreeType PROJECT_TITLE := FreeType
# The variable TOP_DIR holds the path to the topmost directory in the project # The variable TOP_DIR holds the path to the topmost directory in the project
# engine source hierarchy. If it is not defined, default it to `.'. # engine source hierarchy. If it is not defined, default it to `.'.
# #
TOP_DIR ?= . TOP_DIR ?= .
# The variable OBJ_DIR gives the location where object files and the # The variable OBJ_DIR gives the location where object files and the
# FreeType library are built. # FreeType library are built.
# #
OBJ_DIR ?= $(TOP_DIR)/objs OBJ_DIR ?= $(TOP_DIR)/objs
include $(TOP_DIR)/builds/toplevel.mk include $(TOP_DIR)/builds/toplevel.mk
# EOF # EOF
# #
# Makefile for FreeType2 link library using ppc-morphos-gcc-2.95.3-bin.tgz # Makefile for FreeType2 link library using ppc-morphos-gcc-2.95.3-bin.tgz
# (gcc 2.95.3 hosted on 68k-Amiga producing MorphOS-PPC-binaries from # (gcc 2.95.3 hosted on 68k-Amiga producing MorphOS-PPC-binaries from
# http://www.morphos.de) # http://www.morphos.de)
# #
# Copyright 2005, 2006, 2007, 2009 by # Copyright 2005, 2006, 2007, 2009 by
# Werner Lemberg and Detlef Wrkner. # Werner Lemberg and Detlef Wrkner.
# #
# This file is part of the FreeType project, and may only be used, modified, # This file is part of the FreeType project, and may only be used, modified,
# and distributed under the terms of the FreeType project license, # and distributed under the terms of the FreeType project license,
# LICENSE.TXT. By continuing to use, modify, or distribute this file you # LICENSE.TXT. By continuing to use, modify, or distribute this file you
# indicate that you have read the license and understand and accept it # indicate that you have read the license and understand and accept it
# fully. # fully.
# #
# to build from the builds/amiga directory call # to build from the builds/amiga directory call
# #
# make assign # make assign
# make # make
# #
# Your programs source code should start with this # Your programs source code should start with this
# (uncomment the parts you do not need to keep the program small): # (uncomment the parts you do not need to keep the program small):
# ---8<--- # ---8<---
#define FT_USE_AUTOFIT // autofitter #define FT_USE_AUTOFIT // autofitter
#define FT_USE_RASTER // monochrome rasterizer #define FT_USE_RASTER // monochrome rasterizer
#define FT_USE_SMOOTH // anti-aliasing rasterizer #define FT_USE_SMOOTH // anti-aliasing rasterizer
#define FT_USE_TT // truetype font driver #define FT_USE_TT // truetype font driver
#define FT_USE_T1 // type1 font driver #define FT_USE_T1 // type1 font driver
#define FT_USE_T42 // type42 font driver #define FT_USE_T42 // type42 font driver
#define FT_USE_T1CID // cid-keyed type1 font driver #define FT_USE_T1CID // cid-keyed type1 font driver
#define FT_USE_CFF // opentype font driver #define FT_USE_CFF // opentype font driver
#define FT_USE_BDF // bdf bitmap font driver #define FT_USE_BDF // bdf bitmap font driver
#define FT_USE_PCF // pcf bitmap font driver #define FT_USE_PCF // pcf bitmap font driver
#define FT_USE_PFR // pfr font driver #define FT_USE_PFR // pfr font driver
#define FT_USE_WINFNT // windows .fnt|.fon bitmap font driver #define FT_USE_WINFNT // windows .fnt|.fon bitmap font driver
#define FT_USE_OTV // opentype validator #define FT_USE_OTV // opentype validator
#define FT_USE_GXV // truetype gx validator #define FT_USE_GXV // truetype gx validator
#include "FT:src/base/ftinit.c" #include "FT:src/base/ftinit.c"
# ---8<--- # ---8<---
# #
# link your programs with libft2_ppc.a and either ftsystem.ppc.o or ftsystempure.ppc.o # link your programs with libft2_ppc.a and either ftsystem.ppc.o or ftsystempure.ppc.o
# (and either ftdebug.ppc.o or ftdebugpure.ppc.o if you enabled FT_DEBUG_LEVEL_ERROR or # (and either ftdebug.ppc.o or ftdebugpure.ppc.o if you enabled FT_DEBUG_LEVEL_ERROR or
# FT_DEBUG_LEVEL_TRACE in include/freetype/config/ftoption.h). # FT_DEBUG_LEVEL_TRACE in include/freetype/config/ftoption.h).
all: libft2_ppc.a ftsystem.ppc.o ftsystempure.ppc.o all: libft2_ppc.a ftsystem.ppc.o ftsystempure.ppc.o
assign: assign:
assign FT: // assign FT: //
FTSRC = /FT/src FTSRC = /FT/src
CC = ppc-morphos-gcc CC = ppc-morphos-gcc
AR = ppc-morphos-ar rc AR = ppc-morphos-ar rc
RANLIB = ppc-morphos-ranlib RANLIB = ppc-morphos-ranlib
LD = ppc-morphos-ld LD = ppc-morphos-ld
CFLAGS = -DFT2_BUILD_LIBRARY -O2 -I/emu/emulinclude/includegcc -I/emu/include -Iinclude -I$(FTSRC) -I/FT/include CFLAGS = -DFT2_BUILD_LIBRARY -O2 -I/emu/emulinclude/includegcc -I/emu/include -Iinclude -I$(FTSRC) -I/FT/include
# #
# FreeType2 library base # FreeType2 library base
# #
ftbase.ppc.o: $(FTSRC)/base/ftbase.c ftbase.ppc.o: $(FTSRC)/base/ftbase.c
$(CC) -c $(CFLAGS) -o $@ $< $(CC) -c $(CFLAGS) -o $@ $<
ftinit.ppc.o: $(FTSRC)/base/ftinit.c ftinit.ppc.o: $(FTSRC)/base/ftinit.c
$(CC) -c $(CFLAGS) -o $@ $< $(CC) -c $(CFLAGS) -o $@ $<
ftsystem.ppc.o: $(FTSRC)/base/ftsystem.c ftsystem.ppc.o: $(FTSRC)/base/ftsystem.c
$(CC) -c $(CFLAGS) -o $@ $< $(CC) -c $(CFLAGS) -o $@ $<
# pure version for use in run-time library etc # pure version for use in run-time library etc
ftsystempure.ppc.o: src/base/ftsystem.c ftsystempure.ppc.o: src/base/ftsystem.c
$(CC) -c $(CFLAGS) -o $@ $< $(CC) -c $(CFLAGS) -o $@ $<
ftdebug.ppc.o: $(FTSRC)/base/ftdebug.c ftdebug.ppc.o: $(FTSRC)/base/ftdebug.c
$(CC) -c $(CFLAGS) -o $@ $< $(CC) -c $(CFLAGS) -o $@ $<
# pure version for use in run-time library etc # pure version for use in run-time library etc
ftdebugpure.ppc.o: src/base/ftdebug.c ftdebugpure.ppc.o: src/base/ftdebug.c
$(CC) -c $(CFLAGS) -o $@ $< $(CC) -c $(CFLAGS) -o $@ $<
# #
# FreeType2 library base extensions # FreeType2 library base extensions
# #
ftbbox.ppc.o: $(FTSRC)/base/ftbbox.c ftbbox.ppc.o: $(FTSRC)/base/ftbbox.c
$(CC) -c $(CFLAGS) -o $@ $< $(CC) -c $(CFLAGS) -o $@ $<
ftbdf.ppc.o: $(FTSRC)/base/ftbdf.c ftbdf.ppc.o: $(FTSRC)/base/ftbdf.c
$(CC) -c $(CFLAGS) -o $@ $< $(CC) -c $(CFLAGS) -o $@ $<
ftbitmap.ppc.o: $(FTSRC)/base/ftbitmap.c ftbitmap.ppc.o: $(FTSRC)/base/ftbitmap.c
$(CC) -c $(CFLAGS) -o $@ $< $(CC) -c $(CFLAGS) -o $@ $<
ftcid.ppc.o: $(FTSRC)/base/ftcid.c ftcid.ppc.o: $(FTSRC)/base/ftcid.c
$(CC) -c $(CFLAGS) -o $@ $< $(CC) -c $(CFLAGS) -o $@ $<
ftfstype.ppc.o: $(FTSRC)/base/ftfstype.c ftfstype.ppc.o: $(FTSRC)/base/ftfstype.c
$(CC) -c $(CFLAGS) -o $@ $< $(CC) -c $(CFLAGS) -o $@ $<
ftgasp.ppc.o: $(FTSRC)/base/ftgasp.c ftgasp.ppc.o: $(FTSRC)/base/ftgasp.c
$(CC) -c $(CFLAGS) -o $@ $< $(CC) -c $(CFLAGS) -o $@ $<
ftglyph.ppc.o: $(FTSRC)/base/ftglyph.c ftglyph.ppc.o: $(FTSRC)/base/ftglyph.c
$(CC) -c $(CFLAGS) -o $@ $< $(CC) -c $(CFLAGS) -o $@ $<
ftgxval.ppc.o: $(FTSRC)/base/ftgxval.c ftgxval.ppc.o: $(FTSRC)/base/ftgxval.c
$(CC) -c $(CFLAGS) -o $@ $< $(CC) -c $(CFLAGS) -o $@ $<
ftlcdfil.ppc.o: $(FTSRC)/base/ftlcdfil.c ftlcdfil.ppc.o: $(FTSRC)/base/ftlcdfil.c
$(CC) -c $(CFLAGS) -o $@ $< $(CC) -c $(CFLAGS) -o $@ $<
ftmm.ppc.o: $(FTSRC)/base/ftmm.c ftmm.ppc.o: $(FTSRC)/base/ftmm.c
$(CC) -c $(CFLAGS) -o $@ $< $(CC) -c $(CFLAGS) -o $@ $<
ftotval.ppc.o: $(FTSRC)/base/ftotval.c ftotval.ppc.o: $(FTSRC)/base/ftotval.c
$(CC) -c $(CFLAGS) -o $@ $< $(CC) -c $(CFLAGS) -o $@ $<
ftpatent.ppc.o: $(FTSRC)/base/ftpatent.c ftpatent.ppc.o: $(FTSRC)/base/ftpatent.c
$(CC) -c $(CFLAGS) -o $@ $< $(CC) -c $(CFLAGS) -o $@ $<
ftpfr.ppc.o: $(FTSRC)/base/ftpfr.c ftpfr.ppc.o: $(FTSRC)/base/ftpfr.c
$(CC) -c $(CFLAGS) -o $@ $< $(CC) -c $(CFLAGS) -o $@ $<
ftstroke.ppc.o: $(FTSRC)/base/ftstroke.c ftstroke.ppc.o: $(FTSRC)/base/ftstroke.c
$(CC) -c $(CFLAGS) -o $@ $< $(CC) -c $(CFLAGS) -o $@ $<
ftsynth.ppc.o: $(FTSRC)/base/ftsynth.c ftsynth.ppc.o: $(FTSRC)/base/ftsynth.c
$(CC) -c $(CFLAGS) -o $@ $< $(CC) -c $(CFLAGS) -o $@ $<
fttype1.ppc.o: $(FTSRC)/base/fttype1.c fttype1.ppc.o: $(FTSRC)/base/fttype1.c
$(CC) -c $(CFLAGS) -o $@ $< $(CC) -c $(CFLAGS) -o $@ $<
ftwinfnt.ppc.o: $(FTSRC)/base/ftwinfnt.c ftwinfnt.ppc.o: $(FTSRC)/base/ftwinfnt.c
$(CC) -c $(CFLAGS) -o $@ $< $(CC) -c $(CFLAGS) -o $@ $<
ftxf86.ppc.o: $(FTSRC)/base/ftxf86.c ftxf86.ppc.o: $(FTSRC)/base/ftxf86.c
$(CC) -c $(CFLAGS) -o $@ $< $(CC) -c $(CFLAGS) -o $@ $<
# #
# FreeType2 library autofitting module # FreeType2 library autofitting module
# #
autofit.ppc.o: $(FTSRC)/autofit/autofit.c autofit.ppc.o: $(FTSRC)/autofit/autofit.c
$(CC) -c $(CFLAGS) -o $@ $< $(CC) -c $(CFLAGS) -o $@ $<
# #
# FreeType2 library postscript hinting module # FreeType2 library postscript hinting module
# #
pshinter.ppc.o: $(FTSRC)/pshinter/pshinter.c pshinter.ppc.o: $(FTSRC)/pshinter/pshinter.c
$(CC) -c $(CFLAGS) -o $@ $< $(CC) -c $(CFLAGS) -o $@ $<
# #
# FreeType2 library PS support module # FreeType2 library PS support module
# #
psaux.ppc.o: $(FTSRC)/psaux/psaux.c psaux.ppc.o: $(FTSRC)/psaux/psaux.c
$(CC) -c $(CFLAGS) -o $@ $< $(CC) -c $(CFLAGS) -o $@ $<
# #
# FreeType2 library PS glyph names module # FreeType2 library PS glyph names module
# #
psnames.ppc.o: $(FTSRC)/psnames/psnames.c psnames.ppc.o: $(FTSRC)/psnames/psnames.c
$(CC) -c $(CFLAGS) -o $@ $< $(CC) -c $(CFLAGS) -o $@ $<
# #
# FreeType2 library monochrome raster module # FreeType2 library monochrome raster module
# #
raster.ppc.o: $(FTSRC)/raster/raster.c raster.ppc.o: $(FTSRC)/raster/raster.c
$(CC) -c $(CFLAGS) -o $@ $< $(CC) -c $(CFLAGS) -o $@ $<
# #
# FreeType2 library anti-aliasing raster module # FreeType2 library anti-aliasing raster module
# #
smooth.ppc.o: $(FTSRC)/smooth/smooth.c smooth.ppc.o: $(FTSRC)/smooth/smooth.c
$(CC) -c $(CFLAGS) -o $@ $< $(CC) -c $(CFLAGS) -o $@ $<
# #
# FreeType2 library 'sfnt' module # FreeType2 library 'sfnt' module
# #
sfnt.ppc.o: $(FTSRC)/sfnt/sfnt.c sfnt.ppc.o: $(FTSRC)/sfnt/sfnt.c
$(CC) -c $(CFLAGS) -o $@ $< $(CC) -c $(CFLAGS) -o $@ $<
# #
# FreeType2 library glyph and image caching system # FreeType2 library glyph and image caching system
# #
ftcache.ppc.o: $(FTSRC)/cache/ftcache.c ftcache.ppc.o: $(FTSRC)/cache/ftcache.c
$(CC) -c $(CFLAGS) -o $@ $< $(CC) -c $(CFLAGS) -o $@ $<
# #
# FreeType2 library OpenType font driver # FreeType2 library OpenType font driver
# #
cff.ppc.o: $(FTSRC)/cff/cff.c cff.ppc.o: $(FTSRC)/cff/cff.c
$(CC) -c $(CFLAGS) -o $@ $< $(CC) -c $(CFLAGS) -o $@ $<
# #
# FreeType2 library TrueType font driver # FreeType2 library TrueType font driver
# #
truetype.ppc.o: $(FTSRC)/truetype/truetype.c truetype.ppc.o: $(FTSRC)/truetype/truetype.c
$(CC) -c $(CFLAGS) -o $@ $< $(CC) -c $(CFLAGS) -o $@ $<
# #
# FreeType2 library Type1 font driver # FreeType2 library Type1 font driver
# #
type1.ppc.o: $(FTSRC)/type1/type1.c type1.ppc.o: $(FTSRC)/type1/type1.c
$(CC) -c $(CFLAGS) -o $@ $< $(CC) -c $(CFLAGS) -o $@ $<
# #
# FreeType2 library Type42 font driver # FreeType2 library Type42 font driver
# #
type42.ppc.o: $(FTSRC)/type42/type42.c type42.ppc.o: $(FTSRC)/type42/type42.c
$(CC) -c $(CFLAGS) -o $@ $< $(CC) -c $(CFLAGS) -o $@ $<
# #
# FreeType2 library CID-keyed Type1 font driver # FreeType2 library CID-keyed Type1 font driver
# #
type1cid.ppc.o: $(FTSRC)/cid/type1cid.c type1cid.ppc.o: $(FTSRC)/cid/type1cid.c
$(CC) -c $(CFLAGS) -o $@ $< $(CC) -c $(CFLAGS) -o $@ $<
# #
# FreeType2 library BDF bitmap font driver # FreeType2 library BDF bitmap font driver
# #
bdf.ppc.o: $(FTSRC)/bdf/bdf.c bdf.ppc.o: $(FTSRC)/bdf/bdf.c
$(CC) -c $(CFLAGS) -o $@ $< $(CC) -c $(CFLAGS) -o $@ $<
# #
# FreeType2 library PCF bitmap font driver # FreeType2 library PCF bitmap font driver
# #
pcf.ppc.o: $(FTSRC)/pcf/pcf.c pcf.ppc.o: $(FTSRC)/pcf/pcf.c
$(CC) -c $(CFLAGS) -o $@ $< $(CC) -c $(CFLAGS) -o $@ $<
# #
# FreeType2 library gzip support for compressed PCF bitmap fonts # FreeType2 library gzip support for compressed PCF bitmap fonts
# #
gzip.ppc.o: $(FTSRC)/gzip/ftgzip.c gzip.ppc.o: $(FTSRC)/gzip/ftgzip.c
$(CC) -c $(CFLAGS) -o $@ $< $(CC) -c $(CFLAGS) -o $@ $<
# #
# FreeType2 library compress support for compressed PCF bitmap fonts # FreeType2 library compress support for compressed PCF bitmap fonts
# #
lzw.ppc.o: $(FTSRC)/lzw/ftlzw.c lzw.ppc.o: $(FTSRC)/lzw/ftlzw.c
$(CC) -c $(CFLAGS) -o $@ $< $(CC) -c $(CFLAGS) -o $@ $<
# #
# FreeType2 library PFR font driver # FreeType2 library PFR font driver
# #
pfr.ppc.o: $(FTSRC)/pfr/pfr.c pfr.ppc.o: $(FTSRC)/pfr/pfr.c
$(CC) -c $(CFLAGS) -o $@ $< $(CC) -c $(CFLAGS) -o $@ $<
# #
# FreeType2 library Windows FNT/FON bitmap font driver # FreeType2 library Windows FNT/FON bitmap font driver
# #
winfnt.ppc.o: $(FTSRC)/winfonts/winfnt.c winfnt.ppc.o: $(FTSRC)/winfonts/winfnt.c
$(CC) -c $(CFLAGS) -o $@ $< $(CC) -c $(CFLAGS) -o $@ $<
# #
# FreeType2 library TrueTypeGX Validator # FreeType2 library TrueTypeGX Validator
# #
gxvalid.ppc.o: $(FTSRC)/gxvalid/gxvalid.c gxvalid.ppc.o: $(FTSRC)/gxvalid/gxvalid.c
$(CC) -c $(CFLAGS) -o $@ $< $(CC) -c $(CFLAGS) -o $@ $<
# #
# FreeType2 library OpenType validator # FreeType2 library OpenType validator
# #
otvalid.ppc.o: $(FTSRC)/otvalid/otvalid.c otvalid.ppc.o: $(FTSRC)/otvalid/otvalid.c
$(CC) -c $(CFLAGS) -o $@ $< $(CC) -c $(CFLAGS) -o $@ $<
BASEPPC = ftbase.ppc.o ftbbox.ppc.o ftbdf.ppc.o ftbitmap.ppc.o ftcid.ppc.o \ BASEPPC = ftbase.ppc.o ftbbox.ppc.o ftbdf.ppc.o ftbitmap.ppc.o ftcid.ppc.o \
ftfstype.ppc.o ftgasp.ppc.o ftglyph.ppc.o ftgxval.ppc.o \ ftfstype.ppc.o ftgasp.ppc.o ftglyph.ppc.o ftgxval.ppc.o \
ftlcdfil.ppc.o ftmm.ppc.o ftotval.ppc.o ftpatent.ppc.o ftpfr.ppc.o \ ftlcdfil.ppc.o ftmm.ppc.o ftotval.ppc.o ftpatent.ppc.o ftpfr.ppc.o \
ftstroke.ppc.o ftsynth.ppc.o fttype1.ppc.o ftwinfnt.ppc.o \ ftstroke.ppc.o ftsynth.ppc.o fttype1.ppc.o ftwinfnt.ppc.o \
ftxf86.ppc.o ftxf86.ppc.o
DEBUGPPC = ftdebug.ppc.o ftdebugpure.ppc.o DEBUGPPC = ftdebug.ppc.o ftdebugpure.ppc.o
AFITPPC = autofit.ppc.o AFITPPC = autofit.ppc.o
GXVPPC = gxvalid.ppc.o GXVPPC = gxvalid.ppc.o
OTVPPC = otvalid.ppc.o OTVPPC = otvalid.ppc.o
PSPPC = psaux.ppc.o psnames.ppc.o pshinter.ppc.o PSPPC = psaux.ppc.o psnames.ppc.o pshinter.ppc.o
RASTERPPC = raster.ppc.o smooth.ppc.o RASTERPPC = raster.ppc.o smooth.ppc.o
FONTDPPC = cff.ppc.o type1.ppc.o type42.ppc.o type1cid.ppc.o truetype.ppc.o\ FONTDPPC = cff.ppc.o type1.ppc.o type42.ppc.o type1cid.ppc.o truetype.ppc.o\
bdf.ppc.o pcf.ppc.o pfr.ppc.o winfnt.ppc.o bdf.ppc.o pcf.ppc.o pfr.ppc.o winfnt.ppc.o
libft2_ppc.a: $(BASEPPC) $(AFITPPC) $(GXVPPC) $(OTVPPC) $(PSPPC) $(RASTERPPC) sfnt.ppc.o ftcache.ppc.o $(FONTDPPC) gzip.ppc.o lzw.ppc.o libft2_ppc.a: $(BASEPPC) $(AFITPPC) $(GXVPPC) $(OTVPPC) $(PSPPC) $(RASTERPPC) sfnt.ppc.o ftcache.ppc.o $(FONTDPPC) gzip.ppc.o lzw.ppc.o
$(AR) $@ $(BASEPPC) $(AFITPPC) $(GXVPPC) $(OTVPPC) $(PSPPC) $(RASTERPPC) sfnt.ppc.o ftcache.ppc.o $(FONTDPPC) gzip.ppc.o lzw.ppc.o $(AR) $@ $(BASEPPC) $(AFITPPC) $(GXVPPC) $(OTVPPC) $(PSPPC) $(RASTERPPC) sfnt.ppc.o ftcache.ppc.o $(FONTDPPC) gzip.ppc.o lzw.ppc.o
-@ ($(RANLIB) $@ || true) >/dev/null 2>&1 -@ ($(RANLIB) $@ || true) >/dev/null 2>&1
#Local Variables: #Local Variables:
#coding: latin-1 #coding: latin-1
#End: #End:
# TOP_DIR and OBJ_DIR should be set by the user to the right directories, # TOP_DIR and OBJ_DIR should be set by the user to the right directories,
# if necessary. # if necessary.
TOP_DIR ?= ../../.. TOP_DIR ?= ../../..
OBJ_DIR ?= $(TOP_DIR)/objs OBJ_DIR ?= $(TOP_DIR)/objs
# The setup below is for gcc on a Unix-like platform. # The setup below is for gcc on a Unix-like platform.
SRC_DIR = $(TOP_DIR)/src/tools/ftrandom SRC_DIR = $(TOP_DIR)/src/tools/ftrandom
CC = gcc CC = gcc
WFLAGS = -Wmissing-prototypes \ WFLAGS = -Wmissing-prototypes \
-Wunused \ -Wunused \
-Wimplicit \ -Wimplicit \
-Wreturn-type \ -Wreturn-type \
-Wparentheses \ -Wparentheses \
-pedantic \ -pedantic \
-Wformat \ -Wformat \
-Wchar-subscripts \ -Wchar-subscripts \
-Wsequence-point -Wsequence-point
CFLAGS = $(WFLAGS) \ CFLAGS = $(WFLAGS) \
-g \ -g \
-I $(TOP_DIR)/include -I $(TOP_DIR)/include
LIBS = -lm \ LIBS = -lm \
-L $(OBJ_DIR) \ -L $(OBJ_DIR) \
-lfreetype \ -lfreetype \
-lz -lz
all: $(OBJ_DIR)/ftrandom all: $(OBJ_DIR)/ftrandom
$(OBJ_DIR)/ftrandom: $(SRC_DIR)/ftrandom.c $(OBJ_DIR)/libfreetype.a $(OBJ_DIR)/ftrandom: $(SRC_DIR)/ftrandom.c $(OBJ_DIR)/libfreetype.a
$(CC) -o $(OBJ_DIR)/ftrandom $(CFLAGS) $(SRC_DIR)/ftrandom.c $(LIBS) $(CC) -o $(OBJ_DIR)/ftrandom $(CFLAGS) $(SRC_DIR)/ftrandom.c $(LIBS)
# EOF # EOF
RTGUI_ROOT=../.. RTGUI_ROOT=../..
include $(RTGUI_ROOT)/config.mk include $(RTGUI_ROOT)/config.mk
SRC = png.c pngerror.c pnggccrd.c pngget.c pngmem.c pngpread.c pngread.c \ SRC = png.c pngerror.c pnggccrd.c pngget.c pngmem.c pngpread.c pngread.c \
pngrio.c pngrtran.c pngrutil.c pngset.c pngtrans.c pngvcrd.c pngwio.c \ pngrio.c pngrtran.c pngrutil.c pngset.c pngtrans.c pngvcrd.c pngwio.c \
pngwrite.c pngwtran.c pngwutil.c pngwrite.c pngwtran.c pngwutil.c
CFLAGS += -I../libz CFLAGS += -I../libz
OBJ = $(SRC:.c=.o) OBJ = $(SRC:.c=.o)
LIB = libpng.a LIB = libpng.a
all: $(LIB) all: $(LIB)
$(LIB): $(OBJ) $(LIB): $(OBJ)
$(AR) r $@ $? $(AR) r $@ $?
$(RANLIB) $@ $(RANLIB) $@
clean : clean :
$(RM) *.o *~ *.bak $(RM) *.o *~ *.bak
$(RM) $(LIB) $(RM) $(LIB)
$(RM) .depend $(RM) .depend
dep : .depend dep : .depend
include .depend include .depend
.depend: $(SRC) .depend: $(SRC)
$(CC) $(CFLAGS) -M $^ > $@ $(CC) $(CFLAGS) -M $^ > $@
RTGUI_ROOT=../.. RTGUI_ROOT=../..
include $(RTGUI_ROOT)/config.mk include $(RTGUI_ROOT)/config.mk
SRC = adler32.c compress.c crc32.c deflate.c gzio.c infback.c inffast.c \ SRC = adler32.c compress.c crc32.c deflate.c gzio.c infback.c inffast.c \
inflate.c inftrees.c trees.c uncompr.c zutil.c inflate.c inftrees.c trees.c uncompr.c zutil.c
OBJ = $(SRC:.c=.o) OBJ = $(SRC:.c=.o)
LIB = libz.a LIB = libz.a
all: $(LIB) all: $(LIB)
$(LIB): $(OBJ) $(LIB): $(OBJ)
$(AR) r $@ $? $(AR) r $@ $?
$(RANLIB) $@ $(RANLIB) $@
clean : clean :
$(RM) *.o *~ *.bak $(RM) *.o *~ *.bak
$(RM) $(LIB) $(RM) $(LIB)
$(RM) .depend $(RM) .depend
dep : .depend dep : .depend
include .depend include .depend
.depend: $(SRC) .depend: $(SRC)
$(CC) $(CFLAGS) -M $^ > $@ $(CC) $(CFLAGS) -M $^ > $@
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册