summaryrefslogtreecommitdiff
path: root/glcdskin/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'glcdskin/Makefile')
-rw-r--r--glcdskin/Makefile20
1 files changed, 13 insertions, 7 deletions
diff --git a/glcdskin/Makefile b/glcdskin/Makefile
index 9b3b867..90fe310 100644
--- a/glcdskin/Makefile
+++ b/glcdskin/Makefile
@@ -7,8 +7,8 @@
CXXFLAGS += -fPIC
-VERMAJOR = 1
-VERMINOR = 0
+VERMAJOR = 2
+VERMINOR = 1
VERMICRO = 0
BASENAME = libglcdskin.so
@@ -19,17 +19,23 @@ OBJS = cache.o config.o display.o font.o function.o object.o parser.o skin.o str
HEADERS = cache.h config.h display.h font.h function.h object.h parser.h skin.h string.h type.h variable.h xml.h
+
+### Inner graphlcd-base dependencies
+LIBS += -L../glcdgraphics -lglcdgraphics -L../glcddrivers -lglcddrivers
+
+ifdef HAVE_FONTCONFIG
+ LIBS += -lfontconfig
+ DEFINES += -DHAVE_FONTCONFIG
+endif
+
### Implicit rules:
%.o: %.c
- $(CXX) $(CXXFLAGS) -I.. -c $(DEFINES) $(INCLUDES) $<
+ $(CXX) $(CXXEXTRA) $(CXXFLAGS) -I.. -c $(DEFINES) $(INCLUDES) $<
# Dependencies:
-MAKEDEP = g++ -MM -MG
-DEPFILE = .dependencies
-$(DEPFILE): Makefile
- @$(MAKEDEP) $(DEFINES) $(INCLUDES) $(OBJS:%.o=%.c) > $@
+DEPFILE = $(OBJS:%.o=%.d)
-include $(DEPFILE)