-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
56 lines (36 loc) · 1.51 KB
/
Makefile
File metadata and controls
56 lines (36 loc) · 1.51 KB
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
OBJ=config.o help.o sound-card.o ui.o terminal-ui.o zenity-ui.o wmctrl.o tclwish-ui.o popup-terminal.o
LIBS=-lUseful-5 -lasound
FLAGS=-g -g -O2 -Wall -DPACKAGE_NAME=\"alsavol\" -DPACKAGE_TARNAME=\"alsavol\" -DPACKAGE_VERSION=\"1.3\" -DPACKAGE_STRING=\"alsavol\ 1.3\" -DPACKAGE_BUGREPORT=\"\" -DPACKAGE_URL=\"\" -DHAVE_STDIO_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1 -DHAVE_STRINGS_H=1 -DHAVE_SYS_STAT_H=1 -DHAVE_SYS_TYPES_H=1 -DHAVE_UNISTD_H=1 -DSTDC_HEADERS=1 -D_FILE_OFFSET_BITS=64 -DHAVE_LIBASOUND=1 -DHAVE_LIBUSEFUL_5_LIBUSEFUL_H=1 -DHAVE_LIBUSEFUL_5=1
prefix=/usr/local
exec_prefix=${prefix}
bindir=${exec_prefix}/bin
mandir=${prefix}/share/man
all: $(OBJ)
gcc $(FLAGS) -o alsavol $(OBJ) main.c $(LIBS)
libuseful-bundled/libUseful.a:
$(MAKE) -C libuseful-bundled
config.o:config.h config.c
gcc $(FLAGS) -c config.c
help.o:help.h help.c
gcc $(FLAGS) -c help.c
sound-card.o:sound-card.h sound-card.c
gcc $(FLAGS) -c sound-card.c
ui.o:ui.h ui.c
gcc $(FLAGS) -c ui.c
terminal-ui.o:terminal-ui.h terminal-ui.c
gcc $(FLAGS) -c terminal-ui.c
zenity-ui.o:zenity-ui.h zenity-ui.c
gcc $(FLAGS) -c zenity-ui.c
wmctrl.o:wmctrl.h wmctrl.c
gcc $(FLAGS) -c wmctrl.c
tclwish-ui.o:tclwish-ui.h tclwish-ui.c
gcc $(FLAGS) -c tclwish-ui.c
popup-terminal.o:popup-terminal.h popup-terminal.c
gcc $(FLAGS) -c popup-terminal.c
install:
mkdir -p $(bindir)/
cp -f alsavol $(bindir)/
mkdir -p $(mandir)/man1
cp alsavol.1 $(mandir)/man1
clean:
rm -rf alsavol *.o *.orig .*.swp */*.o */*.so */*.a