BUILD: add target "main" for testing

main.c does not belong in this repository, but
might be used for testing locally.
This commit is contained in:
hasufell 2014-04-14 23:51:33 +02:00
parent 5df1ebbb45
commit a547d7d49b
No known key found for this signature in database
GPG Key ID: 220CD1C5BDEED020
1 changed files with 4 additions and 0 deletions

View File

@ -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)"