Skip to content

Commit

Permalink
Fixups to allow execution with 'dub run acme-lw-d -- <options>'
Browse files Browse the repository at this point in the history
  • Loading branch information
cschlote committed Jun 5, 2019
1 parent bdb1cc0 commit 227c0a1
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 4 deletions.
6 changes: 6 additions & 0 deletions README.md
Expand Up @@ -31,6 +31,12 @@ To run the unittests:
dub test
```

Run it as a dub package:
```
dub fetch acme-lw-d
dub run acme-lw-d -- -h
```

#### Let's Encrypt Credentials

To use any _Let's Encrypt_ client you need to sign requests with your _Let's Encrypt_'s account's private key.
Expand Down
8 changes: 6 additions & 2 deletions dub.json
Expand Up @@ -10,6 +10,10 @@
"dependencies": {
"openssl": "~>2.0.0+1.1.0h"
},
"lflags": [ "-lcurl", "openssl_glues.o" ],
"preBuildCommands": [ "make -C source/acme/ all"]
"lflags": [ "-lcurl" ],
"sourcePaths": [ "source/acme" ],
"sourceFiles": [ "openssl_glues.o" ],
"mainSourceFile": "source/app.d",
"targetType": "executable",
"preBuildCommands": [ "pwd", "make -C $${DUB_PACKAGE_DIR}/source/acme/ all"]
}
6 changes: 4 additions & 2 deletions source/acme/Makefile
Expand Up @@ -9,11 +9,13 @@ DISASM = $(OBJS:%.o=%.asm)
%.asm : %.o
$(CROSSCOMPILE)objdump -dSth $< | ddemangle > $@

%.o : %.d
%.o : %.d ; Makefile
$(CROSSCOMPILE)$(DC) -c $(DFLAGS) $< -of $@

%.o : %.c
%.o : %.c ; Makefile %.h
pwd
$(CROSSCOMPILE)$(CC) -c $(CFLAGS) $< -o $@
ls

openssl_glues.di : openssl_glues.h Makefile
@echo "Create DI file : openssl_glues.di"
Expand Down

0 comments on commit 227c0a1

Please sign in to comment.