pplugins/pui/Makefile

40 lines
731 B
Makefile
Raw Normal View History

2013-02-03 02:25:17 +00:00
CFLAGS := -Wall -O3 -g -D_GNU_SOURCE
LDFLAGS := -lm
CFLAGS += `pkg-config ftgl pugl-0 --cflags`
LDFLAGS += `pkg-config ftgl pugl-0 --libs`
2013-02-03 02:25:17 +00:00
2013-02-08 21:37:03 +00:00
PUISRC := button.cpp
PUISRC += container.cpp
PUISRC += label.cpp
PUISRC += lv2pui.cpp
2013-02-03 02:25:17 +00:00
PUISRC += knob.cpp
PUISRC += pui.cpp
PUISRC += slider.cpp
PUISRC += textures.cpp
PUISRC += widget.cpp
PUIOBJ := $(PUISRC:.cpp=.o)
CPP := g++
all: $(PUIOBJ)
clean:
rm $(PUIOBJ) $(PUIO) font/vera.h
2013-02-03 02:25:17 +00:00
depend:
makedepend $(PUISRC)
#$(PUIO): $(PUIOBJ)
# $(CPP) -dynamiclib $(LDFLAGS) -static $(PUIOBJ) -o $@
# $(CPP) $(LDFLAGS) -shared -fPIC -Wl,-soname,$(PUIO) $(PUIOBJ) -o $@
textures.cpp: font/vera.h
font/vera.h:
xxd -i font/Vera.ttf > font/vera.h
2013-02-03 02:25:17 +00:00
%.o: %.cpp
$(CPP) -c -fPIC $(CFLAGS) $< -o $@