summaryrefslogtreecommitdiffstats
path: root/src/3rdparty/freetype/src/tools/ftrandom/Makefile
blob: 2e619299cdfcdb13ec98282f200b013d60a002c3 (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
# TOP_DIR and OBJ_DIR should be set by the user to the right directories,
# if necessary.

TOP_DIR ?= ../../..
OBJ_DIR ?= $(TOP_DIR)/objs


# The setup below is for gcc on a Unix-like platform.

SRC_DIR = $(TOP_DIR)/src/tools/ftrandom

CC = gcc
WFLAGS = -Wmissing-prototypes \
         -Wunused \
         -Wimplicit \
         -Wreturn-type \
         -Wparentheses \
         -pedantic \
         -Wformat \
         -Wchar-subscripts \
         -Wsequence-point
CFLAGS = $(WFLAGS) \
         -g \
         -I $(TOP_DIR)/include
LIBS = -lm \
       -L $(OBJ_DIR) \
       -lfreetype \
       -lz

all: $(OBJ_DIR)/ftrandom

$(OBJ_DIR)/ftrandom: $(SRC_DIR)/ftrandom.c $(OBJ_DIR)/libfreetype.a
	$(CC) -o $(OBJ_DIR)/ftrandom $(CFLAGS) $(SRC_DIR)/ftrandom.c $(LIBS)

# EOF