Add lib/libkdchart
This commit is contained in:
parent
67e00fcaa1
commit
9e1686bd6e
26
Makefile
26
Makefile
|
@ -23,17 +23,17 @@ MOC_HEADERS=$(shell find src/view -name '*.hpp' -type f | tr '\n' ' ')
|
||||||
MOCS=$(MOC_HEADERS:.hpp=.objs)
|
MOCS=$(MOC_HEADERS:.hpp=.objs)
|
||||||
MOCS_OBJS=$(MOC_HEADERS:.hpp=.moc)
|
MOCS_OBJS=$(MOC_HEADERS:.hpp=.moc)
|
||||||
|
|
||||||
CXXFLAGS+=-Ilibkdchart/include -Ilibkdchart/src -Ilibkdchart/kdablibfakes/include
|
CXXFLAGS+=-Ilib/libkdchart/include -Ilib/libkdchart/src -Ilib/libkdchart/kdablibfakes/include
|
||||||
CXXFLAGS+=-DKDCHART_BUILD_KDCHART_LIB
|
CXXFLAGS+=-DKDCHART_BUILD_KDCHART_LIB
|
||||||
KDCHART_SOURCES=$(shell find libkdchart/src -name '*.cpp' -type f | tr '\n' ' ')
|
KDCHART_SOURCES=$(shell find lib/libkdchart/src -name '*.cpp' -type f | tr '\n' ' ')
|
||||||
KDCHART_OBJS=$(KDCHART_SOURCES:.cpp=.o)
|
KDCHART_OBJS=$(KDCHART_SOURCES:.cpp=.o)
|
||||||
UI_CHARTSELECTOR=libkdchart/src/ui_KDChartDatasetSelector.h
|
UI_CHARTSELECTOR=lib/libkdchart/src/ui_KDChartDatasetSelector.h
|
||||||
KDCHART_MOC_HEADERS=$(shell find libkdchart/src -name '*.h' -type f | tr '\n' ' ')
|
KDCHART_MOC_HEADERS=$(shell find lib/libkdchart/src -name '*.h' -type f | tr '\n' ' ')
|
||||||
KDCHART_MOCS=$(KDCHART_MOC_HEADERS:.h=.objs)
|
KDCHART_MOCS=$(KDCHART_MOC_HEADERS:.h=.objs)
|
||||||
KDCHART_MOCS_OBJS=$(KDCHART_MOC_HEADERS:.h=.moc)
|
KDCHART_MOCS_OBJS=$(KDCHART_MOC_HEADERS:.h=.moc)
|
||||||
LDFLAGS+=libkdchart.a
|
LDFLAGS+=lib/libkdchart.a
|
||||||
|
|
||||||
all: mojito libkdchart.a kc
|
all: mojito lib/libkdchart.a kc
|
||||||
|
|
||||||
clean_all: clean clean_libkdchart
|
clean_all: clean clean_libkdchart
|
||||||
|
|
||||||
|
@ -61,18 +61,18 @@ mojito : $(MOCS_OBJS) $(KDCHART_MOCS_OBJS)
|
||||||
kc: $(MOCS) $(OBJS)
|
kc: $(MOCS) $(OBJS)
|
||||||
$(CXX) $(CXXFLAGS) $^ -o $@ $(LDFLAGS)
|
$(CXX) $(CXXFLAGS) $^ -o $@ $(LDFLAGS)
|
||||||
|
|
||||||
$(UI_CHARTSELECTOR): libkdchart/src/KDChartDatasetSelector.ui
|
$(UI_CHARTSELECTOR): lib/libkdchart/src/KDChartDatasetSelector.ui
|
||||||
uic $< > $(UI_CHARTSELECTOR)
|
uic $< > $(UI_CHARTSELECTOR)
|
||||||
sed s/KDCHARTDATASETSELECTOR_H/UI_KDCHARTDATASETSELECTOR_H/g -i $(UI_CHARTSELECTOR)
|
sed s/KDCHARTDATASETSELECTOR_H/UI_KDCHARTDATASETSELECTOR_H/g -i $(UI_CHARTSELECTOR)
|
||||||
|
|
||||||
libkdchart.a: $(UI_CHARTSELECTOR) $(KDCHART_MOCS) $(KDCHART_OBJS)
|
lib/libkdchart.a: $(UI_CHARTSELECTOR) $(KDCHART_MOCS) $(KDCHART_OBJS)
|
||||||
ar rcu libkdchart.a $(KDCHART_MOCS) $(KDCHART_OBJS)
|
ar rcu lib/libkdchart.a $(KDCHART_MOCS) $(KDCHART_OBJS)
|
||||||
|
|
||||||
clean_libkdchart:
|
clean_libkdchart:
|
||||||
rm -rf libkdchart.a
|
rm -rf lib/libkdchart.a
|
||||||
find libkdchart -name '*.o' -delete
|
find lib/libkdchart -name '*.o' -delete
|
||||||
find libkdchart -type f -name '*.moc' -delete
|
find lib/libkdchart -type f -name '*.moc' -delete
|
||||||
find libkdchart -type f -name '*.objs' -delete
|
find lib/libkdchart -type f -name '*.objs' -delete
|
||||||
|
|
||||||
generate_locales:
|
generate_locales:
|
||||||
./tools/generate_locales.sh
|
./tools/generate_locales.sh
|
||||||
|
|
Some files were not shown because too many files have changed in this diff Show More
Loading…
Reference in New Issue
Block a user