-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
52 lines (36 loc) · 1.35 KB
/
Makefile
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
CC = gcc
CLIBS = -lm -lmpdclient -lncursesw
CFLAGS = -std=gnu99 -Wall
BIN = mpc_d
PREFIX = /usr/local/bin
OBJECTS = basic_info.o commands.o directory.o keyboards.o songs.o playlists.o utils.o visualizer.o windows.o
#main: $(HEAD) $(SOURCE)
# $(CC) $(SOURCE) -o $(BIN) $(CLIBS) $(CFLAGS)
mpc_d: main.c $(OBJECTS)
$(CC) $(OBJECTS) main.c -o $(BIN) $(CLIBS) $(CFLAGS)
keyboards.o: keyboards.c keyboards.h
$(CC) -c keyboards.c -o keyboards.o $(CLIBS) $(CFLAGS)
commands.o: commands.c commands.h
$(CC) -c commands.c -o commands.o $(CLIBS) $(CFLAGS)
visualizer.o: visualizer.c visualizer.h
$(CC) -c visualizer.c -o visualizer.o $(CLIBS) $(CFLAGS)
playlists.o: playlists.c playlists.h
$(CC) -c playlists.c -o playlists.o $(CLIBS) $(CFLAGS)
directory.o: directory.c directory.h
$(CC) -c directory.c -o directory.o $(CLIBS) $(CFLAGS)
songs.o: songs.c songs.h
$(CC) -c songs.c -o songs.o $(CLIBS) $(CFLAGS)
basic_info.o: basic_info.c basic_info.h
$(CC) -c basic_info.c -o basic_info.o $(CLIBS) $(CFLAGS)
windows.o: windows.c windows.h
$(CC) -c windows.c -o windows.o $(CLIBS) $(CFLAGS)
utils.o: utils.c utils.h
$(CC) -c utils.c -o utils.o $(CLIBS) $(CFLAGS)
# dynamic.o: windows.o utils.o dynamic.c dynamic.h
# $(CC) windows.o utils.o dynamic.c -o dynamic.o $(CLIBS) $(CFLAGS)
clean:
rm *.o -f $(BIN)
run:
@./$(BIN)
install: ./$(BIN)
mv $(BIN) $(PREFIX)