40 lines
731 B
Makefile
40 lines
731 B
Makefile
CFLAGS := -Wall -O3 -g -D_GNU_SOURCE
|
|
LDFLAGS := -lm
|
|
|
|
CFLAGS += `pkg-config ftgl pugl-0 --cflags`
|
|
LDFLAGS += `pkg-config ftgl pugl-0 --libs`
|
|
|
|
PUISRC := button.cpp
|
|
PUISRC += container.cpp
|
|
PUISRC += label.cpp
|
|
PUISRC += lv2pui.cpp
|
|
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
|
|
|
|
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
|
|
|
|
%.o: %.cpp
|
|
$(CPP) -c -fPIC $(CFLAGS) $< -o $@
|
|
|