Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
tree: 10bcd26f5c
Fetching contributors…

Cannot retrieve contributors at this time

52 lines (45 sloc) 1.963 kb
include_rules
client_objs += src/tup/vardict.o
client_objs += src/tup/access_event/send_event.o
client_objs += src/tup/flock/fcntl.o
: $(client_objs) |> !ar |> libtup_client.a
: src/tup/vardict.h |> !cp |> tup_client.h
srcs = src/tup/*.o
srcs += src/tup/access_event/*.o
srcs += src/tup/monitor/*.o
srcs += src/tup/flock/*.o
srcs += src/tup/server/*.o
ifeq (@(TUP_USE_SYSTEM_SQLITE),y)
LDFLAGS += -lsqlite3
else
srcs += src/sqlite3/*.o
endif
srcs += src/inih/*.o
srcs += src/compat/*.o
: $(srcs) |> !ar |> libtup.a
ifeq (@(TUP_SUDO_SUID),y)
suid = ; chown root:root tup; chmod u+s tup
endif
LDFLAGS += `pkg-config fuse --libs`
: src/tup/tup/main.o libtup.a |> ^ LINK tup^ version=`git describe`; echo "const char *tup_version(void) {return \"$version\";}" | $(CC) -x c -c - -o tup-version.o $(CFLAGS) -Wno-missing-prototypes; $(CC) %f tup-version.o -o tup -lpthread $(LDFLAGS) $(suid) |> tup tup-version.o
ifneq (@(TUP_MINGW),)
: src/dllinject/*.omingw |> ^ MINGW32LINK %o^ @(TUP_MINGW)-gcc -shared %f -lws2_32 -lpsapi -lshlwapi -o %o |> tup-dllinject.dll
mingwsrcs = src/tup/*.omingw
mingwsrcs += src/tup/access_event/*.omingw
mingwsrcs += src/tup/monitor/*.omingw
mingwsrcs += src/tup/tup/*.omingw
mingwsrcs += src/tup/flock/*.omingw
mingwsrcs += src/tup/server/*.omingw
mingwsrcs += src/inih/*.omingw
mingwsrcs += src/sqlite3/*.omingw
mingwsrcs += src/compat/*.omingw
mingwsrcs += src/compat/win32/*.omingw
MINGWLDFLAGS += -Wl,--wrap=open
MINGWLDFLAGS += -Wl,--wrap=close
MINGWLDFLAGS += -Wl,--wrap=tmpfile
MINGWLDFLAGS += -Wl,--wrap=stat
MINGWLDFLAGS += -Wl,--wrap=dup
MINGWLDFLAGS += -Wl,--wrap=__mingw_vprintf
MINGWLDFLAGS += -Wl,--wrap=__mingw_vfprintf
: $(mingwsrcs) tup-dllinject.dll |> ^ MINGW32LINK tup.exe^ version=`git describe`; echo "const char *tup_version(void) {return \"$version\";}" | @(TUP_MINGW)-gcc -x c -c - -o tup-version.omingw; @(TUP_MINGW)-gcc %f tup-version.omingw $(MINGWLDFLAGS) -o tup.exe |> tup.exe tup-version.omingw
endif
Jump to Line
Something went wrong with that request. Please try again.