xca/Makefile
Christian ae0f398600 Release 0.6.4
- update copyright years and doc
2007-08-13 18:55:50 +00:00

92 lines
2.1 KiB
Makefile

#
# Makefile for XCA
#
#####################################################################
TAG=RELEASE.$(TVERSION)
TARGET=xca-$(TVERSION)
export VERSION=$(shell cat $(TOPDIR)/VERSION )
export TOPDIR=$(shell pwd)
sinclude Local.mak
SUBDIRS=lib widgets img
OBJECTS=$(patsubst %, %/target.obj, $(SUBDIRS))
INSTDIR=misc lang doc
CLEANDIRS=lang doc ui img
HDRDIRS=lib widgets ui
bindir=bin
all: headers xca$(SUFFIX) doc lang
@echo -e "\n\n\nOk, compilation was successfull. \nNow do as root: 'make install'\n"
re: clean all
xca.o: $(OBJECTS)
$(LD) $(LDFLAGS) $(OBJECTS) -r -o $@ $(SLIBS)
xca$(SUFFIX): xca.o
$(CC) $(LDFLAGS) $(CFLAGS) $< $(LIBS) -o $@
doc:
$(MAKE) -C doc
lang:
$(MAKE) -C lang
headers:
$(MAKE) -C ui $@
pheaders: headers
for d in $(HDRDIRS); do $(MAKE) -C $$d pheaders; done
%/target.obj: headers
$(MAKE) DEP=yes -C $* target.obj
clean:
for x in $(SUBDIRS) $(CLEANDIRS); do $(MAKE) -C $${x} clean; done
rm -f *~ xca$(SUFFIX) xca.o
distclean: clean
for x in $(SUBDIRS) $(CLEANDIRS); do $(MAKE) -C $${x} distclean; done
rm -f Local.mak conftest conftest.log
dist: lang doc
test ! -z "$(TVERSION)"
git archive --format=tar --prefix=$(TARGET)/ $(TAG) | \
gzip -9 > $(TARGET).tar.gz
install: xca$(SUFFIX)
install -m 755 -d $(destdir)$(prefix)/$(bindir)
install -m 755 xca $(destdir)$(prefix)/$(bindir)
$(STRIP) $(destdir)$(prefix)/$(bindir)/xca
for d in $(INSTDIR); do \
$(MAKE) -C $$d install; \
done
xca.app: xca$(SUFFIX)
rm -rf xca.app
mkdir -p xca.app/Contents/MacOS
mkdir -p xca.app/Contents/Resources
install -m 755 xca xca.app/Contents/MacOS
$(STRIP) xca.app/Contents/MacOS/xca
for d in $(INSTDIR); do \
$(MAKE) -C $$d APPDIR=$(TOPDIR)/xca.app/Contents app; \
done
xca.dmg: xca.app
test -x hdiutil
hdiutil create -ov -srcfolder $< $@
setup.exe: xca$(SUFFIX) misc/xca.nsi doc lang
$(MAKE) -C lang
$(STRIP) xca$(SUFFIX)
$(MAKENSIS) -DOPENSSL=$(OPENSSLDIR) -DQTDIR=$(QTDIR) \
-DVERSION=$(VERSION) -DBDIR=$(BDIR) -NOCD -V2 misc/xca.nsi
cp setup.exe setup_xca-$(VERSION).exe
.PHONY: $(SUBDIRS) $(INSTDIR) xca.app setup.exe doc lang
Local.mak local.h: configure
./configure