Skip to content

Commit 4773126

Browse files
committed
make: set prefix for termux
1 parent 747d1bd commit 4773126

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

src/makefile

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,12 @@ VERSION = 0.4
33
srcdir ?= $(CURDIR)
44
vpath %.c $(srcdir)
55
vpath %.S $(srcdir)
6+
# on Termux PREFIX is used
7+
ifneq ($(PREFIX),)
8+
prefix := $(PREFIX)
9+
else
610
prefix ?= /usr/local
11+
endif
712
DATADIR ?= $(prefix)/share/comcom64
813
CFLAGS ?= -Wall -O2 -Wmissing-declarations -Wwrite-strings \
914
-ggdb3 -Wunused -Wmissing-prototypes -flto=auto

0 commit comments

Comments
 (0)