-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile.in
65 lines (51 loc) · 1.16 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
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
# Makefile for fbsetbg
name= fbsetbg
prefix= /usr/local
bindir= $(prefix)/bin
libdir= $(prefix)/lib
includedir= $(prefix)/include
mandir= $(prefix)/man
CC= cc
CFLAGS= -O2 -g -pedantic -Wall -Wsign-compare -Werror
CFLAGS+=
INSTALL= /usr/bin/install
OBJS= \
bsetroot_wallpaper.o \
checkextension.o \
cleanpath.o \
display_help.o \
display_tips.o \
display_usage.o \
fbsetbg.o \
find_setters.o \
last_wallpaper.o \
random_wallpaper.o \
re_bsetroot_wallpaper.o \
re_rotate_wallpaper.o \
read_lastwallpaper.o \
set_wallpaper.o \
write_lastwallpaper.o
# Portability stuff.
CFLAGS+= @extraflags@
LDFLAGS+= @extralibs@
.c.o:
$(CC) $(CFLAGS) -c $<
all: $(name)
$(name): $(OBJS)
$(CC) $(OBJS) $(LDFLAGS) -o $(name)
distclean: clean
-rm -f Makefile config.log *~ *.core core.*
clean:
-rm -f *.o $(name)
install: $(name) $(name).1
$(INSTALL) -d $(DESTDIR)$(bindir)
$(INSTALL) -d $(DESTDIR)$(mandir)/man1
$(INSTALL) -m 755 -s $(name) $(DESTDIR)$(bindir)/$(name) ;\
$(INSTALL) -m 444 $(name).1 $(DESTDIR)$(mandir)/man1/$(name).1
uninstall:
rm -f \
$(DESTDIR)$(bindir)/$(name) \
$(DESTDIR)$(mandir)/man1/$(name).1
rebuild:
./configure ;\
make clean all