From a547d7d49b8df99476c334585189b1ec9f5e8dcc Mon Sep 17 00:00:00 2001 From: hasufell Date: Mon, 14 Apr 2014 23:51:33 +0200 Subject: [PATCH] BUILD: add target "main" for testing main.c does not belong in this repository, but might be used for testing locally. --- src/Makefile | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/Makefile b/src/Makefile index d500c7f..95b5320 100644 --- a/src/Makefile +++ b/src/Makefile @@ -78,6 +78,10 @@ libpqc.so: libpqc.a $(PQC_HEADERS) $(LIBTOMMATH) $(LIBTOMPOLY) $(CC) -shared $(CFLAGS) -o $@ $(LDFLAGS) \ libpqc.a $(LIBTOMMATH) $(LIBTOMPOLY) $(LIBS) +main: main.o libpqc.a $(LIBTOMMATH) $(LIBTOMPOLY) + $(CC) $(CFLAGS) -o $@ $(LDFLAGS) \ + main.o libpqc.a $(LIBTOMMATH) $(LIBTOMPOLY) $(LIBS) + install: $(INSTALL_DIR) "$(DESTDIR)$(INSTALL_BINDIR)" [ -e libpqc.so ] && $(INSTALL_DIR) "$(DESTDIR)$(INSTALL_LIBDIR)"