blob: de1142340443ec8c3c9f5102affbc1ae22157858 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
|
CC = clang++
RM = rm -f
PREFIX ?= /usr/local
CXXFLAGS += $(shell pkg-config --cflags --libs luajit ) -I./include -L/usr/lib
default: pkgit
pkgit: src/main.cc
${CC} -o pkgit src/*.cc ${CXXFLAGS}
chmod +x pkgit
install: pkgit
install -d ${DESTDIR}${PREFIX}/bin
install -m 755 pkgit ${DESTDIR}${PREFIX}/bin/pkgit
luatest: src/lua_build.cc
${CC} -o luatest src/lua_build.cc ${CXXFLAGS}
chmod +x luatest
repotest: src/setup_repo.cc
${CC} -o repotest src/setup_repo.cc ${CXXFLAGS}
chmod +x repotest
|