-
-
Notifications
You must be signed in to change notification settings - Fork 2
/
Makefile
executable file
·171 lines (124 loc) · 4.61 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
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
#
# Makefile generated by:
# codebench 0.55
#
# Project: MediaVault
#
# Created on: 07-11-2021 16:28:21
#
#
###################################################################
##
##//// Objects
##
###################################################################
MediaVault_OBJ := \
src/mediavault.o src/libshandler.o src/gui.o \
src/mainWin.o src/guifuncs.o src/aboutWin.o \
src/httpfuncs.o src/radiofuncs.o src/stringfuncs.o \
src/fsfuncs.o src/podcastfuncs.o src/sqldb.o \
src/radiopages.o src/podcastpages.o src/updates.o \
###################################################################
##
##//// Variables and Environment
##
###################################################################
CC := gcc:bin/gcc
INCPATH := -I.
CFLAGS := $(INCPATH) -Wall -Werror -Wwrite-strings -Wextra -O3
###################################################################
##
##//// General rules
##
###################################################################
.PHONY: all all-before all-after clean clean-custom realclean
all: all-before MediaVault all-after
all-before:
# You can add rules here to execute before the project is built
all-after:
# You can add rules here to execute after the project is built
clean: clean-custom
@echo "Cleaning compiler objects..."
@rm -f $(MediaVault_OBJ)
realclean:
@echo "Cleaning compiler objects and targets..."
@rm -f $(MediaVault_OBJ) MediaVault
###################################################################
##
##//// Targets
##
###################################################################
MediaVault: $(MediaVault_OBJ)
@echo "Linking MediaVault"
@gcc:bin/gcc -o MediaVault $(MediaVault_OBJ) -lsqlite3 -lcurl -lrtmp -lssl -lcrypto -lz -lpthread
@echo "Removing stale debug target: MediaVault"
@rm -f MediaVault.debug
###################################################################
##
##//// Standard rules
##
###################################################################
# A default rule to make all the objects listed below
# because we are hiding compiler commands from the output
.c.o:
@echo "Compiling $<"
@$(CC) -c $< -o $*.o $(CFLAGS)
src/mediavault.o: src/mediavault.c src/libshandler.h src/gui.h \
src/sqldb.h src/fsfuncs.h
src/libshandler.o: src/libshandler.c src/globals.h src/version.h \
src/upnpfuncs.o: src/upnpfuncs.c src/upnpfuncs.h src/globals.h \
src/gui.o: src/gui.c src/globals.h src/version.h \
src/guifuncs.h src/mainWin.h src/aboutWin.h \
src/radiofuncs.h src/podcastfuncs.h src/httpfuncs.h \
src/updates.h
src/httpfuncs.o: src/httpfuncs.c src/version.h
src/fsfuncs.o: src/fsfuncs.c src/globals.h src/version.h \
src/sqldb.o: src/sqldb.c src/globals.h src/version.h \
src/radiofuncs.h src/stringfuncs.h
src/guifuncs.o: src/guifuncs.c src/globals.h src/version.h \
src/gui.h src/httpfuncs.h src/fsfuncs.h \
src/updates.h
src/podcastfuncs.o: src/podcastfuncs.c src/globals.h src/version.h \
src/gui.h src/libshandler.h src/httpfuncs.h \
src/sqldb.h src/stringfuncs.h src/guifuncs.h \
src/secrets.h
src/mainWin.o: src/mainWin.c src/globals.h src/version.h \
src/gui.h src/lists.h src/guifuncs.h \
src/radiopages.h src/podcastpages.h
src/updates.o: src/updates.c src/globals.h src/version.h \
src/gui.h src/httpfuncs.h src/stringfuncs.h \
src/fsfuncs.h src/guifuncs.h
src/aboutWin.o: src/aboutWin.c src/globals.h src/version.h \
src/gui.h
src/radiofuncs.o: src/radiofuncs.c src/globals.h src/version.h \
src/gui.h src/libshandler.h src/httpfuncs.h \
src/stringfuncs.h src/guifuncs.h src/sqldb.h \
src/fsfuncs.h
src/stringfuncs.o: src/stringfuncs.c src/globals.h src/version.h \
src/libshandler.h
src/radiopages.o: src/radiopages.c src/globals.h src/version.h \
src/gui.h src/guifuncs.h
src/podcastpages.o: src/podcastpages.c src/globals.h src/version.h \
src/gui.h src/guifuncs.h
###################################################################
##
##//// Custom rules
##
###################################################################
release:
mkdir -p release/MediaVault/libs
mkdir -p release/MediaVault/cache
mkdir -p release/MediaVault/scripts
cp release_files/* release/MediaVault/ -r
cp MediaVault release/MediaVault/
strip release/MediaVault/MediaVault
cp CHANGELOG.md release/MediaVault/
cp README.md release/MediaVault/
cp LICENSE release/MediaVault/
cp COPYING release/MediaVault/
cp images release/MediaVault/ -r
cp scripts/*.sample* release/MediaVault/scripts/
cp Libs:jansson.library release/MediaVault/libs/
cp release_files/Icons/IconDesigner.info release/MediaVault.info
lha -aeqr3 a MediaVault.lha release/
###################################################################