Skip to content

Commit

Permalink
add Makefile
Browse files Browse the repository at this point in the history
  • Loading branch information
ltalirz committed Oct 17, 2018
1 parent 52f5d23 commit 193472e
Show file tree
Hide file tree
Showing 3 changed files with 19 additions and 0 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
*.pyc
.DS_Store
eqeq
18 changes: 18 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
CC = g++
CFLAGS = -O3

default: eqeq

all: eqeq pybindings

eqeq: main.cpp
$(CC) $(CFLAGS) $< -o $@

pybindings: main.cpp
$(CC) -c -fPIC $(CFLAGS) $< -o eqeq.o
$(CC) -shared -Wl,-install_name,libeqeq.so $(CFLAGS) -o libeqeq.so eqeq.o

.PHONY: clean

clean:
rm -f eqeq.o eqeq libeqeq.so
Binary file removed eqeq
Binary file not shown.

0 comments on commit 193472e

Please sign in to comment.