aboutsummaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorOmar Polo <op@omarpolo.com>2021-12-29 18:01:08 +0000
committerOmar Polo <op@omarpolo.com>2021-12-29 18:01:08 +0000
commit5c7abf01515677804eeb2cf083e33e4ddd742caf (patch)
treeb9ba79695a9b3cf735515e9b5a171a2b9c3f808d /Makefile
parentfe903d30e76e89e5242c517dba13f074e645a4ad (diff)
reimplement gg
This is a better version of gg. Initially it grew with flags directly needed to the specific test cases I wanted to write, so it's ugly to use but handy for tests. This is a new and re-thought implementation that it is (hopefully) easier to use both and "curl-like for gemini" but also for scripts and tests cases. One completely new feature is the proxying support with -P to send the request to the given host.
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile5
1 files changed, 4 insertions, 1 deletions
diff --git a/Makefile b/Makefile
index 6af9942..fd02c84 100644
--- a/Makefile
+++ b/Makefile
@@ -4,7 +4,7 @@ TESTS=
.PHONY: all static clean regress install
-all: Makefile.local gmid TAGS compile_flags.txt
+all: Makefile.local gmid gg TAGS compile_flags.txt
Makefile.local: configure
./configure
@@ -21,6 +21,9 @@ OBJS = ${SRCS:.c=.o} y.tab.o ${COMPAT}
gmid: ${OBJS}
${CC} ${OBJS} -o gmid ${LDFLAGS}
+gg: gg.o iri.o utf8.o ${COMPAT}
+ ${CC} gg.o iri.o utf8.o ${COMPAT} -o $@ ${LDFLAGS}
+
static: ${OBJS}
${CC} ${OBJS} -o gmid ${LDFLAGS} ${STATIC}