2017-02-08 21:14:30 +00:00
|
|
|
all: compile
|
|
|
|
|
|
|
|
%.o: %.c
|
2018-02-23 00:05:27 +00:00
|
|
|
$(CC) $(CPPFLAGS) $(CFLAGS) -D_GNU_SOURCE -std=c99 -Wall -Wextra -fPIC -fvisibility=hidden -c -o $@ $<
|
2017-02-08 21:14:30 +00:00
|
|
|
|
|
|
|
clean:
|
|
|
|
rm -f parser.so *.o
|
|
|
|
|
|
|
|
parser.so: template_parser.o template_utils.o template_lmo.o template_lualib.o
|
|
|
|
$(CC) $(LDFLAGS) -shared -o $@ $^
|
|
|
|
|
2019-11-23 13:35:45 +00:00
|
|
|
gluon-po2lmo: gluon-po2lmo.o template_lmo.o
|
|
|
|
|
2017-02-08 21:14:30 +00:00
|
|
|
compile: parser.so
|
|
|
|
|
|
|
|
install: compile
|
|
|
|
mkdir -p $(DESTDIR)/usr/lib/lua/gluon/web/template
|
|
|
|
cp parser.so $(DESTDIR)/usr/lib/lua/gluon/web/template/parser.so
|