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