-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile.in
48 lines (39 loc) · 1.17 KB
/
Makefile.in
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
PKGNAME = @PROJECTNAME@
TARGET = @[email protected]
# Various configurable paths (remember to edit Makefile.in, not Makefile)
prefix = @prefix@
exec_prefix = @exec_prefix@
datarootdir = @datarootdir@
datadir = @datadir@
bindir = @bindir@
includedir = @includedir@
libdir = @libdir@
mandir = @mandir@
libtool = @libtool@
CC = @CC@
INSTALL = @INSTALL@
INSTALL_PROGRAM = @INSTALL_PROGRAM@
INSTALL_DATA = @INSTALL_DATA@
LIBS = @LIBS@
CFLAGS = @CFLAGS@
CPPFLAGS = @CPPFLAGS@
LIBTOOL = $(libtool) --tag=CC --quiet
SRCS = @[email protected]
OBJDIR = .obj
LOBJS = $(SRCS:%.c=$(OBJDIR)/%.lo)
all: $(TARGET)
$(TARGET): $(LOBJS)
$(LIBTOOL) --mode=link $(CC) $(CFLAGS) $(CPPFLAGS) $(LIBS) -avoid-version -module -shared -export-dynamic --mode=link -o $@ $^ -rpath $(libdir)
$(OBJDIR)/%.lo: %.c
@[ -d $$(dirname $@) ] || \
(mkdir -p $$(dirname $@))
$(LIBTOOL) --mode=compile $(CC) $(CFLAGS) $(CPPFLAGS) -fPIC -shared -c $< -o $@
.PHONY: install
install: $(TARGET)
$(INSTALL) -m 775 -d $(DESTDIR)/$(libdir)
$(LIBTOOL) --mode=install cp $(TARGET) $(DESTDIR)/$(libdir)/;
.PHONY: clean
clean:
$(LIBTOOL) --mode clean rm -f $(LOBJS)
$(LIBTOOL) --mode clean rm -f $(TARGET)
rm -rf $(TARGET) $(OBJDIR)