Skip to content

Commit

Permalink
Add makefile
Browse files Browse the repository at this point in the history
Signed-off-by: Paul Meyer <[email protected]>
  • Loading branch information
katexochen committed Aug 6, 2023
1 parent ded34c5 commit 46ddec1
Show file tree
Hide file tree
Showing 2 changed files with 23 additions and 3 deletions.
20 changes: 20 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
@@ -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
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# `dumpasn1` - display and debug ASN.1 data

> [!NOTE]\
> Copyright Peter Gutmann <[email protected]>
> Copyright Peter Gutmann (<[email protected]>)
This is a mirror of Peter Gutmann's `dumpasn1`, adding versioning of both code and config
and automated updates from upstream.
Expand Down Expand Up @@ -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.

0 comments on commit 46ddec1

Please sign in to comment.