summaryrefslogtreecommitdiff
path: root/npapi-plugin/Makefile
blob: d5b46a488acd385d1e12e6b2aad4e765f1fc64db (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
# compiler and linker
CC = g++

# Customize below to fit your system

INCS = `pkg-config --libs --cflags zeitgeist-1.0` -I./third_party -I./third_party/npapi -I./
#INCS = `pkg-config --libs --cflags libxul nspr zeitgeist-1.0`
CPPFLAGS = -DXULRUNNER_SDK
CFLAGS = -g -pedantic -fPIC -Wall -std=c++0x -O2 ${INCS}

OUTPUT = libzeitgeist-npapi-plugin.so

all: $(OUTPUT)

$(OUTPUT): np-zeitgeist.c
	$(CC) -Wl,--no-undefined -shared -o $@ $(CFLAGS) $<

clean:
	rm -f $(OUTPUT)