Permalink
Switch branches/tags
Nothing to show
Find file
Fetching contributors…
Cannot retrieve contributors at this time
26 lines (17 sloc) 433 Bytes
NEKOPATH = /usr/lib/neko/include/
CC = c++
CFLAGS = -Wall -shared -I$(NEKOPATH) -fPIC
LDFLAGS = -lmongoclient -lboost_thread-mt -lboost_filesystem -lboost_program_options -lneko
OUT = nmongo.ndll
OBJ = src/nmongo.o src/bson.o
all: $(OBJ)
$(CC) $(CFLAGS) -o $(OUT) $(OBJ) $(LDFLAGS)
src/%.o: src/%.cpp
$(CC) $(CFLAGS) -c -o $@ $<
.PHONY: clean haxe test
clean:
rm -f src/*.o
haxe:
haxe build.hxml
test: haxe
neko test.n