mirror of
https://github.com/chris2511/xca.git
synced 2026-09-14 11:06:19 +05:00
Passwordboxes set focus right (Andrey Brindeew <abr@abr.pp.ru>) Serial and template can be selected
92 lines
2.3 KiB
Makefile
92 lines
2.3 KiB
Makefile
#
|
|
# @configure_input@
|
|
#
|
|
# $Id$
|
|
#
|
|
|
|
VERSION=@PACKAGE_VERSION@
|
|
TAG=$(shell echo "V.$(VERSION)" |sed "s/\./_/g" )
|
|
TARGET=xca-$(VERSION)
|
|
|
|
GCC=@CXX@
|
|
CPPFLAGS=@CPPFLAGS@ -Wall -g
|
|
|
|
LIBS=-Llib @LDFLAGS@ @LIBS@ -lxcadb -lpki
|
|
MOC=@MOC@
|
|
UIC=@UIC@
|
|
|
|
|
|
###################################
|
|
|
|
OBJS=NewKey_UI.o NewKey_UI_MOC.o \
|
|
KeyDetail_UI.o KeyDetail_UI_MOC.o \
|
|
ReqDetail_UI.o ReqDetail_UI_MOC.o \
|
|
MainWindow_UI.o MainWindow_UI_MOC.o \
|
|
PassRead_UI.o PassRead_UI_MOC.o \
|
|
PassWrite_UI.o PassWrite_UI_MOC.o \
|
|
ExportKey_UI.o ExportKey_UI_MOC.o \
|
|
NewX509_UI.o NewX509_UI_MOC.o \
|
|
NewX509.o NewX509_MOC.o \
|
|
CertDetail_UI.o CertDetail_UI_MOC.o \
|
|
Rename_UI.o Rename_UI_MOC.o \
|
|
ExportKey.o ExportKey_MOC.o \
|
|
TrustState_UI.o TrustState_UI_MOC.o \
|
|
MainWindow.o MainWindow_MOC.o \
|
|
MainWindowKeys.o MainWindowX509Req.o \
|
|
MainWindowX509.o MainWindowTemps.o \
|
|
main.o
|
|
|
|
all: libs $(OBJS) xca
|
|
|
|
re: clean all
|
|
|
|
MainWindow.h: MainWindow_UI.h KeyDetail_UI.h \
|
|
PassRead_UI.h PassWrite_UI.h ExportKey_UI.h \
|
|
NewKey_UI.h ReqDetail_UI.h \
|
|
CertDetail_UI.h NewX509.h NewX509_UI.h\
|
|
Rename_UI.h TrustState_UI.h
|
|
|
|
%.o: %.cpp
|
|
$(GCC) $(CPPFLAGS) -DVER=\"$(VERSION)\" -DPREFIX=\"@prefix@/share/xca\" -c $< -o $@
|
|
|
|
xca: $(OBJS) lib/libxcadb.a lib/libpki.a
|
|
$(GCC) $(CPPFLAGS) $(INC) $(LPATH) $(OBJS) $(LIBS) -o xca
|
|
@echo -e "\n\n\nOk, compilation was successfull. \nNow do as root: 'make install'\n"
|
|
|
|
libs:
|
|
make -C lib all
|
|
|
|
clean:
|
|
make -C lib clean
|
|
rm -rf *_MOC.cpp *_UI.h *_UI.cpp *~ *.o xca
|
|
|
|
distclean: clean
|
|
make -C lib distclean
|
|
rm -f Makefile config.cache config.h
|
|
|
|
dist:
|
|
rm -rf ../$(TARGET)
|
|
cvs export -r $(TAG) -d ../$(TARGET) xca
|
|
(cd ../$(TARGET); autoconf; \
|
|
./mkxcapro.sh; lrelease xca.pro; \
|
|
cat rpm/xca.spec debian/changelog |sed s/VERSION/$(VERSION)/g >rpm/$(TARGET)-1.spec; \
|
|
rm rpm/xca.spec )
|
|
(cd ..; tar zcf $(TARGET).tar.gz $(TARGET) )
|
|
#rm -rf ../$(TARGET)
|
|
|
|
install: xca
|
|
strip xca
|
|
install -m 755 -o root -g root xca $(DESTDIR)@prefix@/bin
|
|
install -m 755 -o root -g root -d $(DESTDIR)@prefix@/share/xca
|
|
install -m 644 -o root -g root img/*.png $(DESTDIR)@prefix@/share/xca
|
|
install -m 644 -o root -g root xca_??.qm $(DESTDIR)@prefix@/share/xca
|
|
|
|
%_MOC.cpp: %.h %.cpp
|
|
$(MOC) $< -o $@
|
|
|
|
%_UI.h: %.ui
|
|
$(UIC) -o $@ $<
|
|
|
|
%_UI.cpp: %_UI.h %.ui
|
|
$(UIC) -o $@ -impl $^
|