Skip to content

Commit

Permalink
Add makefile.
Browse files Browse the repository at this point in the history
  • Loading branch information
diegomacario committed Jan 7, 2017
1 parent 047a635 commit e7b1ff9
Showing 1 changed file with 18 additions and 0 deletions.
18 changes: 18 additions & 0 deletions code/Makefile
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
CXX = g++
cc = gcc

LIB = -lpthread -ldl
BIN = sqlite pfox

all : $(BIN)
sqlite : sqlite3.c shell.c
$(cc) -o $@ $^ $(LIB)
pfox : main.cpp sqlite3.o
$(CXX) -o $@ $^ $(LIB)
sqlite3.o : sqlite3.c
$(cc) -o $@ -c $^

clean :
rm -f $(BIN)

.PHONY: all, clean

0 comments on commit e7b1ff9

Please sign in to comment.