You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
ck/Makefile.in

57 lines
1.7 KiB

.PHONY: all clean distribution regressions install install-headers uninstall
14 years ago
CFLAGS=@CFLAGS@
VERSION=@VERSION@
VERSION_MAJOR=@VERSION_MAJOR@
14 years ago
PREFIX=@PREFIX@
LIBRARY=@LIBRARY@
HEADERS=@HEADERS@
PKGCONFIG_DATA=@LIBRARY@/pkgconfig
14 years ago
all:
$(MAKE) -C src all || exit
14 years ago
@echo
@echo
@echo ---[ Concurrency Kit has built successfully. You may now \"make install\".
regressions:
$(MAKE) -C regressions all || exit
14 years ago
@echo ---[ Regressions have built successfully.
install-headers:
mkdir -p $(HEADERS) || exit
cp include/*.h $(DESTDIR)/$(HEADERS) || exit
chmod 644 $(DESTDIR)/$(HEADERS)/ck_*.h || exit
mkdir -p $(DESTDIR)$(HEADERS)/gcc || exit
cp -r include/gcc/* $(DESTDIR)/$(HEADERS)/gcc || exit
chmod 755 $(DESTDIR)/$(HEADERS)/gcc
chmod 644 $(DESTDIR)/$(HEADERS)/gcc/ck_*.h $(DESTDIR)/$(HEADERS)/gcc/*/ck_*.h || exit
install: all install-headers
mkdir -p $(DESTDIR)/$(LIBRARY) || exit
cp src/libck.so $(DESTDIR)/$(LIBRARY)/libck.so.$(VERSION) || exit
ln -s $(DESTDIR)/$(LIBRARY)/libck.so.$(VERSION) $(DESTDIR)/$(LIBRARY)/libck.so
ln -s $(DESTDIR)/$(LIBRARY)/libck.so.$(VERSION) $(DESTDIR)/$(LIBRARY)/libck.so.$(VERSION_MAJOR)
chmod 744 $(DESTDIR)/$(LIBRARY)/libck.so* || exit
mkdir -p $(DESTDIR)/$(PKGCONFIG_DATA) || exit
chmod 755 $(DESTDIR)/$(PKGCONFIG_DATA)
cp build/ck.pc $(DESTDIR)/$(PKGCONFIG_DATA)/ck.pc || exit
14 years ago
uninstall:
rm -f $(DESTDIR)/$(LIBRARY)/libck.so*
rm -f $(DESTDIR)/$(HEADERS)/ck_*.h
rm -f $(DESTDIR)/$(HEADERS)/gcc/ck_*.h
rm -f $(DESTDIR)/$(HEADERS)/gcc/*/ck_*.h
rm -f $(DESTDIR)/$(PKGCONFIG_DATA)/ck.pc
14 years ago
clean:
$(MAKE) -C src clean
$(MAKE) -C regressions clean
14 years ago
rm -f *~ *.o
distribution: clean
rm -f build/ck.build
rm -f build/regressions.build
rm -f build/ck.pc
14 years ago
rm -f Makefile