Merge branch 'fix-changelogs' into 'main'
[tor.git] / src / ext / timeouts / lua / Rules.mk
blob0f06fce30bd6a0cd5612aac939bad76126af547f
1 $(LUA_APIS:%=$(top_builddir)/lua/%/timeout.so): $(top_srcdir)/lua/timeout-lua.c $(top_srcdir)/timeout.h $(top_srcdir)/timeout.c
2 mkdir -p $(@D)
3 @$(SHRC); echo_cmd $(CC) -o $@ $(top_srcdir)/lua/timeout-lua.c -I$(top_srcdir) -DWHEEL_BIT=$(WHEEL_BIT) -DWHEEL_NUM=$(WHEEL_NUM) $(LUA53_CPPFLAGS) $(ALL_CPPFLAGS) $(ALL_CFLAGS) $(ALL_SOFLAGS) $(ALL_LDFLAGS) $(ALL_LIBS)
5 $(top_builddir)/lua/5.1/timeouts.so: $(top_builddir)/lua/5.1/timeout.so
6 $(top_builddir)/lua/5.2/timeouts.so: $(top_builddir)/lua/5.2/timeout.so
7 $(top_builddir)/lua/5.3/timeouts.so: $(top_builddir)/lua/5.3/timeout.so
9 $(LUA_APIS:%=$(top_builddir)/lua/%/timeouts.so):
10 cd $(@D) && ln -fs timeout.so timeouts.so
12 lua-5.1: $(top_builddir)/lua/5.1/timeout.so $(top_builddir)/lua/5.1/timeouts.so
13 lua-5.2: $(top_builddir)/lua/5.2/timeout.so $(top_builddir)/lua/5.2/timeouts.so
14 lua-5.3: $(top_builddir)/lua/5.3/timeout.so $(top_builddir)/lua/5.3/timeouts.so
16 lua-clean:
17 $(RM) -r $(top_builddir)/lua/5.?
19 clean: lua-clean