diff options
| author | Dirk Engling <erdgeist@erdgeist.org> | 2026-11-02 17:02:39 +0100 |
|---|---|---|
| committer | Dirk Engling <erdgeist@erdgeist.org> | 2026-11-02 17:02:39 +0100 |
| commit | 3f3114921d643d347c8c9ad1e85de07d101c3e9f (patch) | |
| tree | 270eadb8a3a787ddc789919c4f1989f658303096 /Mk/proxy.mk | |
| parent | 28d6bf03e1bb8c38fb7e09ade3c5a9c58d68182e (diff) | |
Split the Makefile into Mk fragments and fix the default target
Diffstat (limited to 'Mk/proxy.mk')
| -rw-r--r-- | Mk/proxy.mk | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/Mk/proxy.mk b/Mk/proxy.mk new file mode 100644 index 0000000..2e876e9 --- /dev/null +++ b/Mk/proxy.mk | |||
| @@ -0,0 +1,25 @@ | |||
| 1 | # The proxy relays sync traffic between trackers and between multicast domains | ||
| 2 | # that cannot reach each other. It does not build; see the note at the top of | ||
| 3 | # proxy.c. Scheduled for v1.1.0, when these rules come back. | ||
| 4 | # | ||
| 5 | # LIBOWFAT_HEADERS=$(PREFIX)/libowfat | ||
| 6 | # LIBOWFAT_LIBRARY=$(PREFIX)/libowfat | ||
| 7 | # CFLAGS_libowfat=-I$(LIBOWFAT_HEADERS) | ||
| 8 | # LDFLAGS_libowfat=-L$(LIBOWFAT_LIBRARY) -lowfat | ||
| 9 | # | ||
| 10 | # SOURCES_proxy=proxy.c ot_batch.c ot_fdstate.c ot_vector.c ot_mutex.c ot_random.c ot_scan.c ot_ip.c ot_socket.c | ||
| 11 | # CFLAGS_proxy=$(CFLAGS_production) $(CFLAGS_libowfat) -DWANT_SYNC_LIVE | ||
| 12 | # CFLAGS_proxy_debug=$(CFLAGS_debug) $(CFLAGS_libowfat) -DWANT_SYNC_LIVE | ||
| 13 | # | ||
| 14 | # BINARIES+=proxy proxy.debug | ||
| 15 | # | ||
| 16 | # proxy: $(SOURCES_proxy) $(HEADERS) $(BUILDDEPS) | ||
| 17 | # $(CC) -o $@ $(CFLAGS_proxy) $(SOURCES_proxy) $(LDFLAGS) $(LDFLAGS_libowfat) | ||
| 18 | # proxy.debug: $(SOURCES_proxy) $(HEADERS) $(BUILDDEPS) | ||
| 19 | # $(CC) -o $@ $(CFLAGS_proxy_debug) $(SOURCES_proxy) $(LDFLAGS) $(LDFLAGS_libowfat) | ||
| 20 | |||
| 21 | proxy proxy.debug: | ||
| 22 | @echo "$@ is out of service until v1.1.0, see the note at the top of proxy.c" | ||
| 23 | @false | ||
| 24 | |||
| 25 | .PHONY: proxy proxy.debug | ||
