Skip to content

Commit 2a1e87d

Browse files
committed
Update build instructions
1 parent 6681fab commit 2a1e87d

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,10 +15,10 @@ gcc -shared -fPIC -o doorstop.so doorstop.c
1515

1616
macOS:
1717
```sh
18-
gcc -shared -fPIC -o doorstop.dylib doorstop.c
18+
gcc -shared -fPIC -o doorstop.dylib doorstop.c plthook_osx.c
1919
```
2020

21-
Or run `make` to generate both x86 and x64 builds.
21+
Or run either `make build_x64` or `make build_x86` depending on your architecture.
2222

2323
## How to use
2424

makefile

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,17 @@
11
CC=gcc
22
CCFLAGS=-shared -fPIC
3-
FILES=doorstop.c
43

54
UNAME_S := $(shell uname -s)
65

76
ifeq ($(UNAME_S), Linux)
87
EXT = so
98
CCFLAGS += -D LINUX
9+
FILES=doorstop.c
1010
endif
1111
ifeq ($(UNAME_S), Darwin)
1212
EXT = dylib
1313
CCFLAGS += -D OSX
14+
FILES=doorstop.c plthook_osx.c
1415
endif
1516

1617
build: build_x86 build_x64

0 commit comments

Comments
 (0)