-
Notifications
You must be signed in to change notification settings - Fork 11
Expand file tree
/
Copy pathMakefile.in
More file actions
51 lines (39 loc) · 1017 Bytes
/
Copy pathMakefile.in
File metadata and controls
51 lines (39 loc) · 1017 Bytes
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
# Dlib makefile
MAKE = make
VERSION = @ver@
SRCDIR = src/
DESTDIR =
CC = @CC@
CFLAGS = @CFLAGS@ @DEFS@
LDFLAGS = @LDFLAGS@
LIBS = @LIBS@
prefix = @prefix@
exec_prefix = @exec_prefix@
bindir = @bindir@
sbindir = @sbindir@
libdir = @libdir@
includedir = @includedir@
mandir = @mandir@
docdir = @docdir@
sysconfdir = @sysconfdir@
datarootdir = @datarootdir@
bin_suffix = @EXEEXT@
FILES = src/dnet.o src/dhash.o src/dlist.o src/dstrbuf.o src/dutil.o src/dvector.o
.PHONY: all clean-all clean distclean install uninstall
.c.o:
$(CC) $(CFLAGS) -c $*.c -o $*.o
all: $(FILES)
ar rc libdlib.a $(FILES)
test:
$(CC) $(CFLAGS) -o test test.c libdlib.a -lm
dlisttest:
$(CC) $(CFLAGS) -o dlisttest dlisttest.c libdlib.a -lm
dhashtest:
$(CC) $(CFLAGS) -o dhashtest dhashtest.c libdlib.a -lm
install:
mkdir -p $(DESTDIR)/$(libdir)/
mkdir -p $(DESTDIR)/$(includedir)/dlib/
install -m0644 libdlib.a $(DESTDIR)/$(libdir)/
install -m0644 include/* $(DESTDIR)/$(includedir)/dlib/
clean:
rm -f src/*.o *.so *.a test