-
Notifications
You must be signed in to change notification settings - Fork 5
/
Makefile
37 lines (28 loc) · 812 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
# st - simple terminal
# See LICENSE file for copyright and license details.
include makefiles/config.mk
ifeq ($(UNION_PLATFORM),rg35xxplus)
include makefiles/config-rg35xxplus.mk
else ifeq ($(UNION_PLATFORM),upscale)
include makefiles/config-generic-linux-upscale.mk
endif
SRC = $(wildcard src/*.c)
all: options build
options:
@echo st build options:
@echo "UNION_PLATFORM = ${UNION_PLATFORM}"
@echo "PREFIX = ${PREFIX}"
@echo "CROSS_COMPILE = ${CROSS_COMPILE}"
@echo "SYSROOT = ${SYSROOT}"
@echo "CFLAGS = ${CFLAGS}"
@echo "LDFLAGS = ${LDFLAGS}"
@echo "CC = ${CC}"
@echo "SRC = ${SRC}"
@echo "VERSION = ${VERSION}"
build:
mkdir -p build
${CC} -o build/SimpleTerminal ${SRC} ${CFLAGS} ${LDFLAGS}
clean:
@echo cleaning
rm -rf build
.PHONY: all options clean