Add helper util to build rdf.

This commit is contained in:
2013-02-06 23:10:53 +00:00
parent d86d43eddd
commit a460b65485
6 changed files with 347 additions and 203 deletions

View File

@@ -1,3 +1,4 @@
CFLAGS := -Wall -O3 -g -D_GNU_SOURCE
LDFLAGS := -lm
@@ -9,7 +10,7 @@ $(PTAPOBJ): CFLAGS += `pkg-config lv2 --cflags`
$(PTAPO): LDFLAGS += `pkg-config lv2 --libs`
PTAPUISRC := ptapui.cpp
PTAPUIOBJ := $(PTAPUISRC:.cpp=.o) ../pui/*.o
PTAPUIOBJ := $(PTAPUISRC:.cpp=.o)
PTAPUIO := ptapui.so
$(PTAPUIOBJ): CFLAGS += `pkg-config lv2 ftgl pugl-0 --cflags`
@@ -17,7 +18,7 @@ $(PTAPUIO): LDFLAGS += `pkg-config lv2 ftgl pugl-0 --libs`
CPP := g++
all: $(PTAPO) $(PTAPUIO)
all: $(PTAPO) $(PTAPUIO) ptap.ttl
clean:
rm $(PTAPOBJ) $(PTAPO) $(PTAPUIOBJ) $(PTAPUIO)
@@ -25,11 +26,21 @@ clean:
depend:
makedepend $(PTAPSRC)
ptap.ttl: ptap_helper
./ptap_helper rdf $@
ptap_helper: ptap_helper.cpp ptap.h
$(CPP) $(CFLAGS) $(LDFLAGS) $< -o $@
$(PTAPOBJ): $(PTAPSRC) ptap.h
$(PTAPUIOBJ): $(PTAPUISRC) ptap.h
$(PTAPO): $(PTAPOBJ)
$(CPP) $(LDFLAGS) -shared -fPIC -Wl,-soname,$(PTAPO) $(PTAPOBJ) -o $@
$(PTAPUIO): $(PTAPUIOBJ)
$(CPP) $(LDFLAGS) -shared -fPIC -Wl,-soname,$(PTAPUIO) $(PTAPUIOBJ) -o $@
$(PTAPUIO): $(PTAPUIOBJ) ../pui/*.o
$(CPP) $(LDFLAGS) -shared -fPIC -Wl,-soname,$(PTAPUIO) $(PTAPUIOBJ) ../pui/*.o -o $@
%.o: %.cpp
$(CPP) -c -fPIC $(CFLAGS) $< -o $@