mirror of
https://github.com/octoleo/lsyncd.git
synced 2024-12-13 14:43:09 +00:00
21 lines
499 B
Makefile
21 lines
499 B
Makefile
AUTOMAKE_OPTIONS = foreign
|
|
CFLAGS = -Wall $(LIBLUA_CFLAGS)
|
|
bin_PROGRAMS = lsyncd
|
|
lsyncd_SOURCES = lsyncd.c
|
|
lsyncd_LDADD = $(LIBLUA_LIBS)
|
|
|
|
if RUNNER
|
|
else
|
|
lsyncd: luac.o $(lsyncd_LDADD)
|
|
|
|
architecture: | lsyncd.o
|
|
objdump -f $< | grep architecture | sed -e "s/,.*$$//" -e "s/[^ ]* \(.*\)/\1/" > $@ || rm architecture
|
|
|
|
luac.o: luac.out architecture
|
|
objcopy --input-target=binary --output-target=`gcc -dumpmachine` --binary-architecture=`cat architecture` $< $@
|
|
|
|
luac.out: lsyncd.lua
|
|
luac $<
|
|
endif
|
|
|