-
Notifications
You must be signed in to change notification settings - Fork 1
/
makefile
48 lines (37 loc) · 1.1 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
# ----------------------------
# Makefile Options
# ----------------------------
NATIVECC = clang
NAME = TRANSFER
MAJOR_VERSION = 0
MINOR_VERSION = 0
PATCH_VERSION = 4
KIND_VERSION = n
BUILD_VERSION = -$(shell git rev-parse --short HEAD)
FULL_VERSION = v$(MAJOR_VERSION).$(MINOR_VERSION).$(PATCH_VERSION)$(KIND_VERSION)$(BUILD_VERSION)
ICON = transfer.png
DESCRIPTION = "Variable Transfer Program $(FULL_VERSION)"
COMPRESSED = YES
ARCHIVED = YES
FLAGS = -Wall -Wextra -Oz -DVERSION='"$(FULL_VERSION)"'
CFLAGS = $(FLAGS)
CXXFLAGS = $(FLAGS)
EXTRA_CSOURCES = src/font.c
EXTRA_USERHEADERS = src/ti84pceg.inc src/font.h
EXTRA_CLEAN = src/font.c src/font.h font/genfont
# ----------------------------
include $(shell cedev-config --makefile)
all:
$(Q)echo [done] prgm$(NAME) $(FULL_VERSION)
beta: KIND_VERSION = b
beta: BUILD_VERSION =
beta: all
release: BUILD_VERSION =
release: REV_VERSION =
release: all
src/font.h src/font.c: font/genfont makefile
$(Q)echo [running] $<
$(Q)$<
font/genfont: font/genfont.c makefile
$(Q)echo [compiling] $<
$(Q)$(NATIVECC) -O3 -flto $< `pkg-config --cflags --libs freetype2` -o $@