added -ldl dependency

This commit is contained in:
Bob Polis 2020-10-27 17:18:33 +01:00
parent c3e89e6e7d
commit bf1b16dae9

View File

@ -1,5 +1,7 @@
BIN := $(shell basename $$(pwd))
PLUGINS := rect
PLUGINS := rects
MAKE += --no-print-directory
MANSECTION := 1
MANPAGE := $(BIN).$(MANSECTION)
@ -28,11 +30,11 @@ else
CXXFLAGS += -D NDEBUG -O3
endif
LDLIBS := -lm -lpthread -lscgui -lSDL2 -lcairo -lscerror -lscstring
LDLIBS := -lm -lpthread -lscgui -lSDL2 -lcairo -lscerror -lscstring -lscscreensaver -ldl
.PHONY: all clean install modules
all: $(BIN) $(PLUGINS)
all: $(BIN) modules
$(BIN): $(OBJS) $(DEPS)
$(CXX) $(OBJS) $(LDFLAGS) $(LDLIBS) -o $(BIN)