-
Notifications
You must be signed in to change notification settings - Fork 1
/
Makefile.in
59 lines (49 loc) · 957 Bytes
/
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
48
49
50
51
52
53
54
55
56
57
58
59
SHELL = /bin/sh
CFLAGS = -g -Wall -pedantic -std=c99 @PKGS_CFLAGS@ @SYSTEM_CFLAGS@
LDFLAGS = @PKGS_LDFLAGS@
prefix = @prefix@
exec_prefix = $(prefix)
bindir = $(exec_prefix)/bin
libdir = $(exec_prefix)/lib
datarootdir = $(prefix)/share
mandir = $(datarootdir)/man
INSTALL ?= install
INSTALLFLAGS ?=
SRCS=history.c \
text.c \
prompt.c \
cocowm.c \
layout.c \
trace.c \
keyboard.c \
pane.c \
action.c \
resize.c \
column.c \
event.c \
create.c \
manage.c \
draw.c \
init.c
DISTFILES=\
Makefile\
README\
MISSING\
extern.h\
trace.h
PROG=cocowm
OBJS=$(SRCS:.c=.o)
all: $(PROG)
$(PROG): $(OBJS)
$(CC) -o$@ $(OBJS) $(LDFLAGS)
.c.o:
$(CC) $(CFLAGS) -c $<
clean:
rm -f $(OBJS) $(PROG)
install: $(PROG)
if [ ! -x $(DESTDIR)$(bindir) ] ; then \
mkdir -p $(DESTDIR)$(bindir) ; fi
$(INSTALL) $(INSTALLFLAGS) $(PROG) $(DESTDIR)$(bindir)
uninstall:
if [ -e $(DESTDIR)$(bindir)/$(PROG) ] ; then \
rm $(DESTDIR)$(bindir)/$(PROG) ; fi