[ftrandom] Minor improvements.
* src/tools/ftrandom/ftrandom.c (_XOPEN_SOURCE): New macro, set to 500. * src/tools/ftrandom/Makefile (CFLAGS): Split off include directories to ... (INCLUDES): ... this new variable. (LDFLAGS): New variable. (ftrandom.o, ftrandom): Updated.
This commit is contained in:
parent
c9adf1a14d
commit
1c8bb63299
13
ChangeLog
13
ChangeLog
|
@ -1,3 +1,16 @@
|
||||||
|
2016-09-05 Werner Lemberg <wl@gnu.org>
|
||||||
|
|
||||||
|
[ftrandom] Minor improvements.
|
||||||
|
|
||||||
|
* src/tools/ftrandom/ftrandom.c (_XOPEN_SOURCE): New macro, set to
|
||||||
|
500.
|
||||||
|
|
||||||
|
* src/tools/ftrandom/Makefile (CFLAGS): Split off include
|
||||||
|
directories to ...
|
||||||
|
(INCLUDES): ... this new variable.
|
||||||
|
(LDFLAGS): New variable.
|
||||||
|
(ftrandom.o, ftrandom): Updated.
|
||||||
|
|
||||||
2016-09-05 Werner Lemberg <wl@gnu.org>
|
2016-09-05 Werner Lemberg <wl@gnu.org>
|
||||||
|
|
||||||
[autofit] Improve Armenian support.
|
[autofit] Improve Armenian support.
|
||||||
|
|
|
@ -25,8 +25,9 @@ WFLAGS = -Wmissing-prototypes \
|
||||||
-Wchar-subscripts \
|
-Wchar-subscripts \
|
||||||
-Wsequence-point
|
-Wsequence-point
|
||||||
CFLAGS = $(WFLAGS) \
|
CFLAGS = $(WFLAGS) \
|
||||||
-g \
|
-g
|
||||||
-I $(TOP_DIR)/include
|
INCLUDES = -I $(TOP_DIR)/include
|
||||||
|
LDFLAGS =
|
||||||
LIBS = -lm \
|
LIBS = -lm \
|
||||||
-lz \
|
-lz \
|
||||||
-lpng \
|
-lpng \
|
||||||
|
@ -36,9 +37,9 @@ LIBS = -lm \
|
||||||
all: $(OBJ_DIR)/ftrandom
|
all: $(OBJ_DIR)/ftrandom
|
||||||
|
|
||||||
$(OBJ_DIR)/ftrandom.o: $(SRC_DIR)/ftrandom.c
|
$(OBJ_DIR)/ftrandom.o: $(SRC_DIR)/ftrandom.c
|
||||||
$(CC) -c -o $@ $(CFLAGS) $<
|
$(CC) $(CFLAGS) $(INCLUDES) -c -o $@ $<
|
||||||
|
|
||||||
$(OBJ_DIR)/ftrandom: $(OBJ_DIR)/ftrandom.o libfreetype.a
|
$(OBJ_DIR)/ftrandom: $(OBJ_DIR)/ftrandom.o libfreetype.a
|
||||||
$(CC) -o $(OBJ_DIR)/ftrandom $^ $(LIBS)
|
$(CC) $(LDFLAGS) -o $@ $^ $(LIBS)
|
||||||
|
|
||||||
# EOF
|
# EOF
|
||||||
|
|
|
@ -29,6 +29,9 @@
|
||||||
/* This file is now part of the FreeType library */
|
/* This file is now part of the FreeType library */
|
||||||
|
|
||||||
|
|
||||||
|
#define _XOPEN_SOURCE 500 /* for `kill', `strdup', `random', and `srandom' */
|
||||||
|
|
||||||
|
|
||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
#include <stdlib.h>
|
#include <stdlib.h>
|
||||||
#include <string.h>
|
#include <string.h>
|
||||||
|
|
Loading…
Reference in New Issue