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.
45 lines
1007 B
45 lines
1007 B
.PHONY: all clean distribution regressions install
|
|
|
|
CFLAGS=@CFLAGS@
|
|
PREFIX=@PREFIX@
|
|
LIBRARY=@LIBRARY@
|
|
HEADERS=@HEADERS@
|
|
|
|
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: all
|
|
mkdir -p $(LIBRARY) || exit
|
|
mkdir -p $(HEADERS) || exit
|
|
cp src/libck* $(LIBRARY) || exit
|
|
chmod 744 $(LIBRARY)/libck* || 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
|
|
|
|
uninstall:
|
|
rm -f $(LIBRARY)/libck*
|
|
rm -f $(HEADERS)/ck_*.h
|
|
rm -f $(HEADERS)/gcc/ck_*.h
|
|
rm -f $(HEADERS)/gcc/*/ck_*.h
|
|
|
|
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 Makefile
|