-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile.in
46 lines (36 loc) · 1.13 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
SHELL = /bin/sh
CFLAGS = -g -Wall -Wno-missing-braces -Wmissing-prototypes -Wunused -Wsign-compare -Wshadow -Wno-uninitialized -Wpointer-arith -std=c99 -D_POSIX_C_SOURCE=200809L
prefix = @prefix@
exec_prefix = $(prefix)
bindir = $(exec_prefix)/bin
libdir = $(exec_prefix)/lib
datarootdir = $(prefix)/share
mandir = $(datarootdir)/man
includedir = $(prefix)/include
PROG = crbehave
OBJS = worker.o table.o match.o expand.o crbehave.o
INSTALL = install
INSTALLFLAGS = -D
all: $(PROG).a
$(PROG).a: $(OBJS)
ar r $(PROG).a $(OBJS)
.c.o:
$(CC) -c $(CFLAGS) $<
clean:
rm -f $(OBJS) $(PROG).a
install: $(PROG).a
$(INSTALL) $(INSTALLFLAGS) -m 444 $(PROG).a \
$(DESTDIR)$(libdir)/
$(INSTALL) $(INSTALLFLAGS) -m 444 crbehave.pc \
$(DESTDIR)$(libdir)/pkgconfig/
$(INSTALL) $(INSTALLFLAGS) -m 444 crbehave.h \
$(DESTDIR)$(includedir)/
uninstall:
rm -f $(DESTDIR)$(libdir)/$(PROG).a
rm -f $(DESTDIR)$(libdir)/pkgconfig/$(PROG).pc
rm -f $(DESTDIR)$(includedir)/crbehave.h
# Dependencies
crbehave.o: crbehave.c crbehave_private.h crbehave.h expand.h
expand.o: expand.c expand.h
match.o: match.c crbehave_private.h crbehave.h
table.o: table.c crbehave.h