2007-06-03 21:21:26 +02:00
|
|
|
# TOP_DIR and OBJ_DIR should be set by the user to the right directories,
|
|
|
|
# if necessary.
|
|
|
|
|
|
|
|
TOP_DIR ?= ../../..
|
|
|
|
OBJ_DIR ?= $(TOP_DIR)/objs
|
|
|
|
|
|
|
|
|
|
|
|
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
|
|
|
|
|
2007-06-03 21:38:59 +02:00
|
|
|
all: ftrandom
|
2007-06-03 21:21:26 +02:00
|
|
|
|
2007-06-03 21:38:59 +02:00
|
|
|
ftrandom: $(SRC_DIR)/ftrandom.c
|
2007-06-03 21:21:26 +02:00
|
|
|
$(CC) -o $(OBJ_DIR)/ftrandom $(CFLAGS) $(SRC_DIR)/ftrandom.c $(LIBS)
|
|
|
|
|
|
|
|
# EOF
|