diff --git a/Makefile b/Makefile new file mode 100644 index 0000000..3a61086 --- /dev/null +++ b/Makefile @@ -0,0 +1,20 @@ +CC ?= gcc +CFLAGS ?= -g -Wall +DESTDIR ?= +INSTALL ?= install +INSTALL_PROGRAM ?= $(INSTALL) +INSTALL_DATA ?= $(INSTALL) -m 0644 +prefix ?= /usr/local +exec_prefix ?= $(prefix) +bindir ?= $(exec_prefix)/bin +sysconfdir ?= $(prefix)/etc + +dumpasn1: dumpasn1.c + $(CC) $(CFLAGS) -o $@ $< + +install: + $(INSTALL_PROGRAM) -v -m 0755 -D dumpasn1 $(DESTDIR)$(bindir)/dumpasn1 + $(INSTALL_DATA) -v -D dumpasn1.cfg $(DESTDIR)$(sysconfdir)/dumpasn1.cfg + +clean: + $(RM) dumpasn1 *.o diff --git a/README.md b/README.md index c057d77..eefd7d9 100644 --- a/README.md +++ b/README.md @@ -1,7 +1,7 @@ # `dumpasn1` - display and debug ASN.1 data > [!NOTE]\ -> Copyright Peter Gutmann +> Copyright Peter Gutmann () This is a mirror of Peter Gutmann's `dumpasn1`, adding versioning of both code and config and automated updates from upstream. @@ -103,6 +103,6 @@ this repository, so you can always follow the original license of the source if ## Related -- [Peter Gutmann's website](https://www.cs.auckland.ac.nz/~pgut001/#standards) has more information on `dumpasn1`, +- [**Peter Gutmann's website**](https://www.cs.auckland.ac.nz/~pgut001/#standards) has more information on `dumpasn1`, security standards and an X.509 style guide. -- [ASN.1 online decoder](http://lapo.it/asn1js/) provides a nice interface to debug your ASN.1 in browser. +- [**ASN.1 online decoder**](http://lapo.it/asn1js/) provides a nice interface to debug your ASN.1 in browser.