[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [ft] This is the "perfect" Makefile for FreeType library building on
From: |
Werner LEMBERG |
Subject: |
Re: [ft] This is the "perfect" Makefile for FreeType library building on an AmigaOne |
Date: |
Fri, 09 Nov 2018 11:46:36 +0100 (CET) |
> After replacing "FT:" with "../../" in VPATH variable, the Makefile
> began to work...
Well... It seems that the Amiga port of GNU make can handle device
names (containing `:') only in targets but not in VPATH. Too bad.
Attached is a new version, implementing your findings.
Werner
#
# Intro text.
#
#
# Copyright notice.
#
#
# Build instructions.
#
.PHONY: all
all: libfreetype.a
CC = gcc
AR = ar
RANLIB = ranlib
DIRFLAGS = \
-Iinclude \
-I../../src \
-I../../include \
-ISDK:include
WARNINGS = \
-W \
-Waggregate-return \
-Wall \
-Wbad-function-cast \
-Wpointer-arith \
-Wshadow \
-Wundef \
-Wwrite-strings
OPTIONS = \
-DFT2_BUILD_LIBRARY \
-DNDEBUG \
-fno-builtin
OPTIMIZE = \
-O2 \
-finline-functions \
-fomit-frame-pointer \
-fstrength-reduce
CFLAGS = \
-mcrt=clib2 \
$(DIRFLAGS) \
$(WARNINGS) \
$(FT2FLAGS) \
$(OPTIONS) \
$(OPTIMIZE)
# We assume there aren't files with identical names to compile in VPATH.
VPATH = \
../../src/autofit \
../../src/base \
../../src/bdf \
../../src/bzip2 \
../../src/cff \
../../src/cache \
../../src/gzip \
../../src/lzw \
../../src/otvalid \
../../src/pcf \
../../src/pfr \
../../src/psaux \
../../src/pshinter \
../../src/psnames \
../../src/raster \
../../src/sfnt \
../../src/smooth \
../../src/truetype \
../../src/type1 \
../../src/cid \
../../src/type42 \
../../src/winfonts
%.ppc.o: %.c
$(CC) -c $(CFLAGS) $< -o $@
ftdebugpure.ppc.o: src/base/ftdebug.c
$(CC) -c $(CFLAGS) $< -o $@
ftsystempure.ppc.o: src/base/ftsystem.c
$(CC) -c $(CFLAGS) $< -o $@
gxvalid.ppc.o: gxvalid.c
$(CC) -c $(CFLAGS) -Wno-aggregate-return $< -o $@
BASE = \
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 \
ftinit.ppc.o \
ftmm.ppc.o \
ftotval.ppc.o \
ftpatent.ppc.o \
ftpfr.ppc.o \
ftstroke.ppc.o \
ftsynth.ppc.o \
ftsystem.ppc.o \
fttype1.ppc.o \
ftwinfnt.ppc.o
DEBUG = \
ftdebug.ppc.o \
ftdebugpure.ppc.o
AFIT = autofit.ppc.o
GXV = gxvalid.ppc.o
OTV = otvalid.ppc.o
PS = \
psaux.ppc.o \
pshinter.ppc.o \
psnames.ppc.o
RASTER = \
raster.ppc.o \
smooth.ppc.o
FONTD = \
bdf.ppc.o \
cff.ppc.o \
pcf.ppc.o \
pfr.ppc.o \
truetype.ppc.o \
type1.ppc.o \
type1cid.ppc.o \
type42.ppc.o \
winfnt.ppc.o
OTHER = \
ftcache.ppc.o \
ftgzip.ppc.o \
ftlzw.ppc.o \
sfnt.ppc.o
# Add $(DEBUG) to the list of requisites if you want debugging output.
libfreetype.a: \
$(BASE) \
$(AFIT) \
$(GXV) \
$(OTV) \
$(PS) \
$(RASTER) \
$(FONTD) \
$(OTHER)
$(AR) r $@ $^
$(RANLIB) $@
# Local Variables:
# coding: utf-8
# End: