forked from rtokarev/OPENRELEASE
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
46 lines (35 loc) · 912 Bytes
/
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
include scripts/default.mk
-include config.mk
include scripts/cmd.mk
origin_release_libs = ${RELEASE_LIB}/*.a
origin_release_objects = ${RELEASE_LIB}/*.o
VERSION = $(shell git describe)
CFLAGS = -mips32 \
-std=c99 \
-fPIC \
-Wall -Wextra -Werror \
-D_GNU_SOURCE \
-I. \
-Iinclude \
-include platform.h \
-DOPENRELEASE_VERSION=\"${VERSION}\" \
-DPLATFORM=${PLATFORM}
LDFLAGS_COMMON = -Wl,-EL
ifeq (${DEBUG},1)
CFLAGS += -O0 -ggdb3 -DDEBUG
else
CFLAGS += -O2
endif
all: libopenrelease
include utils/utils.mk
include release/release.mk
include libopenrelease/libopenrelease.mk
include scripts/lgapp.mk
libopenrelease: ${libopenrelease}
release: sstrip mkcramfs lgapp.tar.gz lgapp.epk
#ifeq ($(filter depend clean,${MAKECMDGOALS}),)
# include .depend
#endif
.PHONY: all release libopenrelease clean
clean: utils_clean release_clean libopenrelease_clean lgapp_clean
${RM} .depend