summaryrefslogtreecommitdiffstats
path: root/.pc/0008-951-fix-calling-compiler.patch/makefiles
diff options
context:
space:
mode:
Diffstat (limited to '.pc/0008-951-fix-calling-compiler.patch/makefiles')
-rw-r--r--.pc/0008-951-fix-calling-compiler.patch/makefiles/arch/desktop.mk24
-rw-r--r--.pc/0008-951-fix-calling-compiler.patch/makefiles/gtksubdir.mk28
-rw-r--r--.pc/0008-951-fix-calling-compiler.patch/makefiles/platforms.mk15
-rw-r--r--.pc/0008-951-fix-calling-compiler.patch/makefiles/qsubdir.mk28
-rw-r--r--.pc/0008-951-fix-calling-compiler.patch/makefiles/subdir.mk48
5 files changed, 143 insertions, 0 deletions
diff --git a/.pc/0008-951-fix-calling-compiler.patch/makefiles/arch/desktop.mk b/.pc/0008-951-fix-calling-compiler.patch/makefiles/arch/desktop.mk
new file mode 100644
index 0000000..90abdf2
--- /dev/null
+++ b/.pc/0008-951-fix-calling-compiler.patch/makefiles/arch/desktop.mk
@@ -0,0 +1,24 @@
+include $(ROOTDIR)/makefiles/arch/unix.mk
+
+ifeq "$(INSTALLDIR)" ""
+ INSTALLDIR=/usr
+endif
+IMAGEDIR = $(INSTALLDIR)/share/pixmaps
+APPIMAGEDIR = $(INSTALLDIR)/share/pixmaps/%APPLICATION_NAME%
+
+
+CCACHE = $(shell if which ccache > /dev/null; then echo "ccache"; fi) #if ccache is not installed, do not use it
+CC = $(CCACHE) gcc
+AR = ar rsu
+LD = g++
+
+CFLAGS = -pipe -fno-exceptions -Wall -Wno-ctor-dtor-privacy -W -DLIBICONV_PLUG
+LDFLAGS =
+EXTERNAL_INCLUDE = $(shell $(PKG_CONFIG) --cflags fribidi)
+
+MOC = "$(shell $(PKG_CONFIG) --variable=host_bins Qt5Core)/moc"
+QTINCLUDE = $(shell $(PKG_CONFIG) --cflags Qt5Gui Qt5Widgets Qt5Network)
+UILIBS = $(shell $(PKG_CONFIG) --libs Qt5Gui Qt5Widgets Qt5Network)
+
+RM = rm -rvf
+RM_QUIET = rm -rf
diff --git a/.pc/0008-951-fix-calling-compiler.patch/makefiles/gtksubdir.mk b/.pc/0008-951-fix-calling-compiler.patch/makefiles/gtksubdir.mk
new file mode 100644
index 0000000..aed94f3
--- /dev/null
+++ b/.pc/0008-951-fix-calling-compiler.patch/makefiles/gtksubdir.mk
@@ -0,0 +1,28 @@
+include $(ROOTDIR)/makefiles/config.mk
+
+INCLUDE = $(ZINCLUDE) $(EXTERNAL_INCLUDE) $(GTKINCLUDE)
+
+HEADERS = $(wildcard *.h)
+CSOURCES = $(wildcard *.c)
+SOURCES = $(wildcard *.cpp)
+OBJECTS = $(patsubst %.c, %.o, $(CSOURCES))
+OBJECTS += $(patsubst %.cpp, %.o, $(SOURCES))
+
+.SUFFIXES: .c .cpp .o .h
+
+.c.o:
+ @echo -n 'Compiling $@ ...'
+ @$(CC) -MMD -c $(CFLAGS) $(INCLUDE) $<
+ @echo ' OK'
+
+.cpp.o:
+ @echo -n 'Compiling $@ ...'
+ @$(CC) -MMD -c $(CFLAGS) $(INCLUDE) $<
+ @echo ' OK'
+
+all: $(OBJECTS)
+
+clean:
+ @$(RM) *.o *.d
+
+-include *.d
diff --git a/.pc/0008-951-fix-calling-compiler.patch/makefiles/platforms.mk b/.pc/0008-951-fix-calling-compiler.patch/makefiles/platforms.mk
new file mode 100644
index 0000000..df83885
--- /dev/null
+++ b/.pc/0008-951-fix-calling-compiler.patch/makefiles/platforms.mk
@@ -0,0 +1,15 @@
+ifeq "$(TARGET_ARCH)$(UI_TYPE)" ""
+ include $(ROOTDIR)/makefiles/target.mk
+endif
+
+ifeq "$(TARGET_ARCH)" ""
+$(error TARGET_ARCH is not defined. Please edit $(ROOTDIR)/makefiles/target.mk)
+endif
+
+ifeq "$(UI_TYPE)" ""
+$(error UI_TYPE is not defined. Please edit $(ROOTDIR)/makefiles/target.mk)
+endif
+
+ifeq "$(TARGET_STATUS)" ""
+ TARGET_STATUS = release
+endif
diff --git a/.pc/0008-951-fix-calling-compiler.patch/makefiles/qsubdir.mk b/.pc/0008-951-fix-calling-compiler.patch/makefiles/qsubdir.mk
new file mode 100644
index 0000000..14b4efc
--- /dev/null
+++ b/.pc/0008-951-fix-calling-compiler.patch/makefiles/qsubdir.mk
@@ -0,0 +1,28 @@
+include $(ROOTDIR)/makefiles/config.mk
+-include moc.mk
+
+INCLUDE = $(QTINCLUDE) $(ZINCLUDE) $(EXTERNAL_INCLUDE)
+
+HEADERS = $(wildcard *.h)
+SOURCES = $(wildcard *.cpp)
+OBJMOC = $(patsubst %.cpp, %.o, $(SRCMOC))
+OBJECTS = $(patsubst %.cpp, %.o, $(SOURCES))
+
+.SUFFIXES: .cpp .moc.cpp .moc.o .o .h
+
+.cpp.o:
+ @echo -n 'Compiling $@ ...'
+ @$(CC) -MMD -c $(CFLAGS) $(INCLUDE) $<
+ @echo ' OK'
+
+.h.moc.cpp:
+ @echo -n 'Generating $@ ...'
+ @$(MOC) $< -o $@
+ @echo ' OK'
+
+all: $(OBJECTS) $(OBJMOC)
+
+clean:
+ @$(RM) *.o *.moc.cpp *.d
+
+-include *.d
diff --git a/.pc/0008-951-fix-calling-compiler.patch/makefiles/subdir.mk b/.pc/0008-951-fix-calling-compiler.patch/makefiles/subdir.mk
new file mode 100644
index 0000000..b364211
--- /dev/null
+++ b/.pc/0008-951-fix-calling-compiler.patch/makefiles/subdir.mk
@@ -0,0 +1,48 @@
+include $(ROOTDIR)/makefiles/config.mk
+
+INCLUDE = $(ZINCLUDE) $(EXTERNAL_INCLUDE)
+
+HEADERS = $(wildcard *.h)
+SOURCES_CPP = $(wildcard *.cpp)
+SOURCES_OBJCPP = $(wildcard *.M)
+SOURCES_OBJC = $(wildcard *.m)
+OBJECTS = $(patsubst %.cpp, %.o, $(SOURCES_CPP)) $(patsubst %.M, %.o, $(SOURCES_OBJCPP)) $(patsubst %.m, %.o, $(SOURCES_OBJC))
+
+.SUFFIXES: .cpp .M .m .o .h
+
+.cpp.o:
+ @echo -n 'Compiling $@ ...'
+ifdef CFLAGS_NOARCH
+ @$(CC) -MM $(CFLAGS_PRE) $(INCLUDE) $< -o `basename $< .cpp`.d
+ @$(CC) -c $(CFLAGS) $(INCLUDE) $<
+else
+ @$(CC) -MMD -c $(CFLAGS) $(INCLUDE) $<
+endif
+ @echo ' OK'
+
+.M.o:
+ @echo -n 'Compiling $@ ...'
+ifdef CFLAGS_NOARCH
+ @$(CC) -MM $(CFLAGS_PRE) $(INCLUDE) $< -o `basename $< .M`.d
+ @$(CC) -c $(CFLAGS) $(INCLUDE) $<
+else
+ @$(CC) -MMD -c $(CFLAGS) $(INCLUDE) $<
+endif
+ @echo ' OK'
+
+.m.o:
+ @echo -n 'Compiling $@ ...'
+ifdef CFLAGS_NOARCH
+ @$(CC) -MM $(CFLAGS_PRE) $(INCLUDE) $< -o `basename $< .m`.d
+ @$(CC) -c $(CFLAGS) $(INCLUDE) $<
+else
+ @$(CC) -MMD -c $(CFLAGS) $(INCLUDE) $<
+endif
+ @echo ' OK'
+
+all: $(OBJECTS)
+
+clean:
+ @$(RM) *.o *.s *.ld *.d
+
+-include *.d