summaryrefslogtreecommitdiff
path: root/src/otlayout/demo.mk
blob: 2684f26ca72f34e7171fe305dab04b15417d8296 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
#
# demo.mk --- Makefile for OpenType driver demo program
#
# Copyright 2004 by Masatake YAMATO and RedHat K.K.
#
# This file is part of the FreeType project, and may only be used, modified,
# and distributed under the terms of the FreeType project license,
# LICENSE.TXT.  By continuing to use, modify, or distribute this file you
# indicate that you have read the license and understand and accept it
# fully.
#
########################################################################

# Development of the code in demo.mk is support of
# Information-technology Promotion Agency, Japan.   

SHELL=/bin/bash

POPT_LIBS=-lpopt

CFLAGS=-c -O0 -g -I../../include -Wall -std=c99 
LIBS=-Xlinker -rpath -Xlinker ../../objs/.libs -lz $(POPT_LIBS)
########################################################################
OTOBJ=../../objs/.libs/libfreetype.so

DEMOBIN=otdemo
DEMOOBJ=otdemo.o
DEMOSRC=otdemo.c

########################################################################
all: $(DEMOBIN)
$(DEMOBIN):  $(OTOBJ) $(DEMOOBJ)
	$(CC) -o $(@) $(LIBS) $^ 

$(DEMOOBJ): $(DEMOSRC) $(OTOBJ)

$(OTOBJ): *.c *.h
	(cd ../../; make)
########################################################################
clean:
	rm -f  $(DEMOBIN) $(DEMOOBJ) core.*