-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
36 lines (24 loc) · 1.01 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
# See LICENSE for copyright/license information
include config.mk
CFILES = basque.c bltin/bltin.c bltin/core.c bltin/sys.c bltin/format.c common/stack.c common/reg.c common/format.c common/types.c common/hashtable.c common/im.c common/parser.c common/options.c common/dynarr.c common/lexeme.c common/exitmsg.c common/symtable.c common/ctr.c common/func.c elf64.c lexer.c parser/common.c parser/exp.c parser/parse.c parser/handle.c parser/op.c parser/stmt.c parser/fstr.c common/common.c
all:
${CC} ${CFILES} -o basque ${CFLAGS}
debug:
${CC} ${CFILES} -o basque -g ${CFLAGSDEBUG}
profile:
${CC} ${CFILES} -o basque -g ${CFLAGSPROFILE} -pg
clean:
rm -f basque
vim:
cp editor/basque.vim ~/.vim/syntax/
nvim:
cp editor/basque.vim ~/.config/nvim/syntax/
install: all
mkdir -p ${PPATH}/bin
cp -f basque ${PPATH}/bin
chmod 755 ${PPATH}/bin/basque
cp basque.1 ${PPATH}/share/man/man1/basque.1
uninstall:
rm -f ${PPATH}/bin/basque
rm -f ${PPATH}/share/man/man1/basque.1
.PHONY: all debug profile clean vim install uninstall