blob: ae5830b47f657b2b458e17588ffecdd7a791dadd (
plain) (
blame)
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
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
|
.POSIX:
CFLAGS = -std=c99 -Wall -Wextra -O2 $(CPPFLAGS)
CPPFLAGS = -D_DEFAULT_SOURCE -D_BSD_SOURCE -D_XOPEN_SOURCE=700
LDFLAGS = -s
OBJ =\
allocn.o\
asprintf.o\
difftimespec.o\
difftimeval.o\
doubletotimespec.o\
doubletotimeval.o\
encalloc.o\
enmalloc.o\
enmemdup.o\
enrealloc.o\
enstrdup.o\
enstrndup.o\
envmalloczn.o\
envputenvf.o\
envreallocn.o\
isutf8.o\
memdup.o\
memends.o\
memmem.o\
memrchr.o\
memrmem.o\
memstarts.o\
multimespec.o\
multimeval.o\
rawmemchr.o\
rawmemrchr.o\
rawmemrchr.o\
recvfd.o\
recvfrom_timestamped.o\
sendfd.o\
strcaseends.o\
strcasestr.o\
strchrnul.o\
strends.o\
strndup.o\
strrcasestr.o\
strrstr.o\
strstarts.o\
strtotimespec.o\
strtotimeval.o\
sumtimespec.o\
sumtimeval.o\
timespec2timeval.o\
timespectostr.o\
timevaltostr.o\
vasprintf.o\
vputenvf.o\
vweprintf.o\
libsimple.o
all: libsimple.a
$(OBJ): libsimple.h
libsimple.a: $(OBJ)
$(AR) rc $@ $?
$(AR) -s $@
clean:
-rm -r -- *.o libsimple.a libsimple.so libsimple.so.*
.SUFFIXES: .c.o
.PHONY: all clean
|