Debian Codegraph @

lib/util/Makefile

raw
1 ifeq ($(SRCDIR)x,x)
2 SRCDIR = $(CURDIR)/../..
3 BUILDDIR = $(SRCDIR)
4 endif
5 SUBDIR = lib/util
6 VPATH=.:$(SRCDIR)/$(SUBDIR)
7
8 default:all
9
10 include $(BUILDDIR)/config.mk
11
12 # nstring is required for asprintf(), etc. Also some systems don't have
13 # snprintf(), e.g. Solaris 2.5.1. 2002.03.29.
14 UTILOBJECTS = \
15 bitio.o \
16 filename.o \
17 io.o \
18 mallocvar.o \
19 matrix.o \
20 nsleep.o \
21 nstring.o \
22 rand.o \
23 randsysrand.o \
24 randsysrandom.o \
25 randmersenne.o \
26 runlength.o \
27 shhopt.o \
28 token.o \
29 vasprintf.o \
30
31 MERGE_OBJECTS =
32
33 include $(SRCDIR)/common.mk
34
35 all: $(UTILOBJECTS)
36
37 $(UTILOBJECTS): CFLAGS_TARGET=$(CFLAGS_SHLIB)
38
39 $(UTILOBJECTS):%.o:%.c importinc
40 $(CC) -c $(INCLUDES) $(CFLAGS_ALL) -o $@ $<
41
42 testnstring: test.c nstring.h nstring.o
43 $(CC) $(CFLAGS_ALL) -o $@ nstring.o $<