Split UI from plugin

master
Peter Nelson 2013-02-03 13:49:18 +00:00
parent 2687087805
commit ed6842bf22
2 changed files with 18 additions and 9 deletions

View File

@ -1,20 +1,26 @@
CFLAGS := -Wall -O3 -g -D_GNU_SOURCE
LDFLAGS := -lm
CFLAGS += `pkg-config lv2core pugl-0 --cflags`
LDFLAGS += `pkg-config lv2core pugl-0 --libs`
PTAPSRC := ptap.cpp
PTAPSRC += ptapui.cpp
PTAPOBJ := $(PTAPSRC:.cpp=.o) ../pui/*.o
PTAPOBJ := $(PTAPSRC:.cpp=.o)
PTAPO := ptap.so
$(PTAPOBJ): CFLAGS += `pkg-config lv2core --cflags`
$(PTAPO): LDFLAGS += `pkg-config lv2core --libs`
PTAPUISRC := ptapui.cpp
PTAPUIOBJ := $(PTAPUISRC:.cpp=.o) ../pui/*.o
PTAPUIO := ptapui.so
$(PTAPUIOBJ): CFLAGS += `pkg-config lv2core pugl-0 --cflags`
$(PTAPUIO): LDFLAGS += `pkg-config lv2core pugl-0 --libs`
CPP := g++
all: $(PTAPO)
all: $(PTAPO) $(PTAPUIO)
clean:
rm $(PTAPOBJ) $(PTAPO)
rm $(PTAPOBJ) $(PTAPO) $(PTAOUIOBJ) $(PTAPUIO)
depend:
makedepend $(PTAPSRC)
@ -22,6 +28,9 @@ depend:
$(PTAPO): $(PTAPOBJ)
$(CPP) $(LDFLAGS) -shared -fPIC -Wl,-soname,$(PTAPO) $(PTAPOBJ) -o $@
.cpp.o:
$(PTAPUIO): $(PTAPUIOBJ)
$(CPP) $(LDFLAGS) -shared -fPIC -Wl,-soname,$(PTAPUIO) $(PTAPUIOBJ) -o $@
%.o: %.cpp
$(CPP) -c -fPIC $(CFLAGS) $< -o $@

View File

@ -10,7 +10,7 @@
<urn:fuzzle:ptap#X11UI>
a ui:X11UI;
ui:binary <ptap.so>.
ui:binary <ptapui.so>.
<default.ttl>
a pset:Preset ;