-
Notifications
You must be signed in to change notification settings - Fork 12
/
Copy pathmakefile
29 lines (21 loc) · 848 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
CFLAGS = -O2 -g -mtune=native -Wpedantic -Wall -D CTRLANG=${ISO} -D INCLUDETESTS
OBJS = test.o siphash.o utf8.o memory.o util.o base.o collections.o file.o system.o \
world.o lexer.o parser.o walker.o translator.o citrine.o
prefix ?= /usr
.SUFFIXES: .o .c
all:ctr
install:
install -d $(DESTDIR)$(prefix)/bin $(DESTDIR)$(prefix)/share/fonts/citrine
install ./bin/$(shell uname -s)/ctr* $(DESTDIR)$(prefix)/bin
install ./fonts/Citrine.ttf $(DESTDIR)$(prefix)/share/fonts/citrine
ctr: $(OBJS)
$(CC) $(OBJS) -g -rdynamic -lm -ldl -o ctr
cp ctr bin/${OS}/ctr${ISO}
.c.o:
$(CC) $(CFLAGS) $(EXTRACFLAGS) -I i18n/${ISO} -c $<
clean:
rm -rf ${OBJS} ctr
plugin:
cd plugins/${PACKAGE} ; make clean ; make install-${NAME}
testplugin:
cd plugins/${PACKAGE} ; make -f makefile.test clean ; make -f makefile.test install-${NAME}